aboutsummaryrefslogtreecommitdiff
path: root/internal/fusefrontend/prepare_syscall_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/fusefrontend/prepare_syscall_test.go')
-rw-r--r--internal/fusefrontend/prepare_syscall_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/fusefrontend/prepare_syscall_test.go b/internal/fusefrontend/prepare_syscall_test.go
index 28e655c..693f62a 100644
--- a/internal/fusefrontend/prepare_syscall_test.go
+++ b/internal/fusefrontend/prepare_syscall_test.go
@@ -63,8 +63,8 @@ func TestPrepareAtSyscall(t *testing.T) {
syscall.Close(dirfd)
dirfd, cName, errno = rn.prepareAtSyscall("dir1")
- if err != nil {
- t.Fatal(err)
+ if errno != 0 {
+ t.Fatal(errno)
}
if cName == "" {
t.Fatal("cName should not be empty")