summaryrefslogtreecommitdiff
path: root/tests/misc/stdbuf
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-08-14 21:34:05 +0200
committerJim Meyering <meyering@redhat.com>2009-08-14 21:34:05 +0200
commite4dcb20e83260d3d0e30e35a81d850d07635dda2 (patch)
tree93419a59f66c1bf2825c07f69596749b4b676b1c /tests/misc/stdbuf
parentea5b7124b44a52da4a5be4c7c42a37d65025c621 (diff)
downloadcoreutils-e4dcb20e83260d3d0e30e35a81d850d07635dda2.tar.xz
tests: skip the misc/stdbuf test if stdbuf was not built
* tests/misc/stdbuf: Skip this test when stdbuf is not built. Reported by Eric Blake.
Diffstat (limited to 'tests/misc/stdbuf')
-rwxr-xr-xtests/misc/stdbuf6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/misc/stdbuf b/tests/misc/stdbuf
index 30aa5898e..5ce2c1189 100755
--- a/tests/misc/stdbuf
+++ b/tests/misc/stdbuf
@@ -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_