Source File
platforms.go
Belonging Package
internal/trace/testtrace
// Copyright 2025 The Go Authors. All rights reserved.// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.package testtraceimport ()// MustHaveSyscallEvents skips the current test if the current// platform does not support true system call events.func ( *testing.T) {if HasSyscallEvents() {return}.Skip("current platform has no true syscall events")}// HasSyscallEvents returns true if the current platform// has real syscall events available.func () bool {switch runtime.GOOS {case "js", "wasip1":// js and wasip1 emulate system calls by blocking on channels// while yielding back to the environment. They never actually// call entersyscall/exitsyscall.return false}return true}
![]() |
The pages are generated with Golds v0.8.3-preview. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |