]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: accommodate built-in mknod more cleanly still
authorMatthew Woehlke <mw_triad@users.sourceforge.net>
Wed, 16 Apr 2008 17:15:05 +0000 (19:15 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 16 Apr 2008 17:16:13 +0000 (19:16 +0200)
* tests/mkdir/selinux: Use "env" rather than "nice".

tests/mkdir/selinux

index 45c23998d3f6b6dac3497c5dc4a01d470e56b9b2..91b23b14e44b2634c7085e10cde07e34f04f2c29 100755 (executable)
@@ -38,8 +38,8 @@ msg="failed to set default file creation context to \`$c':"
 
 for cmd_w_arg in 'mkdir dir' 'mknod b p' 'mkfifo f'; do
   # In OpenBSD's /bin/sh, mknod is a shell built-in.
-  # Running via "nice" ensures we run our program and not the built-in.
-  nice -- $cmd_w_arg -Z $c 2> out && fail=1
+  # Running via "env" ensures we run our program and not the built-in.
+  env -- $cmd_w_arg -Z $c 2> out && fail=1
   set $cmd_w_arg; cmd=$1
   echo "$cmd: $msg" > exp || fail=1