==========================================================
   GNU coreutils 8.25.120-ca99c: ./tests/test-suite.log
==========================================================

# TOTAL: 590
# PASS:  432
# SKIP:  157
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

FAIL: tests/misc/head-write-error
=================================

+ initial_cwd_=/tmp/coreutils-ss.XXXXXX.lzTRKULk/coreutils-8.25.120-ca99c
+ testdir_prefix_
+ printf gt
+ pfx_=gt
+ mktempd_ /tmp/coreutils-ss.XXXXXX.lzTRKULk/coreutils-8.25.120-ca99c gt-head-write-error.sh.XXXX
+ destdir_=/tmp/coreutils-ss.XXXXXX.lzTRKULk/coreutils-8.25.120-ca99c
+ template_=gt-head-write-error.sh.XXXX
+ MAX_TRIES_=4
+ destdir_slash_=/tmp/coreutils-ss.XXXXXX.lzTRKULk/coreutils-8.25.120-ca99c/
+ unset TMPDIR
+ d=/tmp/coreutils-ss.XXXXXX.lzTRKULk/coreutils-8.25.120-ca99c/gt-head-write-error.sh.g3Ay
+ :
+ test -d /tmp/coreutils-ss.XXXXXX.lzTRKULk/coreutils-8.25.120-ca99c/gt-head-write-error.sh.g3Ay
+ ls -dgo /tmp/coreutils-ss.XXXXXX.lzTRKULk/coreutils-8.25.120-ca99c/gt-head-write-error.sh.g3Ay
+ perms='drwx------ 2 512 Nov 25 22:08 /tmp/coreutils-ss.XXXXXX.lzTRKULk/coreutils-8.25.120-ca99c/gt-head-write-error.sh.g3Ay'
+ :
+ echo /tmp/coreutils-ss.XXXXXX.lzTRKULk/coreutils-8.25.120-ca99c/gt-head-write-error.sh.g3Ay
+ return
+ test_dir_=/tmp/coreutils-ss.XXXXXX.lzTRKULk/coreutils-8.25.120-ca99c/gt-head-write-error.sh.g3Ay
+ cd /tmp/coreutils-ss.XXXXXX.lzTRKULk/coreutils-8.25.120-ca99c/gt-head-write-error.sh.g3Ay
+ 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-ss.XXXXXX.lzTRKULk/coreutils-8.25.120-ca99c/./src
+ PATH=/tmp/coreutils-ss.XXXXXX.lzTRKULk/coreutils-8.25.120-ca99c/./src:/tmp/coreutils-ss.XXXXXX.lzTRKULk/coreutils-8.25.120-ca99c/src:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
+ create_exe_shims_ /tmp/coreutils-ss.XXXXXX.lzTRKULk/coreutils-8.25.120-ca99c/./src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ print_ver_ head
+ require_built_ head
+ skip_=no
+ test no '=' yes
+ test yes '=' yes
+ local i
+ env head --version
head (GNU coreutils) 8.25.120-ca99c
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://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 and Jim Meyering.
+ test -w /dev/full
+ test -c /dev/full
+ yes
+ head -c10M
+ printf '%s\n' $'head: error writing \'standard output\''
+ yes
+ returns_ 1 timeout 10s head '--lines=-0'
+ sed 's/\(head:.*\):.*/\1/' errt
+ compare exp err
+ compare_dev_null_ exp err
+ test 2 '=' 2
+ test xexp '=' x/dev/null
+ test xerr '=' x/dev/null
+ return 2
+ compare_ exp err
+ diff -u exp err
--- exp	2016-11-25 22:08:55.826372000 +0000
+++ err	2016-11-25 22:08:55.832068000 +0000
@@ -1 +1 @@
-head: error writing 'standard output'
+head: 'standard input': cannot seek to offset 65535
+ fail=1
+ returns_ 1 timeout 10s head '--lines=-0' bigseek
+ sed 's/\(head:.*\):.*/\1/' errt
+ compare exp err
+ compare_dev_null_ exp err
+ test 2 '=' 2
+ test xexp '=' x/dev/null
+ test xerr '=' x/dev/null
+ return 2
+ compare_ exp err
+ diff -u exp err
+ yes
+ returns_ 1 timeout 10s head '--lines=-1'
+ sed 's/\(head:.*\):.*/\1/' errt
+ compare exp err
+ compare_dev_null_ exp err
+ test 2 '=' 2
+ test xexp '=' x/dev/null
+ test xerr '=' x/dev/null
+ return 2
+ compare_ exp err
+ diff -u exp err
--- exp	2016-11-25 22:08:55.826372000 +0000
+++ err	2016-11-25 22:08:55.842703000 +0000
@@ -1 +1 @@
-head: error writing 'standard output'
+head: 'standard input': cannot seek to offset 65535
+ fail=1
+ returns_ 1 timeout 10s head '--lines=-1' bigseek
+ sed 's/\(head:.*\):.*/\1/' errt
+ compare exp err
+ compare_dev_null_ exp err
+ test 2 '=' 2
+ test xexp '=' x/dev/null
+ test xerr '=' x/dev/null
+ return 2
+ compare_ exp err
+ diff -u exp err
+ yes
+ returns_ 1 timeout 10s head '--bytes=-0'
+ sed 's/\(head:.*\):.*/\1/' errt
+ compare exp err
+ compare_dev_null_ exp err
+ test 2 '=' 2
+ test xexp '=' x/dev/null
+ test xerr '=' x/dev/null
+ return 2
+ compare_ exp err
+ diff -u exp err
+ returns_ 1 timeout 10s head '--bytes=-0' bigseek
+ sed 's/\(head:.*\):.*/\1/' errt
+ compare exp err
+ compare_dev_null_ exp err
+ test 2 '=' 2
+ test xexp '=' x/dev/null
+ test xerr '=' x/dev/null
+ return 2
+ compare_ exp err
+ diff -u exp err
+ yes
+ returns_ 1 timeout 10s head '--bytes=-1'
+ sed 's/\(head:.*\):.*/\1/' errt
+ compare exp err
+ compare_dev_null_ exp err
+ test 2 '=' 2
+ test xexp '=' x/dev/null
+ test xerr '=' x/dev/null
+ return 2
+ compare_ exp err
+ diff -u exp err
+ returns_ 1 timeout 10s head '--bytes=-1' bigseek
+ sed 's/\(head:.*\):.*/\1/' errt
+ compare exp err
+ compare_dev_null_ exp err
+ test 2 '=' 2
+ test xexp '=' x/dev/null
+ test xerr '=' x/dev/null
+ return 2
+ compare_ exp err
+ diff -u exp err
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ cd /tmp/coreutils-ss.XXXXXX.lzTRKULk/coreutils-8.25.120-ca99c
+ chmod -R u+rwx /tmp/coreutils-ss.XXXXXX.lzTRKULk/coreutils-8.25.120-ca99c/gt-head-write-error.sh.g3Ay
+ rm -rf /tmp/coreutils-ss.XXXXXX.lzTRKULk/coreutils-8.25.120-ca99c/gt-head-write-error.sh.g3Ay
+ exit 1
FAIL tests/misc/head-write-error.sh (exit status: 1)

