]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: skip the misc/stdbuf test if stdbuf was not built
authorJim Meyering <meyering@redhat.com>
Fri, 14 Aug 2009 19:34:05 +0000 (21:34 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 14 Aug 2009 19:34:05 +0000 (21:34 +0200)
* tests/misc/stdbuf: Skip this test when stdbuf is not built.
Reported by Eric Blake.

tests/misc/stdbuf

index 30aa5898e3b8a799caa95be6ce30361df0bdff07..5ce2c1189487a5feb8b5ff502aeeb1a57b0802c9 100755 (executable)
@@ -21,6 +21,12 @@ if test "$VERBOSE" = yes; then
   stdbuf --version
 fi
 
+# skip this test if stdbuf isn't being built.
+case " $built_programs " in
+  *" stdbuf "*) ;;
+  *) skip_test_ 'stdbuf not built';;
+esac
+
 . $srcdir/test-lib.sh
 getlimits_