aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/encoding/gob/codec_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/encoding/gob/codec_test.go')
-rw-r--r--libgo/go/encoding/gob/codec_test.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/libgo/go/encoding/gob/codec_test.go b/libgo/go/encoding/gob/codec_test.go
index 520afde..494abc9 100644
--- a/libgo/go/encoding/gob/codec_test.go
+++ b/libgo/go/encoding/gob/codec_test.go
@@ -1421,8 +1421,7 @@ func encFuzzDec(rng *rand.Rand, in interface{}) error {
// This does some "fuzz testing" by attempting to decode a sequence of random bytes.
func TestFuzz(t *testing.T) {
if !*doFuzzTests {
- t.Logf("disabled; run with -gob.fuzz to enable")
- return
+ t.Skipf("disabled; run with -gob.fuzz to enable")
}
// all possible inputs
@@ -1441,8 +1440,7 @@ func TestFuzz(t *testing.T) {
func TestFuzzRegressions(t *testing.T) {
if !*doFuzzTests {
- t.Logf("disabled; run with -gob.fuzz to enable")
- return
+ t.Skipf("disabled; run with -gob.fuzz to enable")
}
// An instance triggering a type name of length ~102 GB.
@@ -1465,6 +1463,10 @@ func testFuzz(t *testing.T, seed int64, n int, input ...interface{}) {
// TestFuzzOneByte tries to decode corrupted input sequences
// and checks that no panic occurs.
func TestFuzzOneByte(t *testing.T) {
+ if !*doFuzzTests {
+ t.Skipf("disabled; run with -gob.fuzz to enable")
+ }
+
buf := new(bytes.Buffer)
Register(OnTheFly{})
dt := newDT()