import "C"
import (
+ "fmt"
+ "os"
+ "path/filepath"
"time"
)
func main() {
+ start := time.Now()
+
// ensure that we can function normally
var v [][]byte
for i := 0; i < 1000; i++ {
time.Sleep(10 * time.Microsecond)
v = append(v, make([]byte, 64<<10))
}
+
+ fmt.Printf("ok\t%s\t%s\n", filepath.Base(os.Args[0]), time.Since(start).Round(time.Millisecond))
}
t.registerTest("testplugin", "../misc/cgo/testplugin", t.goTest(), t.timeout(600), ".")
}
if gohostos == "linux" && goarch == "amd64" {
- t.registerTest("testasan", "../misc/cgo/testasan", "go", "run", "main.go")
+ t.registerTest("testasan", "../misc/cgo/testasan", "go", "run", ".")
}
if mSanSupported(goos, goarch) {
t.registerHostTest("testsanitizers/msan", "../misc/cgo/testsanitizers", "misc/cgo/testsanitizers", ".")
t.registerHostTest("cgo_errors", "../misc/cgo/errors", "misc/cgo/errors", ".")
}
if gohostos == "linux" && t.extLink() {
- t.registerTest("testsigfwd", "../misc/cgo/testsigfwd", "go", "run", "main.go")
+ t.registerTest("testsigfwd", "../misc/cgo/testsigfwd", "go", "run", ".")
}
}