From e4dcb20e83260d3d0e30e35a81d850d07635dda2 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 14 Aug 2009 21:34:05 +0200 Subject: 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. --- tests/misc/stdbuf | 6 ++++++ 1 file changed, 6 insertions(+) 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_ -- cgit v1.2.3-54-g00ecf