aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/cgo/internal/test/issue18146.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/cgo/internal/test/issue18146.go')
-rw-r--r--src/cmd/cgo/internal/test/issue18146.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/cgo/internal/test/issue18146.go b/src/cmd/cgo/internal/test/issue18146.go
index d302bd029f..112b7ee2e7 100644
--- a/src/cmd/cgo/internal/test/issue18146.go
+++ b/src/cmd/cgo/internal/test/issue18146.go
@@ -72,7 +72,7 @@ func test18146(t *testing.T) {
}()
}
runtime.GOMAXPROCS(threads)
- argv := append(os.Args, "-test.run=NoSuchTestExists")
+ argv := append(os.Args, "-test.run=^$")
if err := syscall.Exec(os.Args[0], argv, os.Environ()); err != nil {
t.Fatal(err)
}
@@ -85,7 +85,7 @@ func test18146(t *testing.T) {
}
}()
- args := append(append([]string(nil), os.Args[1:]...), "-test.run=Test18146")
+ args := append(append([]string(nil), os.Args[1:]...), "-test.run=^Test18146$")
for n := attempts; n > 0; n-- {
cmd := exec.Command(os.Args[0], args...)
cmd.Env = append(os.Environ(), "test18146=exec")