summaryrefslogtreecommitdiff
path: root/tests/misc
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2015-06-05 17:33:54 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2015-06-06 00:46:13 -0700
commit079652ee6b5d3987525ce225518a15253fc9d319 (patch)
treec2a88e9eb7e42aa802dd9312cb80c70872a9fbfc /tests/misc
parent95413f7dff7ccc0595c93c30850446b8ea4d2f49 (diff)
downloadcoreutils-079652ee6b5d3987525ce225518a15253fc9d319.tar.xz
build: port to AIX
Problems reported by Michael Felt, and and part of this fix taken from code suggested by Pádraig Brady in: http://bugs.gnu.org/20733#112 * configure.ac (stdbuf_supported): Check for warnings, and for -fPIC and -shared, for AIX. * src/stat.c (STRUCT_STATVFS): Define to struct statvfs64 if STATFS is statvfs64. * src/sync.c (sync_arg) [_AIX]: Open in write mode, since AIX fsync doesn't work on read-only file descriptors. * tests/misc/wc-parallel.sh: Skip test if xargs -P does not work.
Diffstat (limited to 'tests/misc')
-rwxr-xr-xtests/misc/wc-parallel.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/misc/wc-parallel.sh b/tests/misc/wc-parallel.sh
index 2d1e9f405..98c36b9fa 100755
--- a/tests/misc/wc-parallel.sh
+++ b/tests/misc/wc-parallel.sh
@@ -20,6 +20,10 @@
. "${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
+
(mkdir tmp && cd tmp && seq 2000 | xargs touch)
# This will output at least 16KiB per process