test/udev-test.pl: suppress umount error message at startup

umount emits an error message "no mount point specified" if the
tmpfs isn't mounted yet, which is the normal case.
Suppress that by redirecting stderr.
This commit is contained in:
Martin Wilck 2018-04-26 13:25:11 +02:00 committed by Michal Sekletár
parent 0ed1b64469
commit f1cb086054

View file

@ -2405,7 +2405,7 @@ sub major_minor_test {
}
sub udev_setup {
system("umount", $udev_tmpfs);
system("umount \"$udev_tmpfs\" 2>/dev/null");
rmdir($udev_tmpfs);
mkdir($udev_tmpfs) || die "unable to create udev_tmpfs: $udev_tmpfs\n";