mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
tests.cpp
This commit is contained in:
parent
9e332cc0e8
commit
1469ca6143
1 changed files with 2 additions and 1 deletions
|
|
@ -314,8 +314,9 @@ test_rmdir()
|
|||
root_fd = openat(AT_FDCWD,"/mnt/tmp",O_DIRECTORY,0777);
|
||||
TEST_CHECK(root_fd >= 0);
|
||||
dir_fd = mkdirat(root_fd,"test-dir",0777);
|
||||
TEST_CHECK(dir_fd >= 0);
|
||||
TEST_CHECK(dir_fd == 0);
|
||||
dir_fd = openat(root_fd,"test-dir",O_DIRECTORY);
|
||||
TEST_CHECK(dir_fd >= 0);
|
||||
|
||||
rv = unlinkat(dir_fd,"test-dir",AT_REMOVEDIR);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue