mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
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:
1 parent
b1fb185db8
commit
b6d1e842c1
1 file changed
+1
-1
@@ -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
|
||||
Reference in new issue
Block a user