diff options
| author | Dmitri Shuralyov <dmitshur@golang.org> | 2023-09-03 13:48:01 -0400 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-09-05 23:35:32 +0000 |
| commit | 08e35cc3347f97ef750fd21fbef1061b043580e4 (patch) | |
| tree | 3d2497fcf418c7a30882d1f2e499ed8845d137a8 /src/os/executable_test.go | |
| parent | 0dfb22ed70749a2cd6d95ec6eee63bb213a940d4 (diff) | |
| download | go-08e35cc3347f97ef750fd21fbef1061b043580e4.tar.xz | |
all: use ^$ instead of XXXX, NoSuchTestExists to match no tests
It's shorter and can't accidentally match unlikely test names.
Change-Id: I96dd9da018cad1acf604f266819470278f54c128
Reviewed-on: https://go-review.googlesource.com/c/go/+/524949
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/os/executable_test.go')
| -rw-r--r-- | src/os/executable_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/executable_test.go b/src/os/executable_test.go index c835bb436b..98b72d7d5e 100644 --- a/src/os/executable_test.go +++ b/src/os/executable_test.go @@ -30,7 +30,7 @@ func TestExecutable(t *testing.T) { t.Fatalf("filepath.Rel: %v", err) } - cmd := testenv.Command(t, fn, "-test.run=XXXX") + cmd := testenv.Command(t, fn, "-test.run=^$") // make child start with a relative program path cmd.Dir = dir cmd.Path = fn |
