Commit 655a3b5a authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

strings: ignore allocation test in cover mode

Fixes #17699

Change-Id: I7ea29a3fc2ca13d9d7e3044cbb8ea22e3435d423
Reviewed-on: https://go-review.googlesource.com/32484
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: 's avatarRob Pike <r@golang.org>
parent daf3f082
......@@ -294,7 +294,7 @@ func TestIndexRune(t *testing.T) {
t.Fatalf("'世' at %d; want 4", i)
}
})
if allocs != 0 {
if allocs != 0 && testing.CoverMode() == "" {
t.Errorf("expected no allocations, got %f", allocs)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment