aboutsummaryrefslogtreecommitdiff
path: root/src/os/error_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/error_test.go')
-rw-r--r--src/os/error_test.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/os/error_test.go b/src/os/error_test.go
index 4fa6146194..8f82ae65d3 100644
--- a/src/os/error_test.go
+++ b/src/os/error_test.go
@@ -27,11 +27,9 @@ func TestErrIsExist(t *testing.T) {
if err == nil {
f2.Close()
t.Fatal("Open should have failed")
- return
}
if s := checkErrorPredicate("os.IsExist", os.IsExist, err, fs.ErrExist); s != "" {
t.Fatal(s)
- return
}
}
@@ -68,13 +66,11 @@ func TestErrIsNotExist(t *testing.T) {
name := filepath.Join(tmpDir, "NotExists")
if s := testErrNotExist(t, name); s != "" {
t.Fatal(s)
- return
}
name = filepath.Join(name, "NotExists2")
if s := testErrNotExist(t, name); s != "" {
t.Fatal(s)
- return
}
}