Fix: rmdir recursive: skip non-empty directories with flag
[lttng-tools.git] / tests / unit / test_directory_handle.c
index 13db3f4bb891e3433e2a8a17eaeeba81408e32e2..6d3028a35c566e7b56687fcaa956d2b2270b7010 100644 (file)
@@ -80,7 +80,7 @@ int main(int argc, char **argv)
        ok(dir_exists(created_dir), "Folder %s exists", created_dir);
 
        ret = lttng_directory_handle_remove_subdirectory_recursive(
-                       &test_dir_handle, "a");
+                       &test_dir_handle, "a", LTTNG_DIRECTORY_HANDLE_FAIL_NON_EMPTY_FLAG);
        ok(ret == 0, "Recursively removed directory hierarchy %s by removing %s",
                        DIR_HIERARCHY, "a");
 end:
This page took 0.023314 seconds and 4 git commands to generate.