mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 12:40:05 +01:00
test: call rmdir for directories, not unlink
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1193>
This commit is contained in:
parent
6563b66a92
commit
04a55d59d9
1 changed files with 2 additions and 2 deletions
|
|
@ -56,11 +56,11 @@ START_TEST(mkdir_p_test)
|
|||
const char *testdir = "/tmp/litest_mkdir_test";
|
||||
litest_assert_neg_errno_success(mkdir_p("/"));
|
||||
|
||||
unlink(testdir);
|
||||
rmdir(testdir);
|
||||
litest_assert_neg_errno_success(mkdir_p(testdir));
|
||||
/* EEXIST is not an error */
|
||||
litest_assert_neg_errno_success(mkdir_p(testdir));
|
||||
unlink(testdir);
|
||||
rmdir(testdir);
|
||||
|
||||
litest_assert_int_eq(mkdir_p("/proc/foo"), -ENOENT);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue