summaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2016-10-17 23:19:10 -0400
committerRuss Cox <rsc@golang.org>2016-10-18 12:56:20 +0000
commita431bdc712c7a404307f38228271d970d9d2c023 (patch)
tree6dbb548fa140b41e5509c8f63cce732f0fcee06b /src/testing
parent1188569534fb65fb5e9f0e3eea6b20edc996e983 (diff)
downloadgo-git-a431bdc712c7a404307f38228271d970d9d2c023.tar.gz
testing: document that Skip cannot undo Error
Fixes #16502. Change-Id: Id8e117a724d73cd51844c06d47bbeba61f8dc827 Reviewed-on: https://go-review.googlesource.com/31324 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/testing.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/testing/testing.go b/src/testing/testing.go
index 7ca9d49605..3dcc5afef9 100644
--- a/src/testing/testing.go
+++ b/src/testing/testing.go
@@ -520,6 +520,7 @@ func (c *common) Skipf(format string, args ...interface{}) {
}
// SkipNow marks the test as having been skipped and stops its execution.
+// If a test fails (see Error, Errorf, Fail) and is then skipped, it is still considered to have failed.
// Execution will continue at the next test or benchmark. See also FailNow.
// SkipNow must be called from the goroutine running the test, not from
// other goroutines created during the test. Calling SkipNow does not stop