1
0
mirror of https://github.com/golang/go synced 2024-11-24 05:20:04 -07:00

regexp: skip TestOnePassCutoff in short mode

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
This commit is contained in:
Dmitriy Vyukov 2014-06-24 17:19:10 -07:00
parent 92d58c7e46
commit 280eb703a2

View 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}$`)
}