summaryrefslogtreecommitdiffstats
path: root/libgo/go/old/regexp
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/old/regexp')
-rw-r--r--libgo/go/old/regexp/all_test.go12
1 files changed, 4 insertions, 8 deletions
diff --git a/libgo/go/old/regexp/all_test.go b/libgo/go/old/regexp/all_test.go
index 9a04360dd11..180dac4d455 100644
--- a/libgo/go/old/regexp/all_test.go
+++ b/libgo/go/old/regexp/all_test.go
@@ -321,8 +321,7 @@ func BenchmarkLiteral(b *testing.B) {
b.StartTimer()
for i := 0; i < b.N; i++ {
if !re.MatchString(x) {
- println("no match!")
- break
+ b.Fatal("no match!")
}
}
}
@@ -334,8 +333,7 @@ func BenchmarkNotLiteral(b *testing.B) {
b.StartTimer()
for i := 0; i < b.N; i++ {
if !re.MatchString(x) {
- println("no match!")
- break
+ b.Fatal("no match!")
}
}
}
@@ -347,8 +345,7 @@ func BenchmarkMatchClass(b *testing.B) {
b.StartTimer()
for i := 0; i < b.N; i++ {
if !re.MatchString(x) {
- println("no match!")
- break
+ b.Fatal("no match!")
}
}
}
@@ -362,8 +359,7 @@ func BenchmarkMatchClass_InRange(b *testing.B) {
b.StartTimer()
for i := 0; i < b.N; i++ {
if !re.MatchString(x) {
- println("no match!")
- break
+ b.Fatal("no match!")
}
}
}
OpenPOWER on IntegriCloud