Skip to content

Commit 9c93ad5

Browse files
tklausergopherbot
authored andcommitted
cmd/go/testdata/script: ensure go test -skip skips ExampleTest1
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 <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Auto-Submit: Tobias Klauser <[email protected]> Reviewed-by: Bryan Mills <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 4d2855b commit 9c93ad5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cmd/go/testdata/script/test_skip.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ go test -v -skip Example skip_test.go
2626
stdout RUN.*Test1
2727
stdout RUN.*Test2
2828
stdout RUN.*Test2/3
29+
! stdout ExampleTest1
2930

3031
-- skip_test.go --
3132
package skip_test

0 commit comments

Comments
 (0)