]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/testdata/script: ensure go test -skip skips ExampleTest1
authorTobias Klauser <tklauser@distanz.ch>
Tue, 15 Aug 2023 13:32:42 +0000 (15:32 +0200)
committerGopher Robot <gobot@golang.org>
Tue, 15 Aug 2023 17:40:22 +0000 (17:40 +0000)
CL 511837 added a check for go test -skip Example but it currently
doesn't verify that the example doesn't show up in the command output.
Add such a check.

For #61482

Change-Id: I3a8f82fc137739bf291f39bf7719ff92cfc74f9d
Reviewed-on: https://go-review.googlesource.com/c/go/+/519595
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/cmd/go/testdata/script/test_skip.txt

index 73e4195f78e81a5937f4886c5788c1c7c8a9f48c..2e5f4d65d7028b5020b7e18c4d382c8534e38b14 100644 (file)
@@ -26,6 +26,7 @@ go test -v -skip Example skip_test.go
 stdout RUN.*Test1
 stdout RUN.*Test2
 stdout RUN.*Test2/3
+! stdout ExampleTest1
 
 -- skip_test.go --
 package skip_test