[unit test] Complete FUSE unit tests #22
All checks were successful
Blockstorage/repertory/pipeline/head This commit looks good
All checks were successful
Blockstorage/repertory/pipeline/head This commit looks good
This commit is contained in:
@@ -160,7 +160,7 @@ TYPED_TEST(fuse_test, ftruncate_fails_if_file_is_read_only) {
|
|||||||
|
|
||||||
errno = 0;
|
errno = 0;
|
||||||
EXPECT_EQ(-1, ::ftruncate(desc, 1));
|
EXPECT_EQ(-1, ::ftruncate(desc, 1));
|
||||||
EXPECT_EQ(EBADF, errno);
|
EXPECT_TRUE(errno == EBADF || errno == EINVAL);
|
||||||
|
|
||||||
::close(desc);
|
::close(desc);
|
||||||
this->unlink_file_and_test(src);
|
this->unlink_file_and_test(src);
|
||||||
|
|||||||
Reference in New Issue
Block a user