summaryrefslogtreecommitdiff
path: root/tests/misc/wc-parallel.sh
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2015-06-06 14:17:14 +0100
committerPádraig Brady <P@draigBrady.com>2015-06-06 14:27:54 +0100
commit3150ec900c4b8f84978ca4fb80eb109ae0df875c (patch)
tree2fcf37f00b2822b84c1745a649f4b6e8b424ab99 /tests/misc/wc-parallel.sh
parent079652ee6b5d3987525ce225518a15253fc9d319 (diff)
downloadcoreutils-3150ec900c4b8f84978ca4fb80eb109ae0df875c.tar.xz
tests: fix false failure in recent test adjustment
* configure.ac: Comment on why we link rather than run the test, and remove the moot __ELF__ check since we never ran it anyway, and the new CFLAGS and LDFLAGS are a more direct test of support. * tests/misc/wc-parallel.sh: Fix a syntax error in the previous change. * tests/misc/md5sum-parallel.sh: Use better error checking, consistent with that used in wc-parallel.sh.
Diffstat (limited to 'tests/misc/wc-parallel.sh')
-rwxr-xr-xtests/misc/wc-parallel.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/misc/wc-parallel.sh b/tests/misc/wc-parallel.sh
index 98c36b9fa..19497e047 100755
--- a/tests/misc/wc-parallel.sh
+++ b/tests/misc/wc-parallel.sh
@@ -20,9 +20,8 @@
. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
print_ver_ wc
-if xargs -P2 </dev/null >/dev/null 2>&1
- skip_ 'xargs -P is required'
-fi
+xargs -P2 </dev/null >/dev/null 2>&1 \
+ || skip_ 'xargs -P is required'
(mkdir tmp && cd tmp && seq 2000 | xargs touch)