]> Cypherpunks repositories - gostls13.git/commitdiff
regexp: skip TestOnePassCutoff in short mode
authorDmitriy Vyukov <dvyukov@google.com>
Wed, 25 Jun 2014 00:19:10 +0000 (17:19 -0700)
committerDmitriy Vyukov <dvyukov@google.com>
Wed, 25 Jun 2014 00:19:10 +0000 (17:19 -0700)
Runs for 4 seconds on my mac.
Also this is the only test that times out on freebsd in -race mode.

R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/110150045

src/pkg/regexp/all_test.go

index 301a1dfcd8348f8cf3929097c49f8013ecb97225..5fadb67c0980502345180cd89ccae6cf08933987 100644 (file)
@@ -475,6 +475,9 @@ func TestSplit(t *testing.T) {
 
 // This ran out of stack before issue 7608 was fixed.
 func TestOnePassCutoff(t *testing.T) {
+       if testing.Short() {
+               t.Skip("Skipping in short mode")
+       }
        MustCompile(`^(?:x{1,1000}){1,1000}$`)
 }