From: Pádraig Brady
Date: Tue, 2 Jan 2018 12:52:11 +0000 (+0000) Subject: tests: avoid false failure with xargs on AIX X-Git-Tag: v8.30~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd4dd61a17c880b89b9f890d5788b07117835717;p=thirdparty%2Fcoreutils.git tests: avoid false failure with xargs on AIX * tests/misc/shred-remove.sh: AIX xargs defaults to using '_' to indicate end of input, thus ignoring it. Rather than specifying -E to avoid this behavior, simplify by removing sed and xargs usage. --- diff --git a/tests/misc/shred-remove.sh b/tests/misc/shred-remove.sh index f70a1f7a4e..5894ea7bb0 100755 --- a/tests/misc/shred-remove.sh +++ b/tests/misc/shred-remove.sh @@ -47,10 +47,11 @@ returns_ 1 shred -n0 --remove=none $file 2>/dev/null || fail=1 # Ensure rename passes complete. # coreutils-8.28 did not do the decreasing length rename # which may have leaked the length of the removed file name -NL=" -" -printf 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_ | -sed "s/./&\\$NL/g" | xargs touch || framework_failure_ # test level exhaustion + # test level exhaustion +touch \ + 0 1 2 3 4 5 6 7 8 9 \ + a b c d e f g h i j k l m n o p q r s t u v w x y z \ + A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _ || framework_failure_ touch test 000 || framework_failure_ # test level increment shred -vu test 2>out || fail=1 cat <<\EOF >exp || framework_failure_