tests: don't fail due to built-in sleep from Solaris 11's /bin/sh
authorJim Meyering <meyering@redhat.com>
Sun, 7 Sep 2008 17:16:42 +0000 (19:16 +0200)
committerJim Meyering <meyering@redhat.com>
Sun, 7 Sep 2008 17:16:42 +0000 (19:16 +0200)
* tests/misc/help-version (id_args): Invoke via env to ensure we
run the just-built version of sleep.

tests/misc/help-version

index 77d37bb..8fa7a0b 100755 (executable)
@@ -163,7 +163,8 @@ df_args=/
 # This is necessary in the unusual event that getpwuid (getuid ()) fails.
 id_args=-u
 
-sleep 10m &
+# Use env to avoid invoking built-in sleep of Solaris 11's /bin/sh.
+env sleep 10m &
 kill_args=$!
 
 link_args="$tmp_in link-target"