mirror of
https://github.com/burrowers/garble.git
synced 2026-04-22 15:47:04 +08:00
include runtime/pprof in the stdimporter testscript
This starts causing a failure on Go 1.26, which we only capture
in another test via `go test` by accident, so make sure we cover it.
Without a fix and on go1.26, I now see:
> exec garble build -o=main$exe ./stdimporter
[stderr]
# test/main/stdimporter
link: x9BrC6t: invalid reference to runtime.pprof_goroutineLeakProfileWithLabels
This commit is contained in:
Vendored
+2
@@ -90,6 +90,7 @@ import (
|
||||
"os"
|
||||
"runtime"
|
||||
"runtime/debug"
|
||||
"runtime/pprof"
|
||||
"syscall"
|
||||
"testing"
|
||||
"time"
|
||||
@@ -109,6 +110,7 @@ func main() {
|
||||
time.Now()
|
||||
syscall.Listen(0, 1)
|
||||
testing.MainStart(nil, nil, nil, nil, nil)
|
||||
pprof.StartCPUProfile(nil)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user