diff options
| author | miller <millerresearch@gmail.com> | 2022-10-01 14:39:47 +0100 |
|---|---|---|
| committer | Than McIntosh <thanm@google.com> | 2022-10-03 15:17:12 +0000 |
| commit | 17622b891a478a68fba9001db4be901689611351 (patch) | |
| tree | e7a3580f89473c0e468120a1c810cccabb5cedf9 /src/runtime/coverage | |
| parent | 5451ba3ac4f0a61e1fffdabac3d9b5daa5f04124 (diff) | |
| download | go-17622b891a478a68fba9001db4be901689611351.tar.xz | |
runtime/coverage: recognise Plan 9 error message in emitToNonexistentDir
In TestCoverageApis/emitToNonexistentDir there is a list of error
messages to match when a nonexistent directory is opened. The list
has message text only for Unix and Windows. Add the corresponding
text for Plan 9.
Fixes #55983
Change-Id: Id32130300cb02394b319e1aeb1229ee147b4afb2
Reviewed-on: https://go-review.googlesource.com/c/go/+/437557
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: David du Colombier <0intro@gmail.com>
Run-TryBot: David du Colombier <0intro@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Diffstat (limited to 'src/runtime/coverage')
| -rw-r--r-- | src/runtime/coverage/testdata/harness.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/coverage/testdata/harness.go b/src/runtime/coverage/testdata/harness.go index cc3eb722d1..529c2c9de9 100644 --- a/src/runtime/coverage/testdata/harness.go +++ b/src/runtime/coverage/testdata/harness.go @@ -56,6 +56,7 @@ func emitToNonexistentDir() { want := []string{ "no such file or directory", // linux-ish "system cannot find the file specified", // windows + "does not exist", // plan9 } checkWant := func(which string, got string) { |
