]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: fix ipcs basic limit when bc is not available
authorGilles Espinasse <g.esp@free.fr>
Sun, 14 Oct 2012 13:52:55 +0000 (15:52 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 15 Oct 2012 15:15:25 +0000 (17:15 +0200)
Skip basic limit test if bc is not available.
That happen to be the case when building from sources, following LFS book

Signed-off-by: Gilles Espinasse <g.esp@free.fr>
tests/ts/ipcs/limits2

index acb174912f468028cd8455e17342f0f43eedfe3f..f99a35448ff12c120cbaffef7bee05c18d186226 100755 (executable)
@@ -21,6 +21,7 @@ TS_DESC="basic limits"
 
 . $TS_TOPDIR/functions.sh
 ts_init "$*"
+type bc >/dev/null 2>&1 || ts_skip "cannot find bc command"
 
 . $TS_SELF/functions.sh