summaryrefslogtreecommitdiff
path: root/tests/sys/fs/fusefs/create.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sys/fs/fusefs/create.cc')
-rw-r--r--tests/sys/fs/fusefs/create.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/sys/fs/fusefs/create.cc b/tests/sys/fs/fusefs/create.cc
index 0ba7ea87ec11..0797a3ff9e34 100644
--- a/tests/sys/fs/fusefs/create.cc
+++ b/tests/sys/fs/fusefs/create.cc
@@ -143,7 +143,7 @@ TEST_F(Create, attr_cache)
).Times(0);
fd = open(FULLPATH, O_CREAT | O_EXCL, mode);
- EXPECT_LE(0, fd) << strerror(errno);
+ ASSERT_LE(0, fd) << strerror(errno);
leak(fd);
}
@@ -184,7 +184,7 @@ TEST_F(Create, clear_attr_cache)
EXPECT_EQ(0, stat("mountpoint", &sb)) << strerror(errno);
fd = open(FULLPATH, O_CREAT | O_EXCL, mode);
- EXPECT_LE(0, fd) << strerror(errno);
+ ASSERT_LE(0, fd) << strerror(errno);
EXPECT_EQ(0, stat("mountpoint", &sb)) << strerror(errno);
leak(fd);
@@ -254,7 +254,7 @@ TEST_F(Create, Enosys)
})));
fd = open(FULLPATH, O_CREAT | O_EXCL, mode);
- EXPECT_LE(0, fd) << strerror(errno);
+ ASSERT_LE(0, fd) << strerror(errno);
leak(fd);
}
@@ -366,7 +366,7 @@ TEST_F(Create, ok)
}));
fd = open(FULLPATH, O_CREAT | O_EXCL, mode);
- EXPECT_LE(0, fd) << strerror(errno);
+ ASSERT_LE(0, fd) << strerror(errno);
leak(fd);
}
@@ -398,7 +398,7 @@ TEST_F(Create, wronly_0444)
}));
fd = open(FULLPATH, O_CREAT | O_WRONLY, mode);
- EXPECT_LE(0, fd) << strerror(errno);
+ ASSERT_LE(0, fd) << strerror(errno);
leak(fd);
}
@@ -422,7 +422,7 @@ TEST_F(Create_7_8, ok)
}));
fd = open(FULLPATH, O_CREAT | O_EXCL, mode);
- EXPECT_LE(0, fd) << strerror(errno);
+ ASSERT_LE(0, fd) << strerror(errno);
leak(fd);
}
@@ -446,6 +446,6 @@ TEST_F(Create_7_11, ok)
}));
fd = open(FULLPATH, O_CREAT | O_EXCL, mode);
- EXPECT_LE(0, fd) << strerror(errno);
+ ASSERT_LE(0, fd) << strerror(errno);
leak(fd);
}