]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/coverage: recognise Plan 9 error message in emitToNonexistentDir
authormiller <millerresearch@gmail.com>
Sat, 1 Oct 2022 13:39:47 +0000 (14:39 +0100)
committerThan McIntosh <thanm@google.com>
Mon, 3 Oct 2022 15:17:12 +0000 (15:17 +0000)
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>
src/runtime/coverage/testdata/harness.go

index cc3eb722d11c8bb6663f3c46cc06cc508e899317..529c2c9de9710f94f2053135685e6f898baf24d3 100644 (file)
@@ -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) {