============================================ GNU sed 4.4.108-20cc: ./test-suite.log ============================================ # TOTAL: 60 # PASS: 55 # SKIP: 4 # XFAIL: 0 # FAIL: 1 # XPASS: 0 # ERROR: 0 FAIL: testsuite/inplace-selinux =============================== ++ initial_cwd_=/tmp/sed-4.4.108-20cc.ozYyBr/sed-4.4.108-20cc +++ testdir_prefix_ +++ printf gt ++ pfx_=gt +++ mktempd_ /tmp/sed-4.4.108-20cc.ozYyBr/sed-4.4.108-20cc gt-inplace-selinux.sh.XXXX +++ case $# in +++ destdir_=/tmp/sed-4.4.108-20cc.ozYyBr/sed-4.4.108-20cc +++ template_=gt-inplace-selinux.sh.XXXX +++ MAX_TRIES_=4 +++ case $destdir_ in +++ destdir_slash_=/tmp/sed-4.4.108-20cc.ozYyBr/sed-4.4.108-20cc/ +++ case $template_ in ++++ unset TMPDIR +++ d=/tmp/sed-4.4.108-20cc.ozYyBr/sed-4.4.108-20cc/gt-inplace-selinux.sh.vNkf +++ case $d in +++ : +++ test -d /tmp/sed-4.4.108-20cc.ozYyBr/sed-4.4.108-20cc/gt-inplace-selinux.sh.vNkf ++++ ls -dgo /tmp/sed-4.4.108-20cc.ozYyBr/sed-4.4.108-20cc/gt-inplace-selinux.sh.vNkf +++ perms='drwx------. 2 6 Mar 29 10:22 /tmp/sed-4.4.108-20cc.ozYyBr/sed-4.4.108-20cc/gt-inplace-selinux.sh.vNkf' +++ case $perms in +++ : +++ echo /tmp/sed-4.4.108-20cc.ozYyBr/sed-4.4.108-20cc/gt-inplace-selinux.sh.vNkf +++ return ++ test_dir_=/tmp/sed-4.4.108-20cc.ozYyBr/sed-4.4.108-20cc/gt-inplace-selinux.sh.vNkf ++ cd /tmp/sed-4.4.108-20cc.ozYyBr/sed-4.4.108-20cc/gt-inplace-selinux.sh.vNkf ++ 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_ ./sed + test 1 '!=' 0 + path_dir_=./sed + case $path_dir_ in + abs_path_dir_=/tmp/sed-4.4.108-20cc.ozYyBr/sed-4.4.108-20cc/./sed + case $abs_path_dir_ in + PATH=/tmp/sed-4.4.108-20cc.ozYyBr/sed-4.4.108-20cc/./sed:/tmp/sed-4.4.108-20cc.ozYyBr/sed-4.4.108-20cc/sed:/usr/local/bin:/usr/bin + create_exe_shims_ /tmp/sed-4.4.108-20cc.ozYyBr/sed-4.4.108-20cc/./sed + case $EXEEXT in + return 0 + shift + test 0 '!=' 0 + export PATH + print_ver_ sed + test yes = yes + local i + for i in '$*' + env sed --version sed (GNU sed) 4.4.108-20cc 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 Jay Fenlason, Tom Lord, Ken Pizzini, and Paolo Bonzini. GNU sed home page: . General help using GNU software: . E-mail bug reports to: . + require_selinux_ + grep 'selinuxfs$' /proc/filesystems + case $(ls -Zd .) in ++ ls -Zd . + fail=0 + echo 'Hello World' + ln -s ./inplace-selinux-file inplace-selinux-link + chcon -h -t user_home_t inplace-selinux-file + chcon -h -t user_tmp_t inplace-selinux-link + echo 'Hello World' + ln -s ./inplace-selinux-file2 inplace-selinux-link2 + chcon -h -t user_home_t inplace-selinux-file2 + chcon -h -t user_tmp_t inplace-selinux-link2 + sed -i -e s~Hello~Hi~ inplace-selinux-link + sed -i --follow-symlinks -e s~Hello~Hi~ inplace-selinux-link2 + grep :user_tmp_t: + ls -Z inplace-selinux-link unconfined_u:object_r:user_tmp_t:s0 inplace-selinux-link + grep :user_home_t: + ls -Z inplace-selinux-file2 + fail=1 + Exit 1 + set +e + exit 1 + exit 1 + remove_tmp_ + __st=1 + cleanup_ + : + test '' = yes + cd /tmp/sed-4.4.108-20cc.ozYyBr/sed-4.4.108-20cc + chmod -R u+rwx /tmp/sed-4.4.108-20cc.ozYyBr/sed-4.4.108-20cc/gt-inplace-selinux.sh.vNkf + rm -rf /tmp/sed-4.4.108-20cc.ozYyBr/sed-4.4.108-20cc/gt-inplace-selinux.sh.vNkf + exit 1 FAIL testsuite/inplace-selinux.sh (exit status: 1)