aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/debug/example_monitor_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/debug/example_monitor_test.go')
-rw-r--r--src/runtime/debug/example_monitor_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/debug/example_monitor_test.go b/src/runtime/debug/example_monitor_test.go
index b077e7adb3..3b8f4dccd9 100644
--- a/src/runtime/debug/example_monitor_test.go
+++ b/src/runtime/debug/example_monitor_test.go
@@ -83,7 +83,7 @@ func monitor() {
if err != nil {
log.Fatal(err)
}
- cmd := exec.Command(exe, "-test.run=ExampleSetCrashOutput_monitor")
+ cmd := exec.Command(exe, "-test.run=^ExampleSetCrashOutput_monitor$")
cmd.Env = append(os.Environ(), monitorVar+"=1")
cmd.Stderr = os.Stderr
cmd.Stdout = os.Stderr