summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-10-23 07:23:01 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-10-24 04:46:48 +0900
commita41ff38b0999fb83464309a29b8f39450b8d4b85 (patch)
tree18062acf6a25f7292d2d18a6ff2a479b87abe318 /test
parent84b1ccb98bf343a4f0728408af7ccaf428c00191 (diff)
downloadsystemd-a41ff38b0999fb83464309a29b8f39450b8d4b85.tar.gz
systemd-a41ff38b0999fb83464309a29b8f39450b8d4b85.tar.bz2
systemd-a41ff38b0999fb83464309a29b8f39450b8d4b85.zip
test: create /dev/null in test-udev.pl
Diffstat (limited to 'test')
-rwxr-xr-xtest/udev-test.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 0433629c7c..a1c24f49b4 100755
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -1537,13 +1537,14 @@ sub udev_setup {
system("umount", $udev_tmpfs);
rmdir($udev_tmpfs);
mkdir($udev_tmpfs) || die "unable to create udev_tmpfs: $udev_tmpfs\n";
- system("mount", "-o", "rw,mode=755,nosuid,noexec,nodev", "-t", "tmpfs", "tmpfs", $udev_tmpfs) && die "unable to mount tmpfs";
+ system("mount", "-o", "rw,mode=755,nosuid,noexec", "-t", "tmpfs", "tmpfs", $udev_tmpfs) && die "unable to mount tmpfs";
mkdir($udev_dev) || die "unable to create udev_dev: $udev_dev\n";
# setting group and mode of udev_dev ensures the tests work
# even if the parent directory has setgid bit enabled.
chown (0, 0, $udev_dev) || die "unable to chown $udev_dev\n";
chmod (0755, $udev_dev) || die "unable to chmod $udev_dev\n";
+ system("mknod", $udev_dev . "/null", "c", "1", "3") && "unable to create $udev_dev/null";
system("cp", "-r", "test/sys/", $udev_sys) && die "unable to copy test/sys";