========================================================= GNU coreutils 8.28.61-70c84: ./tests/test-suite.log ========================================================= # TOTAL: 603 # PASS: 449 # SKIP: 153 # XFAIL: 0 # FAIL: 1 # XPASS: 0 # ERROR: 0 FAIL: tests/misc/shred-remove ============================= + initial_cwd_=/tmp/coreutils-8.28.61-70c84.XXXXXX.Y3qNS0ra/coreutils-8.28.61-70c84 + testdir_prefix_ + printf gt + pfx_=gt + mktempd_ /tmp/coreutils-8.28.61-70c84.XXXXXX.Y3qNS0ra/coreutils-8.28.61-70c84 gt-shred-remove.sh.XXXX + destdir_=/tmp/coreutils-8.28.61-70c84.XXXXXX.Y3qNS0ra/coreutils-8.28.61-70c84 + template_=gt-shred-remove.sh.XXXX + MAX_TRIES_=4 + destdir_slash_=/tmp/coreutils-8.28.61-70c84.XXXXXX.Y3qNS0ra/coreutils-8.28.61-70c84/ + unset TMPDIR + d=/tmp/coreutils-8.28.61-70c84.XXXXXX.Y3qNS0ra/coreutils-8.28.61-70c84/gt-shred-remove.sh.wRtS + : + test -d /tmp/coreutils-8.28.61-70c84.XXXXXX.Y3qNS0ra/coreutils-8.28.61-70c84/gt-shred-remove.sh.wRtS + ls -dgo /tmp/coreutils-8.28.61-70c84.XXXXXX.Y3qNS0ra/coreutils-8.28.61-70c84/gt-shred-remove.sh.wRtS + perms='drwx------ 2 512 Dec 22 01:42 /tmp/coreutils-8.28.61-70c84.XXXXXX.Y3qNS0ra/coreutils-8.28.61-70c84/gt-shred-remove.sh.wRtS' + : + echo /tmp/coreutils-8.28.61-70c84.XXXXXX.Y3qNS0ra/coreutils-8.28.61-70c84/gt-shred-remove.sh.wRtS + return + test_dir_=/tmp/coreutils-8.28.61-70c84.XXXXXX.Y3qNS0ra/coreutils-8.28.61-70c84/gt-shred-remove.sh.wRtS + cd /tmp/coreutils-8.28.61-70c84.XXXXXX.Y3qNS0ra/coreutils-8.28.61-70c84/gt-shred-remove.sh.wRtS + gl_init_sh_nl_=' ' + IFS=$' \t ' + expr 1 + 128 + eval $'trap \'Exit 129\' 1' + trap 'Exit 129' 1 + expr 2 + 128 + eval $'trap \'Exit 130\' 2' + trap 'Exit 130' 2 + expr 3 + 128 + eval $'trap \'Exit 131\' 3' + trap 'Exit 131' 3 + expr 13 + 128 + eval $'trap \'Exit 141\' 13' + trap 'Exit 141' 13 + expr 15 + 128 + eval $'trap \'Exit 143\' 15' + trap 'Exit 143' 15 + trap remove_tmp_ 0 + path_prepend_ ./src + test 1 '!=' 0 + path_dir_=./src + abs_path_dir_=/tmp/coreutils-8.28.61-70c84.XXXXXX.Y3qNS0ra/coreutils-8.28.61-70c84/./src + PATH=/tmp/coreutils-8.28.61-70c84.XXXXXX.Y3qNS0ra/coreutils-8.28.61-70c84/./src:/tmp/coreutils-8.28.61-70c84.XXXXXX.Y3qNS0ra/coreutils-8.28.61-70c84/src:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin + create_exe_shims_ /tmp/coreutils-8.28.61-70c84.XXXXXX.Y3qNS0ra/coreutils-8.28.61-70c84/./src + return 0 + shift + test 0 '!=' 0 + export PATH + print_ver_ shred + require_built_ shred + skip_=no + test no '=' yes + test yes '=' yes + local i + env shred --version shred (GNU coreutils) 8.28.61-70c84 Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Colin Plumb. + skip_if_root_ + uid_is_privileged_ + id -u + my_uid=1001 + return 1 + file=0123456789 + touch 0123456789 + chmod u-w 0123456789 + returns_ 1 shred -u 0123456789 + rm -f 0123456789 + touch 0123456789 + shred -n0 --remove 0123456789 + test -e 0123456789 + touch 0123456789 + shred -n0 '--remove=unlink' 0123456789 + test -e 0123456789 + touch 0123456789 + shred -n0 '--remove=wipe' 0123456789 + test -e 0123456789 + touch 0123456789 + shred -n0 '--remove=wipesync' 0123456789 + test -e 0123456789 + touch 0123456789 + returns_ 1 shred -n0 '--remove=none' 0123456789 + printf 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_. + sed 's/./&\n/g' + xargs touch + touch test 000 + shred -vu test + cat + compare exp out + compare_dev_null_ exp out + test 2 '=' 2 + test xexp '=' x/dev/null + test xout '=' x/dev/null + return 2 + compare_ exp out + diff -u exp out --- exp 2017-12-22 01:42:22.634565000 +0000 +++ out 2017-12-22 01:42:22.633280000 +0000 @@ -2,4 +2,5 @@ shred: test: renamed to 0000 shred: 0000: renamed to 001 shred: 001: renamed to 00 +shred: 00: renamed to 0 shred: test: removed + fail=1 + mkdir rodir + cd rodir + touch 0123456789 + chmod a-w . + returns_ 1 timeout 10 shred -u 0123456789 shred: 0123456789: failed to remove: Permission denied + Exit 1 + set +e + exit 1 + exit 1 + remove_tmp_ + __st=1 + cleanup_ + : + test '' '=' yes + cd /tmp/coreutils-8.28.61-70c84.XXXXXX.Y3qNS0ra/coreutils-8.28.61-70c84 + chmod -R u+rwx /tmp/coreutils-8.28.61-70c84.XXXXXX.Y3qNS0ra/coreutils-8.28.61-70c84/gt-shred-remove.sh.wRtS + rm -rf /tmp/coreutils-8.28.61-70c84.XXXXXX.Y3qNS0ra/coreutils-8.28.61-70c84/gt-shred-remove.sh.wRtS + exit 1 FAIL tests/misc/shred-remove.sh (exit status: 1)