From 9c93ad5520c4f995ee0ec8d1a80dd17c633002ae Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 15 Aug 2023 15:32:42 +0200 Subject: [PATCH] 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 TryBot-Result: Gopher Robot Auto-Submit: Tobias Klauser Reviewed-by: Bryan Mills Reviewed-by: Dmitri Shuralyov --- src/cmd/go/testdata/script/test_skip.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmd/go/testdata/script/test_skip.txt b/src/cmd/go/testdata/script/test_skip.txt index 73e4195f78..2e5f4d65d7 100644 --- a/src/cmd/go/testdata/script/test_skip.txt +++ b/src/cmd/go/testdata/script/test_skip.txt @@ -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