On Solaris 11.4, there are two test failures: FAIL: tests/stty/stty-row-col FAIL: tests/dd/fail-ftruncate-fstat
On Solaris 11 OpenIndiana, there is one test failure: FAIL: tests/dd/fail-ftruncate-fstat
========================================================= GNU coreutils 9.9.258-49420: ./tests/test-suite.log ========================================================= # TOTAL: 706 # PASS: 517 # SKIP: 187 # XFAIL: 0 # FAIL: 2 # XPASS: 0 # ERROR: 0 System information (uname -a): SunOS 5.11 11.4.0.15.0 i86pc i386 Distribution information (/etc/os-release): NAME="Oracle Solaris" PRETTY_NAME="Oracle Solaris 11.4" CPE_NAME="cpe:/o:oracle:solaris:11:4" ID=solaris VERSION=11.4 VERSION_ID=11.4 BUILD_ID=11.4.0.0.1.15.0 HOME_URL="https://www.oracle.com/solaris/" .. contents:: :depth: 2 FAIL: tests/stty/stty-row-col ============================= ++ initial_cwd_=/export/home/bruno/coreutils-9.9.258-49420/build-64 +++ testdir_prefix_ +++ printf gt ++ pfx_=gt +++ mktempd_ /export/home/bruno/coreutils-9.9.258-49420/build-64 gt-stty-row-col.sh.XXXX +++ case $# in +++ destdir_=/export/home/bruno/coreutils-9.9.258-49420/build-64 +++ template_=gt-stty-row-col.sh.XXXX +++ MAX_TRIES_=4 +++ case $destdir_ in +++ destdir_slash_=/export/home/bruno/coreutils-9.9.258-49420/build-64/ +++ case $template_ in ++++ unset TMPDIR +++ d=/export/home/bruno/coreutils-9.9.258-49420/build-64/gt-stty-row-col.sh.jcHc +++ case $d in +++ : +++ test -d /export/home/bruno/coreutils-9.9.258-49420/build-64/gt-stty-row-col.sh.jcHc ++++ ls -dgo /export/home/bruno/coreutils-9.9.258-49420/build-64/gt-stty-row-col.sh.jcHc +++ perms='drwx------ 2 2 Jan 23 13:12 /export/home/bruno/coreutils-9.9.258-49420/build-64/gt-stty-row-col.sh.jcHc' +++ case $perms in +++ : +++ echo /export/home/bruno/coreutils-9.9.258-49420/build-64/gt-stty-row-col.sh.jcHc +++ return ++ test_dir_=/export/home/bruno/coreutils-9.9.258-49420/build-64/gt-stty-row-col.sh.jcHc ++ cd /export/home/bruno/coreutils-9.9.258-49420/build-64/gt-stty-row-col.sh.jcHc ++ case $srcdir in ++ srcdir=../.. ++ builddir=.. ++ export srcdir builddir ++ 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 ++ saved_IFS=' ' ++ IFS=: ++ new_PATH= ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /export/home/bruno/coreutils-9.9.258-49420/build-64/src/. ++ new_PATH=/export/home/bruno/coreutils-9.9.258-49420/build-64/src ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /usr/xpg4/bin/. ++ new_PATH=/export/home/bruno/coreutils-9.9.258-49420/build-64/src:/usr/xpg4/bin ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /export/home/bruno/prefix64/bin/. ++ new_PATH=/export/home/bruno/coreutils-9.9.258-49420/build-64/src:/usr/xpg4/bin:/export/home/bruno/prefix64/bin ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /usr/bin/. ++ new_PATH=/export/home/bruno/coreutils-9.9.258-49420/build-64/src:/usr/xpg4/bin:/export/home/bruno/prefix64/bin:/usr/bin ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /usr/sbin/. ++ new_PATH=/export/home/bruno/coreutils-9.9.258-49420/build-64/src:/usr/xpg4/bin:/export/home/bruno/prefix64/bin:/usr/bin:/usr/sbin ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /sbin/. ++ new_PATH=/export/home/bruno/coreutils-9.9.258-49420/build-64/src:/usr/xpg4/bin:/export/home/bruno/prefix64/bin:/usr/bin:/usr/sbin:/sbin ++ IFS=' ' ++ PATH=/export/home/bruno/coreutils-9.9.258-49420/build-64/src:/usr/xpg4/bin:/export/home/bruno/prefix64/bin:/usr/bin:/usr/sbin:/sbin ++ export PATH ++ trap remove_tmp_ EXIT + path_prepend_ ./src + test 1 '!=' 0 + path_dir_=./src + case $path_dir_ in + abs_path_dir_=/export/home/bruno/coreutils-9.9.258-49420/build-64/./src + case $abs_path_dir_ in + PATH=/export/home/bruno/coreutils-9.9.258-49420/build-64/./src:/export/home/bruno/coreutils-9.9.258-49420/build-64/src:/usr/xpg4/bin:/export/home/bruno/prefix64/bin:/usr/bin:/usr/sbin:/sbin + create_exe_shims_ /export/home/bruno/coreutils-9.9.258-49420/build-64/./src + case $EXEEXT in + return 0 + shift + test 0 '!=' 0 + export PATH + print_ver_ stty + require_built_ stty + skip_=no + for i in "$@" + case " $built_programs " in + test no = yes + test yes = yes + local i + for i in $* + env stty --version stty (GNU coreutils) 9.9.258-49420 Copyright (C) 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. 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. + require_controlling_input_terminal_ + have_input_tty=yes + tty -s + test -t 0 + test yes = no + require_trap_signame_ + trap '' CHLD + trap '' TTOU + tests=' 1 rows_40_columns_80 40_80 2 rows_1_columns_1 1_1 3 rows_40_columns_80 40_80 4 rows_1 1_80 5 columns_1 1_1 6 rows_40 40_1 7 rows_1 1_1 8 columns_80 1_80 9 rows_30 30_80 10 rows_0x1E 30_80 11 rows_036 30_80 NA LAST NA ' + set -- 1 rows_40_columns_80 40_80 2 rows_1_columns_1 1_1 3 rows_40_columns_80 40_80 4 rows_1 1_80 5 columns_1 1_1 6 rows_40 40_1 7 rows_1 1_1 8 columns_80 1_80 9 rows_30 30_80 10 rows_0x1E 30_80 11 rows_036 30_80 NA LAST NA ++ stty size + saved_size='34 80' + test -n '34 80' + test 'x34 80' '!=' 'x0 0' ++ echo 34 80 ++ cut -d ' ' -f1 + srow=34 ++ echo 34 80 ++ cut -d ' ' -f2 + scol=80 ++ expr 34 + 1 ++ expr 80 + 1 + stty rows 35 cols 81 + : + test_name=1 + args=rows_40_columns_80 ++ echo 40_80 ++ tr _ ' ' + expected_result='40 80' + test rows_40_columns_80 = empty + test xrows_40_columns_80 = xLAST ++ echo xrows_40_columns_80 ++ tr _ ' ' ++ sed 's/^x//' + args='rows 40 columns 80' + test yes = yes + echo 'test 1... ' + tr -d '\n' test 1... + stty rows 40 columns 80 ++ stty size + test 'x34 80' = 'x40 80' + ok=FAIL + fail=1 + test yes = yes + echo FAIL FAIL + shift + shift + shift + : + test_name=2 + args=rows_1_columns_1 ++ echo 1_1 ++ tr _ ' ' + expected_result='1 1' + test rows_1_columns_1 = empty + test xrows_1_columns_1 = xLAST ++ echo xrows_1_columns_1 ++ tr _ ' ' ++ sed 's/^x//' + args='rows 1 columns 1' + test yes = yes + echo 'test 2... ' + tr -d '\n' test 2... + stty rows 1 columns 1 ++ stty size + test 'x34 80' = 'x1 1' + ok=FAIL + fail=1 + test yes = yes + echo FAIL FAIL + shift + shift + shift + : + test_name=3 + args=rows_40_columns_80 ++ echo 40_80 ++ tr _ ' ' + expected_result='40 80' + test rows_40_columns_80 = empty + test xrows_40_columns_80 = xLAST ++ echo xrows_40_columns_80 ++ tr _ ' ' ++ sed 's/^x//' + args='rows 40 columns 80' + test yes = yes + echo 'test 3... ' + tr -d '\n' test 3... + stty rows 40 columns 80 ++ stty size + test 'x34 80' = 'x40 80' + ok=FAIL + fail=1 + test yes = yes + echo FAIL FAIL + shift + shift + shift + : + test_name=4 + args=rows_1 ++ echo 1_80 ++ tr _ ' ' + expected_result='1 80' + test rows_1 = empty + test xrows_1 = xLAST ++ echo xrows_1 ++ tr _ ' ' ++ sed 's/^x//' + args='rows 1' + test yes = yes + echo 'test 4... ' + tr -d '\n' test 4... + stty rows 1 ++ stty size + test 'x34 80' = 'x1 80' + ok=FAIL + fail=1 + test yes = yes + echo FAIL FAIL + shift + shift + shift + : + test_name=5 + args=columns_1 ++ echo 1_1 ++ tr _ ' ' + expected_result='1 1' + test columns_1 = empty + test xcolumns_1 = xLAST ++ echo xcolumns_1 ++ tr _ ' ' ++ sed 's/^x//' + args='columns 1' + test yes = yes + echo 'test 5... ' + tr -d '\n' test 5... + stty columns 1 ++ stty size + test 'x34 80' = 'x1 1' + ok=FAIL + fail=1 + test yes = yes + echo FAIL FAIL + shift + shift + shift + : + test_name=6 + args=rows_40 ++ echo 40_1 ++ tr _ ' ' + expected_result='40 1' + test rows_40 = empty + test xrows_40 = xLAST ++ echo xrows_40 ++ tr _ ' ' ++ sed 's/^x//' + args='rows 40' + test yes = yes + echo 'test 6... ' + tr -d '\n' test 6... + stty rows 40 ++ stty size + test 'x34 80' = 'x40 1' + ok=FAIL + fail=1 + test yes = yes + echo FAIL FAIL + shift + shift + shift + : + test_name=7 + args=rows_1 ++ echo 1_1 ++ tr _ ' ' + expected_result='1 1' + test rows_1 = empty + test xrows_1 = xLAST ++ echo xrows_1 ++ tr _ ' ' ++ sed 's/^x//' + args='rows 1' + test yes = yes + echo 'test 7... ' + tr -d '\n' test 7... + stty rows 1 ++ stty size + test 'x34 80' = 'x1 1' + ok=FAIL + fail=1 + test yes = yes + echo FAIL FAIL + shift + shift + shift + : + test_name=8 + args=columns_80 ++ echo 1_80 ++ tr _ ' ' + expected_result='1 80' + test columns_80 = empty + test xcolumns_80 = xLAST ++ echo xcolumns_80 ++ tr _ ' ' ++ sed 's/^x//' + args='columns 80' + test yes = yes + echo 'test 8... ' + tr -d '\n' test 8... + stty columns 80 ++ stty size + test 'x34 80' = 'x1 80' + ok=FAIL + fail=1 + test yes = yes + echo FAIL FAIL + shift + shift + shift + : + test_name=9 + args=rows_30 ++ echo 30_80 ++ tr _ ' ' + expected_result='30 80' + test rows_30 = empty + test xrows_30 = xLAST ++ echo xrows_30 ++ tr _ ' ' ++ sed 's/^x//' + args='rows 30' + test yes = yes + echo 'test 9... ' + tr -d '\n' test 9... + stty rows 30 ++ stty size + test 'x34 80' = 'x30 80' + ok=FAIL + fail=1 + test yes = yes + echo FAIL FAIL + shift + shift + shift + : + test_name=10 + args=rows_0x1E ++ echo 30_80 ++ tr _ ' ' + expected_result='30 80' + test rows_0x1E = empty + test xrows_0x1E = xLAST ++ echo xrows_0x1E ++ tr _ ' ' ++ sed 's/^x//' + args='rows 0x1E' + test yes = yes + echo 'test 10... ' + tr -d '\n' test 10... + stty rows 0x1E ++ stty size + test 'x34 80' = 'x30 80' + ok=FAIL + fail=1 + test yes = yes + echo FAIL FAIL + shift + shift + shift + : + test_name=11 + args=rows_036 ++ echo 30_80 ++ tr _ ' ' + expected_result='30 80' + test rows_036 = empty + test xrows_036 = xLAST ++ echo xrows_036 ++ tr _ ' ' ++ sed 's/^x//' + args='rows 036' + test yes = yes + echo 'test 11... ' + tr -d '\n' test 11... + stty rows 036 ++ stty size + test 'x34 80' = 'x30 80' + ok=FAIL + fail=1 + test yes = yes + echo FAIL FAIL + shift + shift + shift + : + test_name=NA + args=LAST ++ echo NA ++ tr _ ' ' + expected_result=NA + test LAST = empty + test xLAST = xLAST + break + set x 34 80 + stty rows 34 columns 80 + Exit 1 + set +e + exit 1 + exit 1 + remove_tmp_ + __st=1 + cleanup_ + : + test '' = yes + cd /export/home/bruno/coreutils-9.9.258-49420/build-64 + chmod -R u+rwx /export/home/bruno/coreutils-9.9.258-49420/build-64/gt-stty-row-col.sh.jcHc + rm -rf /export/home/bruno/coreutils-9.9.258-49420/build-64/gt-stty-row-col.sh.jcHc + exit 1 FAIL tests/stty/stty-row-col.sh (exit status: 1) FAIL: tests/dd/fail-ftruncate-fstat =================================== ++ initial_cwd_=/export/home/bruno/coreutils-9.9.258-49420/build-64 +++ testdir_prefix_ +++ printf gt ++ pfx_=gt +++ mktempd_ /export/home/bruno/coreutils-9.9.258-49420/build-64 gt-fail-ftruncate-fstat.sh.XXXX +++ case $# in +++ destdir_=/export/home/bruno/coreutils-9.9.258-49420/build-64 +++ template_=gt-fail-ftruncate-fstat.sh.XXXX +++ MAX_TRIES_=4 +++ case $destdir_ in +++ destdir_slash_=/export/home/bruno/coreutils-9.9.258-49420/build-64/ +++ case $template_ in ++++ unset TMPDIR +++ d=/export/home/bruno/coreutils-9.9.258-49420/build-64/gt-fail-ftruncate-fstat.sh.I0mh +++ case $d in +++ : +++ test -d /export/home/bruno/coreutils-9.9.258-49420/build-64/gt-fail-ftruncate-fstat.sh.I0mh ++++ ls -dgo /export/home/bruno/coreutils-9.9.258-49420/build-64/gt-fail-ftruncate-fstat.sh.I0mh +++ perms='drwx------ 2 2 Jan 23 13:14 /export/home/bruno/coreutils-9.9.258-49420/build-64/gt-fail-ftruncate-fstat.sh.I0mh' +++ case $perms in +++ : +++ echo /export/home/bruno/coreutils-9.9.258-49420/build-64/gt-fail-ftruncate-fstat.sh.I0mh +++ return ++ test_dir_=/export/home/bruno/coreutils-9.9.258-49420/build-64/gt-fail-ftruncate-fstat.sh.I0mh ++ cd /export/home/bruno/coreutils-9.9.258-49420/build-64/gt-fail-ftruncate-fstat.sh.I0mh ++ case $srcdir in ++ srcdir=../.. ++ builddir=.. ++ export srcdir builddir ++ 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 ++ saved_IFS=' ' ++ IFS=: ++ new_PATH= ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /export/home/bruno/coreutils-9.9.258-49420/build-64/src/. ++ new_PATH=/export/home/bruno/coreutils-9.9.258-49420/build-64/src ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /usr/xpg4/bin/. ++ new_PATH=/export/home/bruno/coreutils-9.9.258-49420/build-64/src:/usr/xpg4/bin ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /export/home/bruno/prefix64/bin/. ++ new_PATH=/export/home/bruno/coreutils-9.9.258-49420/build-64/src:/usr/xpg4/bin:/export/home/bruno/prefix64/bin ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /usr/bin/. ++ new_PATH=/export/home/bruno/coreutils-9.9.258-49420/build-64/src:/usr/xpg4/bin:/export/home/bruno/prefix64/bin:/usr/bin ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /usr/sbin/. ++ new_PATH=/export/home/bruno/coreutils-9.9.258-49420/build-64/src:/usr/xpg4/bin:/export/home/bruno/prefix64/bin:/usr/bin:/usr/sbin ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /sbin/. ++ new_PATH=/export/home/bruno/coreutils-9.9.258-49420/build-64/src:/usr/xpg4/bin:/export/home/bruno/prefix64/bin:/usr/bin:/usr/sbin:/sbin ++ IFS=' ' ++ PATH=/export/home/bruno/coreutils-9.9.258-49420/build-64/src:/usr/xpg4/bin:/export/home/bruno/prefix64/bin:/usr/bin:/usr/sbin:/sbin ++ export PATH ++ trap remove_tmp_ EXIT + path_prepend_ ./src + test 1 '!=' 0 + path_dir_=./src + case $path_dir_ in + abs_path_dir_=/export/home/bruno/coreutils-9.9.258-49420/build-64/./src + case $abs_path_dir_ in + PATH=/export/home/bruno/coreutils-9.9.258-49420/build-64/./src:/export/home/bruno/coreutils-9.9.258-49420/build-64/src:/usr/xpg4/bin:/export/home/bruno/prefix64/bin:/usr/bin:/usr/sbin:/sbin + create_exe_shims_ /export/home/bruno/coreutils-9.9.258-49420/build-64/./src + case $EXEEXT in + return 0 + shift + test 0 '!=' 0 + export PATH + print_ver_ dd + require_built_ dd + skip_=no + for i in "$@" + case " $built_programs " in + test no = yes + test yes = yes + local i + for i in $* + env dd --version dd (coreutils) 9.9.258-49420 Copyright (C) 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Paul Rubin, David MacKenzie, and Stuart Kemp. + require_gcc_shared_ + gcc_shared_libs_=-ldl + gcc_shared_ - d.so -xc + local in=- + local out=d.so + shift 2 + gcc -Wall -shared --std=gnu99 -fPIC -O2 -xc - -o d.so -ldl + : + rm -f d.so + cat + gcc_shared_ k.c k.so + local in=k.c + local out=k.so + shift 2 + gcc -Wall -shared --std=gnu99 -fPIC -O2 k.c -o k.so -ldl + yes + head -n 2048 + tr -d '\n' + cp out exp-out + LD_PRELOAD=:./k.so + dd if=/dev/zero of=out count=1 seek=1 status=none + ret=1 + test -f x + test -f y + sed 's/Insufficient privileges/Operation not permitted/g' + echo 'dd: cannot fstat '\''out'\'': Operation not permitted' + compare exp err + compare_dev_null_ exp err + test 2 = 2 + test xexp = x/dev/null + test xerr = x/dev/null + return 2 + case $? in + compare_ exp err + LC_ALL=C + diff -u exp err --- exp 2026-01-23 13:14:43.670331137 +0100 +++ err 2026-01-23 13:14:43.669355649 +0100 @@ -1 +1 @@ -dd: cannot fstat 'out': Operation not permitted +dd: cannot fstat 'out': Not owner + fail=1 + test 1 = 1 + compare exp-out out + compare_dev_null_ exp-out out + test 2 = 2 + test xexp-out = x/dev/null + test xout = x/dev/null + return 2 + case $? in + compare_ exp-out out + LC_ALL=C + diff -u exp-out out + Exit 1 + set +e + exit 1 + exit 1 + remove_tmp_ + __st=1 + cleanup_ + : + test '' = yes + cd /export/home/bruno/coreutils-9.9.258-49420/build-64 + chmod -R u+rwx /export/home/bruno/coreutils-9.9.258-49420/build-64/gt-fail-ftruncate-fstat.sh.I0mh + rm -rf /export/home/bruno/coreutils-9.9.258-49420/build-64/gt-fail-ftruncate-fstat.sh.I0mh + exit 1 FAIL tests/dd/fail-ftruncate-fstat.sh (exit status: 1)
========================================================= GNU coreutils 9.9.258-49420: ./tests/test-suite.log ========================================================= # TOTAL: 706 # PASS: 534 # SKIP: 171 # XFAIL: 0 # FAIL: 1 # XPASS: 0 # ERROR: 0 System information (uname -a): SunOS 5.11 illumos-cfafba391b i86pc i386 .. contents:: :depth: 2 FAIL: tests/dd/fail-ftruncate-fstat =================================== ++ initial_cwd_=/export/home/bruno/coreutils-9.9.258-49420/build-64-clang +++ testdir_prefix_ +++ printf gt ++ pfx_=gt +++ mktempd_ /export/home/bruno/coreutils-9.9.258-49420/build-64-clang gt-fail-ftruncate-fstat.sh.XXXX +++ case $# in +++ destdir_=/export/home/bruno/coreutils-9.9.258-49420/build-64-clang +++ template_=gt-fail-ftruncate-fstat.sh.XXXX +++ MAX_TRIES_=4 +++ case $destdir_ in +++ destdir_slash_=/export/home/bruno/coreutils-9.9.258-49420/build-64-clang/ +++ case $template_ in ++++ unset TMPDIR +++ d=/export/home/bruno/coreutils-9.9.258-49420/build-64-clang/gt-fail-ftruncate-fstat.sh.ufYd +++ case $d in +++ : +++ test -d /export/home/bruno/coreutils-9.9.258-49420/build-64-clang/gt-fail-ftruncate-fstat.sh.ufYd ++++ ls -dgo /export/home/bruno/coreutils-9.9.258-49420/build-64-clang/gt-fail-ftruncate-fstat.sh.ufYd +++ perms='drwx------ 2 2 Jan 23 11:09 /export/home/bruno/coreutils-9.9.258-49420/build-64-clang/gt-fail-ftruncate-fstat.sh.ufYd' +++ case $perms in +++ : +++ echo /export/home/bruno/coreutils-9.9.258-49420/build-64-clang/gt-fail-ftruncate-fstat.sh.ufYd +++ return ++ test_dir_=/export/home/bruno/coreutils-9.9.258-49420/build-64-clang/gt-fail-ftruncate-fstat.sh.ufYd ++ cd /export/home/bruno/coreutils-9.9.258-49420/build-64-clang/gt-fail-ftruncate-fstat.sh.ufYd ++ case $srcdir in ++ srcdir=../.. ++ builddir=.. ++ export srcdir builddir ++ 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 ++ saved_IFS=' ' ++ IFS=: ++ new_PATH= ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /export/home/bruno/coreutils-9.9.258-49420/build-64-clang/src/. ++ new_PATH=/export/home/bruno/coreutils-9.9.258-49420/build-64-clang/src ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /usr/xpg4/bin/. ++ new_PATH=/export/home/bruno/coreutils-9.9.258-49420/build-64-clang/src:/usr/xpg4/bin ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /usr/bin/. ++ new_PATH=/export/home/bruno/coreutils-9.9.258-49420/build-64-clang/src:/usr/xpg4/bin:/usr/bin ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /usr/sbin/. ++ new_PATH=/export/home/bruno/coreutils-9.9.258-49420/build-64-clang/src:/usr/xpg4/bin:/usr/bin:/usr/sbin ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /sbin/. ++ new_PATH=/export/home/bruno/coreutils-9.9.258-49420/build-64-clang/src:/usr/xpg4/bin:/usr/bin:/usr/sbin:/sbin ++ for dir in $PATH ++ IFS=' ' ++ case "$dir" in ++ test -d /usr/gnu/bin/. ++ new_PATH=/export/home/bruno/coreutils-9.9.258-49420/build-64-clang/src:/usr/xpg4/bin:/usr/bin:/usr/sbin:/sbin:/usr/gnu/bin ++ IFS=' ' ++ PATH=/export/home/bruno/coreutils-9.9.258-49420/build-64-clang/src:/usr/xpg4/bin:/usr/bin:/usr/sbin:/sbin:/usr/gnu/bin ++ export PATH ++ trap remove_tmp_ EXIT + path_prepend_ ./src + test 1 '!=' 0 + path_dir_=./src + case $path_dir_ in + abs_path_dir_=/export/home/bruno/coreutils-9.9.258-49420/build-64-clang/./src + case $abs_path_dir_ in + PATH=/export/home/bruno/coreutils-9.9.258-49420/build-64-clang/./src:/export/home/bruno/coreutils-9.9.258-49420/build-64-clang/src:/usr/xpg4/bin:/usr/bin:/usr/sbin:/sbin:/usr/gnu/bin + create_exe_shims_ /export/home/bruno/coreutils-9.9.258-49420/build-64-clang/./src + case $EXEEXT in + return 0 + shift + test 0 '!=' 0 + export PATH + print_ver_ dd + require_built_ dd + skip_=no + for i in "$@" + case " $built_programs " in + test no = yes + test yes = yes + local i + for i in $* + env dd --version dd (coreutils) 9.9.258-49420 Copyright (C) 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Paul Rubin, David MacKenzie, and Stuart Kemp. + require_gcc_shared_ + gcc_shared_libs_=-ldl + gcc_shared_ - d.so -xc + local in=- + local out=d.so + shift 2 + gcc -m64 -O2 -std=gnu23 -Wall -shared --std=gnu99 -fPIC -O2 -xc - -o d.so -ldl + : + rm -f d.so + cat + gcc_shared_ k.c k.so + local in=k.c + local out=k.so + shift 2 + gcc -m64 -O2 -std=gnu23 -Wall -shared --std=gnu99 -fPIC -O2 k.c -o k.so -ldl + tr -d '\n' + head -n 2048 + yes + cp out exp-out + LD_PRELOAD=:./k.so + dd if=/dev/zero of=out count=1 seek=1 status=none + ret=1 + test -f x + test -f y + sed 's/Insufficient privileges/Operation not permitted/g' + echo 'dd: cannot fstat '\''out'\'': Operation not permitted' + compare exp err + compare_dev_null_ exp err + test 2 = 2 + test xexp = x/dev/null + test xerr = x/dev/null + return 2 + case $? in + compare_ exp err + LC_ALL=C + diff -u exp err + diff_status_=1 + test 1 -eq 0 + cat diff.out --- exp Fri Jan 23 11:09:18 2026 +++ err Fri Jan 23 11:09:18 2026 @@ -1,1 +1,1 @@ -dd: cannot fstat 'out': Operation not permitted +dd: cannot fstat 'out': Not owner + rm -f diff.out + return 1 + fail=1 + test 1 = 1 + compare exp-out out + compare_dev_null_ exp-out out + test 2 = 2 + test xexp-out = x/dev/null + test xout = x/dev/null + return 2 + case $? in + compare_ exp-out out + LC_ALL=C + diff -u exp-out out + diff_status_=0 + test 0 -eq 0 + rm -f diff.out + return 0 + Exit 1 + set +e + exit 1 + exit 1 + remove_tmp_ + __st=1 + cleanup_ + : + test '' = yes + cd /export/home/bruno/coreutils-9.9.258-49420/build-64-clang + chmod -R u+rwx /export/home/bruno/coreutils-9.9.258-49420/build-64-clang/gt-fail-ftruncate-fstat.sh.ufYd + rm -rf /export/home/bruno/coreutils-9.9.258-49420/build-64-clang/gt-fail-ftruncate-fstat.sh.ufYd + exit 1 FAIL tests/dd/fail-ftruncate-fstat.sh (exit status: 1)
