mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 04:30:06 +01:00
test: Accept mkdir_p("/proc/foo") might return EACCES
... as it does under Gentoo's sandbox. Fixes:6770131e("util: fix a memleak in mkdir_p") (cherry picked from commit7f3aa8058a) Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1309>
This commit is contained in:
parent
73ed87e2bb
commit
1f4cb5a5fe
1 changed files with 4 additions and 1 deletions
|
|
@ -70,7 +70,10 @@ START_TEST(mkdir_p_test)
|
|||
litest_assert_neg_errno_success(mkdir_p(testdir));
|
||||
rmdir(testdir);
|
||||
|
||||
litest_assert_int_eq(mkdir_p("/proc/foo"), -ENOENT);
|
||||
int ret = mkdir_p("/proc/foo");
|
||||
litest_assert_msg(ret == -ENOENT || ret == -EACCES,
|
||||
"mkdir_p(\"/proc/foo\") returned %d\n",
|
||||
ret);
|
||||
}
|
||||
END_TEST
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue