diff options
Diffstat (limited to 'libgo/go/sync/rwmutex_test.go')
-rw-r--r-- | libgo/go/sync/rwmutex_test.go | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/libgo/go/sync/rwmutex_test.go b/libgo/go/sync/rwmutex_test.go index f625bc3a585..0436f97239c 100644 --- a/libgo/go/sync/rwmutex_test.go +++ b/libgo/go/sync/rwmutex_test.go @@ -155,48 +155,6 @@ func TestRLocker(t *testing.T) { } } -func TestUnlockPanic(t *testing.T) { - defer func() { - if recover() == nil { - t.Fatalf("unlock of unlocked RWMutex did not panic") - } - }() - var mu RWMutex - mu.Unlock() -} - -func TestUnlockPanic2(t *testing.T) { - defer func() { - if recover() == nil { - t.Fatalf("unlock of unlocked RWMutex did not panic") - } - }() - var mu RWMutex - mu.RLock() - mu.Unlock() -} - -func TestRUnlockPanic(t *testing.T) { - defer func() { - if recover() == nil { - t.Fatalf("read unlock of unlocked RWMutex did not panic") - } - }() - var mu RWMutex - mu.RUnlock() -} - -func TestRUnlockPanic2(t *testing.T) { - defer func() { - if recover() == nil { - t.Fatalf("read unlock of unlocked RWMutex did not panic") - } - }() - var mu RWMutex - mu.Lock() - mu.RUnlock() -} - func BenchmarkRWMutexUncontended(b *testing.B) { type PaddedRWMutex struct { RWMutex |