aboutsummaryrefslogtreecommitdiff
path: root/src/flag
diff options
context:
space:
mode:
Diffstat (limited to 'src/flag')
-rw-r--r--src/flag/flag_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flag/flag_test.go b/src/flag/flag_test.go
index 57c88f009f..8e9ae316fe 100644
--- a/src/flag/flag_test.go
+++ b/src/flag/flag_test.go
@@ -701,7 +701,7 @@ func TestExitCode(t *testing.T) {
}
for _, test := range tests {
- cmd := exec.Command(os.Args[0], "-test.run=TestExitCode")
+ cmd := exec.Command(os.Args[0], "-test.run=^TestExitCode$")
cmd.Env = append(
os.Environ(),
"GO_CHILD_FLAG="+test.flag,