]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: fix false failure due to xargs usage
authorPádraig Brady <P@draigBrady.com>
Mon, 9 Dec 2013 13:34:03 +0000 (13:34 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 9 Dec 2013 13:37:21 +0000 (13:37 +0000)
* tests/readlink/multi.sh: Ensure there is a trailing delimeter
or xargs may (on AIX 7 at least) suppress the last argument.

tests/readlink/multi.sh

index 3b9154430c56205aa3e6a4e5f7942194c452d253..dc4ba877670f12070cd57eec8f65bbee2f23b57a 100755 (executable)
@@ -40,7 +40,7 @@ compare exp out || fail=1
 # Note the edge case that the last xargs run may not have a delimiter
 rm out || framework_failure_
 printf '/1\0/1\0/1' > exp || framework_failure_
-printf '/1 /1 /1' | xargs -n2 readlink -n -m --zero >> out || fail=1
+printf '/1 /1 /1 ' | xargs -n2 readlink -n -m --zero >> out || fail=1
 compare exp out || fail=1
 
 Exit $fail