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:
Daniel Martí
2026-03-15 11:42:30 +00:00
committed by Paul
parent 3e26a41431
commit 45b248860e
+2
View File
@@ -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)
}
}