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.
This commit is contained in:
Pádraig Brady committed 2013-12-09 13:37:21 +00:00
1 parent b1fb185db8
commit b6d1e842c1
1 file changed
+1 -1
+1 -1
View File
@@ -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