summaryrefslogtreecommitdiff
path: root/test/test-udev.c
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2013-07-06 23:13:31 -0400
committerAnthony G. Basile <blueness@gentoo.org>2013-07-06 23:13:39 -0400
commit44e6f1bc1a3f11daf569d310de1707f3b423786a (patch)
tree4cad46388d1e04d874ae1db6ef4108f3525a0734 /test/test-udev.c
parent8b06a435cc597d9b1e3c9c38954dbd686ad94095 (diff)
test: improve test-udev.c
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'test/test-udev.c')
-rw-r--r--test/test-udev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test-udev.c b/test/test-udev.c
index ba5daf7242..5e227cb55c 100644
--- a/test/test-udev.c
+++ b/test/test-udev.c
@@ -60,6 +60,7 @@ static int fake_filesystems(void) {
{ "test/dev", "/dev", "failed to mount test /dev" },
{ "test/run", "/run", "failed to mount test /run" },
{ "test/run", "/etc/udev/rules.d", "failed to mount empty /etc/udev/rules.d" },
+ { "test/run", "/lib/udev/rules.d", "failed to mount empty /lib/udev/rules.d" },
};
unsigned int i;
int err;
@@ -78,7 +79,7 @@ static int fake_filesystems(void) {
}
for (i = 0; i < ELEMENTSOF(fakefss); i++) {
- err = mount(fakefss[i].src, fakefss[i].target, "tmpfs", MS_BIND, NULL);
+ err = mount(fakefss[i].src, fakefss[i].target, NULL, MS_BIND, NULL);
if (err < 0) {
err = -errno;
fprintf(stderr, "%s %m", fakefss[i].error);