diff options
Diffstat (limited to 'tests/example_filesystems')
| -rw-r--r-- | tests/example_filesystems/example_test_helpers.go | 10 | 
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/example_filesystems/example_test_helpers.go b/tests/example_filesystems/example_test_helpers.go index 615e4c1..d89b35f 100644 --- a/tests/example_filesystems/example_test_helpers.go +++ b/tests/example_filesystems/example_test_helpers.go @@ -15,7 +15,8 @@ func checkExampleFS(t *testing.T, dir string, rw bool) {  	statusFile := filepath.Join(dir, "status.txt")  	contentBytes, err := ioutil.ReadFile(statusFile)  	if err != nil { -		t.Fatal(err) +		t.Error(err) +		return  	}  	content := string(contentBytes)  	if content != statusTxtContent { @@ -25,7 +26,8 @@ func checkExampleFS(t *testing.T, dir string, rw bool) {  	symlink := filepath.Join(dir, "rel")  	target, err := os.Readlink(symlink)  	if err != nil { -		t.Fatal(err) +		t.Error(err) +		return  	}  	if target != "status.txt" {  		t.Errorf("Unexpected link target: %s\n", target) @@ -34,12 +36,12 @@ func checkExampleFS(t *testing.T, dir string, rw bool) {  	symlink = filepath.Join(dir, "abs")  	target, err = os.Readlink(symlink)  	if err != nil { -		t.Fatal(err) +		t.Error(err) +		return  	}  	if target != "/a/b/c/d" {  		t.Errorf("Unexpected link target: %s\n", target)  	} -  	if rw {  		// Test directory operations  		test_helpers.TestRename(t, dir)  | 
