diff options
Diffstat (limited to 'src/testing/flag_test.go')
| -rw-r--r-- | src/testing/flag_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testing/flag_test.go b/src/testing/flag_test.go index 416d8c9862..6f76c237c4 100644 --- a/src/testing/flag_test.go +++ b/src/testing/flag_test.go @@ -32,7 +32,7 @@ func TestFlag(t *testing.T) { if err != nil { exe = os.Args[0] } - cmd := exec.Command(exe, "-test.run=TestFlag", "-test_flag_arg="+flag) + cmd := exec.Command(exe, "-test.run=^TestFlag$", "-test_flag_arg="+flag) if flag != "" { cmd.Args = append(cmd.Args, flag) } |
