diff --git a/tests/tests.cpp b/tests/tests.cpp index 8a4f1a8f..865b8180 100644 --- a/tests/tests.cpp +++ b/tests/tests.cpp @@ -308,11 +308,13 @@ void test_rmdir() { int root_fd; + int dir_fd; root_fd = openat(AT_FDCWD,"/mnt/tmp",O_DIRECTORY,0777); + dir_fd = mkdirat(root_fd,"test-dir",0777); - + close(dir_fd); close(root_fd); }