========================================================== GNU coreutils 8.29.57-2ed7c2: ./tests/test-suite.log ========================================================== # TOTAL: 608 # PASS: 498 # SKIP: 109 # XFAIL: 0 # FAIL: 1 # XPASS: 0 # ERROR: 0 .. contents:: :depth: 2 FAIL: tests/misc/env-S-script ============================= ++ initial_cwd_=/home/bruno/coreutils-8.29.57-2ed7c2/build-64 +++ testdir_prefix_ +++ printf gt ++ pfx_=gt +++ mktempd_ /home/bruno/coreutils-8.29.57-2ed7c2/build-64 gt-env-S-script.sh.XXXX +++ case $# in +++ destdir_=/home/bruno/coreutils-8.29.57-2ed7c2/build-64 +++ template_=gt-env-S-script.sh.XXXX +++ MAX_TRIES_=4 +++ case $destdir_ in +++ destdir_slash_=/home/bruno/coreutils-8.29.57-2ed7c2/build-64/ +++ case $template_ in ++++ unset TMPDIR +++ d=/home/bruno/coreutils-8.29.57-2ed7c2/build-64/gt-env-S-script.sh.gxOF +++ case $d in +++ : +++ test -d /home/bruno/coreutils-8.29.57-2ed7c2/build-64/gt-env-S-script.sh.gxOF ++++ ls -dgo /home/bruno/coreutils-8.29.57-2ed7c2/build-64/gt-env-S-script.sh.gxOF +++ perms='drwx------ 2 4096 Jun 25 22:11 /home/bruno/coreutils-8.29.57-2ed7c2/build-64/gt-env-S-script.sh.gxOF' +++ case $perms in +++ : +++ echo /home/bruno/coreutils-8.29.57-2ed7c2/build-64/gt-env-S-script.sh.gxOF +++ return ++ test_dir_=/home/bruno/coreutils-8.29.57-2ed7c2/build-64/gt-env-S-script.sh.gxOF ++ cd /home/bruno/coreutils-8.29.57-2ed7c2/build-64/gt-env-S-script.sh.gxOF ++ gl_init_sh_nl_=' ' ++ IFS=' ' ++ for sig_ in 1 2 3 13 15 +++ expr 1 + 128 ++ eval 'trap '\''Exit 129'\'' 1' +++ trap 'Exit 129' 1 ++ for sig_ in 1 2 3 13 15 +++ expr 2 + 128 ++ eval 'trap '\''Exit 130'\'' 2' +++ trap 'Exit 130' 2 ++ for sig_ in 1 2 3 13 15 +++ expr 3 + 128 ++ eval 'trap '\''Exit 131'\'' 3' +++ trap 'Exit 131' 3 ++ for sig_ in 1 2 3 13 15 +++ expr 13 + 128 ++ eval 'trap '\''Exit 141'\'' 13' +++ trap 'Exit 141' 13 ++ for sig_ in 1 2 3 13 15 +++ 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 + case $path_dir_ in + abs_path_dir_=/home/bruno/coreutils-8.29.57-2ed7c2/build-64/./src + case $abs_path_dir_ in + PATH=/home/bruno/coreutils-8.29.57-2ed7c2/build-64/./src:/home/bruno/coreutils-8.29.57-2ed7c2/build-64/src:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games + create_exe_shims_ /home/bruno/coreutils-8.29.57-2ed7c2/build-64/./src + case $EXEEXT in + return 0 + shift + test 0 '!=' 0 + export PATH + print_ver_ env + require_built_ env + skip_=no + for i in "$@" + case " $built_programs " in + test no = yes + test yes = yes + local i + for i in $* + env env --version env (GNU coreutils) 8.29.57-2ed7c2 Copyright (C) 2018 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 Richard Mlynarik, David MacKenzie, and Assaf Gordon. + print_ver_ printf + require_built_ printf + skip_=no + for i in "$@" + case " $built_programs " in + test no = yes + test yes = yes + local i + for i in $* + env printf --version printf (GNU coreutils) 8.29.57-2ed7c2 Copyright (C) 2018 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 David MacKenzie. + dir=/home/bruno/coreutils-8.29.57-2ed7c2/build-64/src + printf '#!/home/bruno/coreutils-8.29.57-2ed7c2/build-64/src/env sh\necho hello\n' + chmod a+x env_test + ./env_test hello + printf '#!/home/bruno/coreutils-8.29.57-2ed7c2/build-64/src/env /home/bruno/coreutils-8.29.57-2ed7c2/build-64/src/printf x%%sx\\n A B\n' + chmod a+x env_bad + returns_ 127 ./env_bad /home/bruno/coreutils-8.29.57-2ed7c2/build-64/src/env: '/home/bruno/coreutils-8.29.57-2ed7c2/build-64/src/printf x%sx\\n A B': No such file or directory /home/bruno/coreutils-8.29.57-2ed7c2/build-64/src/env: use -[v]S to pass options in shebang lines + printf '#!/home/bruno/coreutils-8.29.57-2ed7c2/build-64/src/env -S /home/bruno/coreutils-8.29.57-2ed7c2/build-64/src/printf x%%sx\\n A B\n' + chmod a+x env1 + cat + ./env1 C D 'E F' + compare exp1 out1 + compare_dev_null_ exp1 out1 + test 2 = 2 + test xexp1 = x/dev/null + test xout1 = x/dev/null + return 2 + case $? in + compare_ exp1 out1 + diff -u exp1 out1 + printf '#!/home/bruno/coreutils-8.29.57-2ed7c2/build-64/src/env -S /home/bruno/coreutils-8.29.57-2ed7c2/build-64/src/printf x%%sx\\n "A B"\n' + chmod a+x env2 + cat + ./env2 /home/bruno/coreutils-8.29.57-2ed7c2/build-64/src/env: no terminating quote in -S string + fail=1 + compare exp2 out2 + compare_dev_null_ exp2 out2 + test 2 = 2 + test xexp2 = x/dev/null + test xout2 = x/dev/null + return 2 + case $? in + compare_ exp2 out2 + diff -u exp2 out2 --- exp2 2018-06-25 22:11:42.409000499 +0200 +++ out2 2018-06-25 22:11:42.416995040 +0200 @@ -1,2 +0,0 @@ -xA Bx -x./env2x + fail=1 + printf '#!/home/bruno/coreutils-8.29.57-2ed7c2/build-64/src/env -S/home/bruno/coreutils-8.29.57-2ed7c2/build-64/src/printf\\_x%%sx\\n\\_Y\n' + chmod a+x env3 + cat + ./env3 W + compare exp3 out3 + compare_dev_null_ exp3 out3 + test 2 = 2 + test xexp3 = x/dev/null + test xout3 = x/dev/null + return 2 + case $? in + compare_ exp3 out3 + diff -u exp3 out3 + printf '#!/home/bruno/coreutils-8.29.57-2ed7c2/build-64/src/env -S/home/bruno/coreutils-8.29.57-2ed7c2/build-64/src/printf x%%sx\\n A#B #C D\n' + chmod a+x env4 + cat + ./env4 Z + compare exp4 out4 + compare_dev_null_ exp4 out4 + test 2 = 2 + test xexp4 = x/dev/null + test xout4 = x/dev/null + return 2 + case $? in + compare_ exp4 out4 + diff -u exp4 out4 + printf '#!/home/bruno/coreutils-8.29.57-2ed7c2/build-64/src/env -S perl -w -T\n' + printf 'print "hello\\n";\n' + chmod a+x env5 + cat + ./env5 + compare exp5 out5 + compare_dev_null_ exp5 out5 + test 2 = 2 + test xexp5 = x/dev/null + test xout5 = x/dev/null + return 2 + case $? in + compare_ exp5 out5 + diff -u exp5 out5 + printf '#!/home/bruno/coreutils-8.29.57-2ed7c2/build-64/src/env -S ' + printf 'perl -mFile::Basename=basename -e ' + printf '"print basename(\\$ARGV[0]);"\n' + chmod a+x env6 + printf env6 + ./env6 + compare exp6 out6 + compare_dev_null_ exp6 out6 + test 2 = 2 + test xexp6 = x/dev/null + test xout6 = x/dev/null + return 2 + case $? in + compare_ exp6 out6 + diff -u exp6 out6 + Exit 1 + set +e + exit 1 + exit 1 + remove_tmp_ + __st=1 + cleanup_ + : + test '' = yes + cd /home/bruno/coreutils-8.29.57-2ed7c2/build-64 + chmod -R u+rwx /home/bruno/coreutils-8.29.57-2ed7c2/build-64/gt-env-S-script.sh.gxOF + rm -rf /home/bruno/coreutils-8.29.57-2ed7c2/build-64/gt-env-S-script.sh.gxOF + exit 1 FAIL tests/misc/env-S-script.sh (exit status: 1)