From: Pádraig Brady Date: Mon, 9 Dec 2013 13:34:03 +0000 (+0000) Subject: tests: fix false failure due to xargs usage X-Git-Tag: v8.22~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6d1e842c10bd0fe6d7e6937207c44c753caa7dd;p=thirdparty%2Fcoreutils.git tests: fix false failure due to xargs usage * tests/readlink/multi.sh: Ensure there is a trailing delimeter or xargs may (on AIX 7 at least) suppress the last argument. --- diff --git a/tests/readlink/multi.sh b/tests/readlink/multi.sh index 3b9154430c..dc4ba87767 100755 --- a/tests/readlink/multi.sh +++ b/tests/readlink/multi.sh @@ -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