==========================================================
   GNU coreutils 8.25.133-0655b: ./tests/test-suite.log
==========================================================

# TOTAL: 590
# PASS:  419
# SKIP:  161
# XFAIL: 0
# FAIL:  10
# XPASS: 0
# ERROR: 0

FAIL: tests/misc/numfmt
=======================

skipping locale grouping tests as 1234 groups like 1Â234
numfmt (GNU coreutils) 8.25.133-0655b
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 Assaf Gordon.
1...
2...
3...
4...
5...
5.1...
6...
7...
7a...
8...
9...
10...
11...
12...
13...
14...
15...
16...
17...
18...
19...
20...
21...
22...
23...
24...
25...
26...
27...
neg-1...
neg-2...
neg-3...
neg-4...
neg-5...
neg-6...
neg-7...
float-1...
float-2...
float-3...
unit-1...
unit-2...
unit-3...
unit-4...
unit-5...
unit-6...
unit-7...
unit-7.1...
unit-7.2...
unit-7.3...
unit-8...
unit-9...
unit-10...
suf-1...
suf-2...
suf-2.1...
suf-3...
suf-4...
suf-5...
suf-6...
suf-7...
suf-8...
suf-9...
suf-10...
suf-11...
suf-12...
suf-13...
suf-14...
suf-15...
suf-16...
suf-17...
suf-18...
suf-19...
grp-1...
numfmt.pl: test grp-1: stdout mismatch, comparing grp-1.1 (expected) and grp-1.O (actual)
*** grp-1.1	Mon Nov 28 23:57:02 2016
--- grp-1.O	Mon Nov 28 23:57:02 2016
***************
*** 1 ****
! 7000000
--- 1 ----
! 7,000,000
grp-2...
pad-1...
pad-2...
pad-3...
pad-3.1...
pad-4...
pad-5...
pad-6...
pad-7...
pad-8...
delim-1...
delim-2...
delim-3...
delim-4...
delim-5...
delim-6...
delim-err-1...
field-1...
field-2...
field-3...
field-4...
field-5...
field-6...
field-8...
field-range-1...
field-range-2...
field-range-3...
field-range-4...
field-range-5...
field-range-6...
field-range-7...
field-range-8...
field-range-9...
field-range-10...
field-range-11...
field-range-12...
field-range-13...
field-range-14...
field-range-15...
field-range-16...
field-range-17...
field-range-18...
field-range-19...
all-fields-1...
field-range-err-1...
field-range-err-2...
field-range-err-3...
field-range-err-4...
field-range-err-6...
field-range-err-7...
field-range-err-8...
field-range-err-9...
field-range-err-10...
field-range-err-11...
field-range-err-12...
field-range-err-13...
whitespace-1...
whitespace-2...
whitespace-3...
whitespace-4...
whitespace-5...
whitespace-6...
whitespace-7...
whitespace-8...
mix-1...
mix-2...
mix-3...
mix-4...
mix-5...
mix-6...
mix-7...
mix-8...
mix-10...
mix-11...
mix-12...
mix-13...
mix-14...
header-1...
header-2...
header-3...
header-4...
header-5...
header-6...
header-7...
header-8...
header-9...
strtod-1...
strtod-2...
strtod-5...
strtod-6...
strtod-6.1...
strtod-9...
strtod-10...
strtod-11...
dbl-to-human-1...
dbl-to-human-2...
dbl-to-human-2.1...
dbl-to-human-2.2...
dbl-to-human-2.3...
dbl-to-human-2.4...
dbl-to-human-2.5...
dbl-to-human-2.6...
dbl-to-human-2.7...
dbl-to-human-2.8...
dbl-to-human-3...
dbl-to-human-3.1...
dbl-to-human-4...
dbl-to-human-5...
dbl-to-human-6...
dbl-to-human-7...
dbl-to-human-8...
dbl-to-human-9...
dbl-to-human-10...
dbl-to-human-11...
dbl-to-human-12...
dbl-to-human-13...
dbl-to-human-14...
dbl-to-human-15...
dbl-to-human-16...
dbl-to-human-17...
dbl-to-human-18...
dbl-to-human-19...
dbl-to-human-20...
dbl-to-human-21...
dbl-to-human-22...
dbl-to-human-23...
dbl-to-human-24...
dbl-to-human-25...
dbl-to-human-25.1...
dbl-to-human-26...
dbl-to-human-27...
dbl-to-human-28...
dbl-to-human-29...
dbl-to-human-30...
dbl-to-human-31...
dbl-to-human-32...
dbl-to-human-33...
round-1...
round-2...
round-3...
round-4...
round-5...
round-1-up...
round-2-up...
round-3-up...
round-4-up...
round-5-up...
round-1-down...
round-2-down...
round-3-down...
round-4-down...
round-5-down...
round-1-to-zero...
round-2-to-zero...
round-3-to-zero...
round-4-to-zero...
round-5-to-zero...
round-1-near...
round-2-near...
round-3-near...
round-4-near...
round-5-near...
leading-1...
leading-2...
leading-3...
leading-4...
leading-5...
precision-1...
precision-2...
precision-3...
precision-4...
precision-5...
precision-6...
precision-7...
precision-8...
precision-9...
debug-1...
debug-1.1...
debug-2...
numfmt.pl: test debug-2: stdout mismatch, comparing debug-2.1 (expected) and debug-2.O (actual)
*** debug-2.1	Mon Nov 28 23:57:03 2016
--- debug-2.O	Mon Nov 28 23:57:03 2016
***************
*** 1 ****
! 4000
--- 1 ----
! 4,000
devdebug-1...
devdebug-2...
devdebug-3...
devdebug-4...
devdebug-5...
devdebug-6...
devdebug-7...
devdebug-9...
numfmt.pl: test devdebug-9: stdout mismatch, comparing devdebug-9.1 (expected) and devdebug-9.O (actual)
*** devdebug-9.1	Mon Nov 28 23:57:03 2016
--- devdebug-9.O	Mon Nov 28 23:57:03 2016
***************
*** 1 ****
! 10000
--- 1 ----
! 10,000
devdebug-10...
devdebug-11...
numfmt.pl: test devdebug-11: stdout mismatch, comparing devdebug-11.1 (expected) and devdebug-11.O (actual)
*** devdebug-11.1	Mon Nov 28 23:57:03 2016
--- devdebug-11.O	Mon Nov 28 23:57:03 2016
***************
*** 1 ****
! 10000     
--- 1 ----
! 10,000    
help-1...
fmt-err-1...
fmt-err-2...
fmt-err-3...
fmt-err-4...
fmt-err-5...
fmt-err-6...
fmt-err-7...
fmt-err-9...
fmt-err-10...
fmt-err-11...
numfmt.pl: test fmt-err-11: stdout mismatch, comparing fmt-err-11.1 (expected) and fmt-err-11.O (actual)
*** fmt-err-11.1	Mon Nov 28 23:57:03 2016
--- fmt-err-11.O	Mon Nov 28 23:57:03 2016
***************
*** 1 ****
! 5000
--- 1 ----
! 5,000
fmt-1...
fmt-2...
fmt-3...
fmt-4...
fmt-5...
fmt-6...
fmt-7...
fmt-8...
fmt-9...
fmt-10...
fmt-11...
fmt-12...
numfmt.pl: test fmt-12: stdout mismatch, comparing fmt-12.1 (expected) and fmt-12.O (actual)
*** fmt-12.1	Mon Nov 28 23:57:03 2016
--- fmt-12.O	Mon Nov 28 23:57:03 2016
***************
*** 1 ****
! 50000
--- 1 ----
! 50,000
fmt-13...
numfmt.pl: test fmt-13: stdout mismatch, comparing fmt-13.1 (expected) and fmt-13.O (actual)
*** fmt-13.1	Mon Nov 28 23:57:03 2016
--- fmt-13.O	Mon Nov 28 23:57:03 2016
***************
*** 1 ****
!      50000
--- 1 ----
!     50,000
fmt-14...
numfmt.pl: test fmt-14: stdout mismatch, comparing fmt-14.1 (expected) and fmt-14.O (actual)
*** fmt-14.1	Mon Nov 28 23:57:03 2016
--- fmt-14.O	Mon Nov 28 23:57:03 2016
***************
*** 1 ****
! 50000     
--- 1 ----
! 50,000    
fmt-15...
fmt-16...
fmt-17...
fmt-18...
fmt-22...
fmt-23...
ign-err-1...
ign-err-2...
ign-err-3...
ign-err-4...
ign-err-5...
ign-err-7...
ign-err-8...
ign-err-9...
ign-err-m1...
ign-err-m1.1...
ign-err-m1.3...
ign-err-m2...
ign-err-m2.1...
ign-err-m2.2...
ign-err-m3...
ign-err-m3.1...
large-1...
large-2...
large-3...
large-4...
large-3.1...
large-3.2...
large-3.3...
large-3.4...
large-3.5...
large-3.6...
large-3.7...
large-3.8...
large-3.9...
large-3.10...
large-3.11...
large-3.12...
large-3.13...
large-3.14...
large-3.15...
large-3.16...
large-3.17...
large-3.18...
large-3.19...
large-3.20...
large-3.21...
large-3.22...
large-3.23...
large-3.24...
large-3.25...
large-3.26...
large-3.27...
large-3.28...
large-4.1...
large-4.2...
large-4.3...
large-4.4...
large-4.5...
large-4.6...
large-4.7...
large-4.8...
large-4.9...
large-4.10...
large-4.11...
large-4.12...
large-4.13...
large-4.14...
large-4.15...
large-4.16...
large-4.17...
large-4.18...
large-4.19...
large-4.20...
large-4.21...
large-5.1...
large-5...
large-6...
large-7...
large-8...
large-10...
large-11...
large-12...
large-13...
large-13.1...
large-14...
large-14.1...
large-14.2...
large-15...
large-16...
strtod-3...
strtod-7...
debug-4...
debug-5...
ign-err-10...
ign-err-11...
auto-suf-si-A...
auto-suf-si-B...
auto-suf-si-C...
auto-suf-si-D...
auto-suf-si-E...
auto-suf-iec-E...
auto-suf-auto-E...
auto-suf-iec-to-ieci-E...
auto-suf-ieci-to-iec-E...
auto-suf-si-F...
auto-suf-si-G...
auto-suf-iec-G...
auto-suf-auto-G...
auto-suf-iec-to-ieci-G...
auto-suf-ieci-to-iec-G...
auto-suf-si-H...
auto-suf-si-I...
auto-suf-si-J...
auto-suf-si-K...
auto-suf-iec-K...
auto-suf-auto-K...
auto-suf-iec-to-ieci-K...
auto-suf-ieci-to-iec-K...
auto-suf-si-L...
auto-suf-si-M...
auto-suf-iec-M...
auto-suf-auto-M...
auto-suf-iec-to-ieci-M...
auto-suf-ieci-to-iec-M...
auto-suf-si-N...
auto-suf-si-O...
auto-suf-si-P...
auto-suf-iec-P...
auto-suf-auto-P...
auto-suf-iec-to-ieci-P...
auto-suf-ieci-to-iec-P...
auto-suf-si-Q...
auto-suf-si-R...
auto-suf-si-S...
auto-suf-si-T...
auto-suf-iec-T...
auto-suf-auto-T...
auto-suf-iec-to-ieci-T...
auto-suf-ieci-to-iec-T...
auto-suf-si-U...
auto-suf-si-V...
auto-suf-si-W...
auto-suf-si-X...
auto-suf-si-Y...
auto-suf-iec-Y...
auto-suf-auto-Y...
auto-suf-iec-to-ieci-Y...
auto-suf-ieci-to-iec-Y...
auto-suf-si-Z...
auto-suf-iec-Z...
auto-suf-auto-Z...
auto-suf-iec-to-ieci-Z...
auto-suf-ieci-to-iec-Z...
auto-suf-si-a...
auto-suf-si-b...
auto-suf-si-c...
auto-suf-si-d...
auto-suf-si-e...
auto-suf-si-f...
auto-suf-si-g...
auto-suf-si-h...
auto-suf-si-i...
auto-suf-si-j...
auto-suf-si-k...
auto-suf-si-l...
auto-suf-si-m...
auto-suf-si-n...
auto-suf-si-o...
auto-suf-si-p...
auto-suf-si-q...
auto-suf-si-r...
auto-suf-si-s...
auto-suf-si-t...
auto-suf-si-u...
auto-suf-si-v...
auto-suf-si-w...
auto-suf-si-x...
auto-suf-si-y...
auto-suf-si-z...
z1...
z3...
z2...
z4...
z5...
FAIL tests/misc/numfmt.pl (exit status: 1)

FAIL: tests/misc/printf-cov
===========================

printf (GNU coreutils) 8.25.133-0655b
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.
no-args...
no-arg2...
escape-1...
hex-ucX...
hex-ucXw...
hex-ucXp...
hex-ucXwp...
hex-vw...
hex-vp...
hex-vwvp...
b...
c1...
cw...
d-ucXwp...
d-vw...
d-vp...
d-vwvp...
d-neg-prec...
d-big-prec...
d-big-fwidth...
F...
LF...
E...
LE...
s...
sw...
sp...
swp...
sw-no-args...
sw-no-args2...
G-ucXwp...
G-vw...
G-vp...
G-vwvp...
esc...
esc-bad-hex...
u-invalid...
u-missing...
d-invalid...
d-bad-suffix...
d-out-of-range...
excess...
percent...
d-sp...
d-plus...
d-minus...
d-zero...
d-quote...
printf: test d-quote: stdout mismatch, comparing d-quote.1 (expected) and d-quote.O (actual)
*** d-quote.1	Mon Nov 28 23:57:10 2016
--- d-quote.O	Mon Nov 28 23:57:10 2016
***************
*** 1 ****
! 3333
\ No newline at end of file
--- 1 ----
! 3,333
\ No newline at end of file
d-hash...
FAIL tests/misc/printf-cov.pl (exit status: 1)

FAIL: tests/misc/tac-2-nonseekable
==================================

+ 'initial_cwd_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b'
+ 'testdir_prefix_'
+ printf gt
+ 'pfx_=gt'
+ 'mktempd_' '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b' 'gt-tac-2-nonseekable.sh.XXXX'
+ 'destdir_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b'
+ 'template_=gt-tac-2-nonseekable.sh.XXXX'
+ 'MAX_TRIES_=4'
+ 'destdir_slash_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/'
+ unset TMPDIR
+ 'd=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-tac-2-nonseekable.sh.uAOI'
+ ':'
+ test -d '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-tac-2-nonseekable.sh.uAOI'
+ ls -dgo '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-tac-2-nonseekable.sh.uAOI'
+ 'perms=drwx------ 2 512 Nov 28 23:57 /tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-tac-2-nonseekable.sh.uAOI'
+ ':'
+ echo '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-tac-2-nonseekable.sh.uAOI'
+ return
+ 'test_dir_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-tac-2-nonseekable.sh.uAOI'
+ cd '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-tac-2-nonseekable.sh.uAOI'
+ 'gl_init_sh_nl_=
'
+ 'IFS= 	
'
+ 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.sPqK4iC9/coreutils-8.25.133-0655b/./src'
+ 'PATH=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/./src:/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/src:/usr/bin:/bin:/usr/pkg/bin:/sbin:/usr/sbin'
+ 'create_exe_shims_' '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/./src'
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ 'print_ver_' tac
+ 'require_built_' tac
+ 'skip_=no'
+ test no = yes
+ test yes = yes
+ local i
+ env tac --version
tac (GNU coreutils) 8.25.133-0655b
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 Jay Lepreau and David MacKenzie.
+ echo x
+ tac - -
+ echo x
+ 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
+ compare /dev/null err
+ 'compare_dev_null_' /dev/null err
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s err
+ return 0
+ return 0
+ test -r /proc/version
+ cp -f /proc/version copy
+ tac copy
+ tac /proc/version
+ compare exp1 out1
+ 'compare_dev_null_' exp1 out1
+ test 2 = 2
+ test xexp1 = x/dev/null
+ test xout1 = x/dev/null
+ return 2
+ 'compare_' exp1 out1
+ diff -u exp1 out1
+ test -r /sys/kernel/profiling
+ 'returns_' 1 tac - -
+ fail=1
+ Exit 1
+ set '+e'
+ exit 1
+ exit 1
+ 'remove_tmp_'
+ '__st=1'
+ 'cleanup_'
+ ':'
+ cd '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b'
+ chmod -R 'u+rwx' '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-tac-2-nonseekable.sh.uAOI'
+ rm -rf '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-tac-2-nonseekable.sh.uAOI'
+ exit 1
FAIL tests/misc/tac-2-nonseekable.sh (exit status: 1)

FAIL: tests/tail-2/retry
========================

+ 'initial_cwd_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b'
+ 'testdir_prefix_'
+ printf gt
+ 'pfx_=gt'
+ 'mktempd_' '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b' 'gt-retry.sh.XXXX'
+ 'destdir_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b'
+ 'template_=gt-retry.sh.XXXX'
+ 'MAX_TRIES_=4'
+ 'destdir_slash_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/'
+ unset TMPDIR
+ 'd=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-retry.sh.t2YQ'
+ ':'
+ test -d '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-retry.sh.t2YQ'
+ ls -dgo '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-retry.sh.t2YQ'
+ 'perms=drwx------ 2 512 Nov 28 23:57 /tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-retry.sh.t2YQ'
+ ':'
+ echo '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-retry.sh.t2YQ'
+ return
+ 'test_dir_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-retry.sh.t2YQ'
+ cd '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-retry.sh.t2YQ'
+ 'gl_init_sh_nl_=
'
+ 'IFS= 	
'
+ 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.sPqK4iC9/coreutils-8.25.133-0655b/./src'
+ 'PATH=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/./src:/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/src:/usr/bin:/bin:/usr/pkg/bin:/sbin:/usr/sbin'
+ 'create_exe_shims_' '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/./src'
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ 'print_ver_' tail
+ 'require_built_' tail
+ 'skip_=no'
+ test no = yes
+ test yes = yes
+ local i
+ env tail --version
tail (GNU coreutils) 8.25.133-0655b
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 Paul Rubin, David MacKenzie, Ian Lance Taylor,
and Jim Meyering.
+ 'fastpoll=-s.1 --max-unchanged-stats=1'
+ touch file
+ tail --retry file
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 1 = 1 ']'
+ grep -F 'tail: warning: --retry ignored' out
tail: warning: --retry ignored; --retry is useful only when following
+ 'returns_' 1 tail --retry missing
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 2 = 2 ']'
+ grep -F 'tail: warning: --retry ignored' out
tail: warning: --retry ignored; --retry is useful only when following
+ 
+ timeout 10 tail '-s.1' --max-unchanged-stats=1 --follow=name --retry missing
+ pid=1581
+ 'retry_delay_' 'wait4lines_' '.1' 6 1
+ local 'test_func=wait4lines_'
+ local 'init_delay=.1'
+ local 'max_n_tries=6'
+ shift 3
+ local attempt=1
+ local 'num_sleeps=1'
+ local 'time_fail'
+ test 1 -le 6
+ awk -v n=1 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.1'
+ 'wait4lines_' '0.1' 1
+ local 'delay=0.1'
+ local elc=1
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 1 -ge 1 ']'
+ 'time_fail=0'
+ break
+ test 0 = 0
+ echo X
+ 'retry_delay_' 'wait4lines_' '.1' 6 3
+ local 'test_func=wait4lines_'
+ local 'init_delay=.1'
+ local 'max_n_tries=6'
+ shift 3
+ local attempt=1
+ local 'num_sleeps=1'
+ local 'time_fail'
+ test 1 -le 6
+ awk -v n=1 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.1'
+ 'wait4lines_' '0.1' 3
+ local 'delay=0.1'
+ local elc=3
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 1 -ge 3 ']'
+ sleep '0.1'
+ return 1
+ 'time_fail=1'
+ expr 1 '+' 1
+ attempt=2
+ expr 1 '*' 2
+ 'num_sleeps=2'
+ test 2 -le 6
+ awk -v n=2 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.2'
+ 'wait4lines_' '0.2' 3
+ local 'delay=0.2'
+ local elc=3
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 2 -ge 3 ']'
+ sleep '0.2'
+ return 1
+ 'time_fail=1'
+ expr 2 '+' 1
+ attempt=3
+ expr 2 '*' 2
+ 'num_sleeps=4'
+ test 3 -le 6
+ awk -v n=4 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.4'
+ 'wait4lines_' '0.4' 3
+ local 'delay=0.4'
+ local elc=3
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 3 -ge 3 ']'
+ 'time_fail=0'
+ break
+ test 0 = 0
+ 'cleanup_'
+ kill 1581
+ wait 1581
[1]   Terminated              timeout 10 tail ...
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 3 = 3 ']'
+ grep -F 'cannot open' out
tail: cannot open 'missing' for reading: No such file or directory
+ grep -F 'has appeared' out
tail: 'missing' has appeared;  following new file
+ grep '^X$' out
X
+ rm -f missing out
+ timeout 10 tail '-s.1' --max-unchanged-stats=1 --follow=descriptor --retry missing
+ pid=7006
+ 'retry_delay_' 'wait4lines_' '.1' 6 2
+ local 'test_func=wait4lines_'
+ local 'init_delay=.1'
+ local 'max_n_tries=6'
+ shift 3
+ local attempt=1
+ local 'num_sleeps=1'
+ local 'time_fail'
+ test 1 -le 6
+ awk -v n=1 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.1'
+ 'wait4lines_' '0.1' 2
+ local 'delay=0.1'
+ local elc=2
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 2 -ge 2 ']'
+ 'time_fail=0'
+ break
+ test 0 = 0
+ echo X1
+ 'retry_delay_' 'wait4lines_' '.1' 6 4
+ local 'test_func=wait4lines_'
+ local 'init_delay=.1'
+ local 'max_n_tries=6'
+ shift 3
+ local attempt=1
+ local 'num_sleeps=1'
+ local 'time_fail'
+ test 1 -le 6
+ awk -v n=1 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.1'
+ 'wait4lines_' '0.1' 4
+ local 'delay=0.1'
+ local elc=4
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 2 -ge 4 ']'
+ sleep '0.1'
+ return 1
+ 'time_fail=1'
+ expr 1 '+' 1
+ attempt=2
+ expr 1 '*' 2
+ 'num_sleeps=2'
+ test 2 -le 6
+ awk -v n=2 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.2'
+ 'wait4lines_' '0.2' 4
+ local 'delay=0.2'
+ local elc=4
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 3 -ge 4 ']'
+ sleep '0.2'
+ return 1
+ 'time_fail=1'
+ expr 2 '+' 1
+ attempt=3
+ expr 2 '*' 2
+ 'num_sleeps=4'
+ test 3 -le 6
+ awk -v n=4 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.4'
+ 'wait4lines_' '0.4' 4
+ local 'delay=0.4'
+ local elc=4
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 4 -ge 4 ']'
+ 'time_fail=0'
+ break
+ test 0 = 0
+ echo X
+ 'retry_delay_' 'wait4lines_' '.1' 6 6
+ local 'test_func=wait4lines_'
+ local 'init_delay=.1'
+ local 'max_n_tries=6'
+ shift 3
+ local attempt=1
+ local 'num_sleeps=1'
+ local 'time_fail'
+ test 1 -le 6
+ awk -v n=1 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.1'
+ 'wait4lines_' '0.1' 6
+ local 'delay=0.1'
+ local elc=6
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 4 -ge 6 ']'
+ sleep '0.1'
+ return 1
+ 'time_fail=1'
+ expr 1 '+' 1
+ attempt=2
+ expr 1 '*' 2
+ 'num_sleeps=2'
+ test 2 -le 6
+ awk -v n=2 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.2'
+ 'wait4lines_' '0.2' 6
+ local 'delay=0.2'
+ local elc=6
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 6 -ge 6 ']'
+ 'time_fail=0'
+ break
+ test 0 = 0
+ 'cleanup_'
+ kill 7006
+ wait 7006
[1]   Terminated              timeout 10 tail ...
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 6 = 6 ']'
+ grep -F 'retry only effective for the initial open' out
tail: warning: --retry only effective for the initial open
+ grep -F 'cannot open' out
tail: cannot open 'missing' for reading: No such file or directory
+ grep -F 'has appeared' out
tail: 'missing' has appeared;  following new file
+ grep '^X1$' out
X1
+ grep -F 'file truncated' out
tail: missing: file truncated
+ grep '^X$' out
X
+ rm -f missing out
+ timeout 10 tail '-s.1' --max-unchanged-stats=1 --follow=descriptor --retry missing
+ pid=4195
+ 'retry_delay_' 'wait4lines_' '.1' 6 2
+ local 'test_func=wait4lines_'
+ local 'init_delay=.1'
+ local 'max_n_tries=6'
+ shift 3
+ local attempt=1
+ local 'num_sleeps=1'
+ local 'time_fail'
+ test 1 -le 6
+ awk -v n=1 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.1'
+ 'wait4lines_' '0.1' 2
+ local 'delay=0.1'
+ local elc=2
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 2 -ge 2 ']'
+ 'time_fail=0'
+ break
+ test 0 = 0
+ mkdir missing
+ 'retry_delay_' 'wait4lines_' '.1' 6 4
+ local 'test_func=wait4lines_'
+ local 'init_delay=.1'
+ local 'max_n_tries=6'
+ shift 3
+ local attempt=1
+ local 'num_sleeps=1'
+ local 'time_fail'
+ test 1 -le 6
+ awk -v n=1 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.1'
+ 'wait4lines_' '0.1' 4
+ local 'delay=0.1'
+ local elc=4
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 2 -ge 4 ']'
+ sleep '0.1'
+ return 1
+ 'time_fail=1'
+ expr 1 '+' 1
+ attempt=2
+ expr 1 '*' 2
+ 'num_sleeps=2'
+ test 2 -le 6
+ awk -v n=2 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.2'
+ 'wait4lines_' '0.2' 4
+ local 'delay=0.2'
+ local elc=4
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 4 -ge 4 ']'
+ 'time_fail=0'
+ break
+ test 0 = 0
+ wait 4195
+ rc=127
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 4 = 4 ']'
+ grep -F 'retry only effective for the initial open' out
tail: warning: --retry only effective for the initial open
+ grep -F 'cannot open' out
tail: cannot open 'missing' for reading: No such file or directory
+ grep -F 'replaced with an untailable file' out
tail: 'missing' has been replaced with an untailable file; giving up on this name
+ grep -F 'no files remaining' out
tail: no files remaining
+ '[' 127 = 1 ']'
+ fail=1
+ cat out
tail: warning: --retry only effective for the initial open
tail: cannot open 'missing' for reading: No such file or directory
tail: 'missing' has been replaced with an untailable file; giving up on this name
tail: no files remaining
+ rm -fd missing out
+ touch existing
+ tail '-s.1' --max-unchanged-stats=1 --follow=descriptor missing existing
+ pid=20934
+ 'retry_delay_' 'wait4lines_' '.1' 6 2
+ local 'test_func=wait4lines_'
+ local 'init_delay=.1'
+ local 'max_n_tries=6'
+ shift 3
+ local attempt=1
+ local 'num_sleeps=1'
+ local 'time_fail'
+ test 1 -le 6
+ awk -v n=1 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.1'
+ 'wait4lines_' '0.1' 2
+ local 'delay=0.1'
+ local elc=2
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 2 -ge 2 ']'
+ 'time_fail=0'
+ break
+ test 0 = 0
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 2 = 2 ']'
+ grep -F 'cannot open' out
tail: cannot open 'missing' for reading: No such file or directory
+ echo Y
+ echo X
+ 'retry_delay_' 'wait4lines_' '.1' 6 3
+ local 'test_func=wait4lines_'
+ local 'init_delay=.1'
+ local 'max_n_tries=6'
+ shift 3
+ local attempt=1
+ local 'num_sleeps=1'
+ local 'time_fail'
+ test 1 -le 6
+ awk -v n=1 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.1'
+ 'wait4lines_' '0.1' 3
+ local 'delay=0.1'
+ local elc=3
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 2 -ge 3 ']'
+ sleep '0.1'
+ return 1
+ 'time_fail=1'
+ expr 1 '+' 1
+ attempt=2
+ expr 1 '*' 2
+ 'num_sleeps=2'
+ test 2 -le 6
+ awk -v n=2 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.2'
+ 'wait4lines_' '0.2' 3
+ local 'delay=0.2'
+ local elc=3
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 3 -ge 3 ']'
+ 'time_fail=0'
+ break
+ test 0 = 0
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 3 = 3 ']'
+ grep '^X$' out
X
+ grep '^Y$' out
+ 'cleanup_'
+ kill 20934
+ wait 20934
[1]   Terminated              tail ${mode} ${f...
+ rm -f missing out existing
+ 'returns_' 1 tail --follow=descriptor missing
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 2 = 2 ']'
+ grep -F 'cannot open' out
tail: cannot open 'missing' for reading: No such file or directory
+ grep -F 'no files remaining' out
tail: no files remaining
+ rm -f out
+ 'returns_' 1 tail --follow=name missing
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 2 = 2 ']'
+ grep -F 'cannot open' out
tail: cannot open 'missing' for reading: No such file or directory
+ grep -F 'no files remaining' out
tail: no files remaining
+ rm -f out
+ cat '.'
+ 
+ timeout 10 tail ---disable-inotify '-s.1' --max-unchanged-stats=1 --follow=name --retry missing
+ pid=20102
+ 'retry_delay_' 'wait4lines_' '.1' 6 1
+ local 'test_func=wait4lines_'
+ local 'init_delay=.1'
+ local 'max_n_tries=6'
+ shift 3
+ local attempt=1
+ local 'num_sleeps=1'
+ local 'time_fail'
+ test 1 -le 6
+ awk -v n=1 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.1'
+ 'wait4lines_' '0.1' 1
+ local 'delay=0.1'
+ local elc=1
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 1 -ge 1 ']'
+ 'time_fail=0'
+ break
+ test 0 = 0
+ echo X
+ 'retry_delay_' 'wait4lines_' '.1' 6 3
+ local 'test_func=wait4lines_'
+ local 'init_delay=.1'
+ local 'max_n_tries=6'
+ shift 3
+ local attempt=1
+ local 'num_sleeps=1'
+ local 'time_fail'
+ test 1 -le 6
+ awk -v n=1 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.1'
+ 'wait4lines_' '0.1' 3
+ local 'delay=0.1'
+ local elc=3
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 1 -ge 3 ']'
+ sleep '0.1'
+ return 1
+ 'time_fail=1'
+ expr 1 '+' 1
+ attempt=2
+ expr 1 '*' 2
+ 'num_sleeps=2'
+ test 2 -le 6
+ awk -v n=2 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.2'
+ 'wait4lines_' '0.2' 3
+ local 'delay=0.2'
+ local elc=3
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 2 -ge 3 ']'
+ sleep '0.2'
+ return 1
+ 'time_fail=1'
+ expr 2 '+' 1
+ attempt=3
+ expr 2 '*' 2
+ 'num_sleeps=4'
+ test 3 -le 6
+ awk -v n=4 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.4'
+ 'wait4lines_' '0.4' 3
+ local 'delay=0.4'
+ local elc=3
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 3 -ge 3 ']'
+ 'time_fail=0'
+ break
+ test 0 = 0
+ 'cleanup_'
+ kill 20102
+ wait 20102
[1]   Terminated              timeout 10 tail ...
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 3 = 3 ']'
+ grep -F 'cannot open' out
tail: cannot open 'missing' for reading: No such file or directory
+ grep -F 'has appeared' out
tail: 'missing' has appeared;  following new file
+ grep '^X$' out
X
+ rm -f missing out
+ timeout 10 tail ---disable-inotify '-s.1' --max-unchanged-stats=1 --follow=descriptor --retry missing
+ pid=96
+ 'retry_delay_' 'wait4lines_' '.1' 6 2
+ local 'test_func=wait4lines_'
+ local 'init_delay=.1'
+ local 'max_n_tries=6'
+ shift 3
+ local attempt=1
+ local 'num_sleeps=1'
+ local 'time_fail'
+ test 1 -le 6
+ awk -v n=1 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.1'
+ 'wait4lines_' '0.1' 2
+ local 'delay=0.1'
+ local elc=2
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 2 -ge 2 ']'
+ 'time_fail=0'
+ break
+ test 0 = 0
+ echo X1
+ 'retry_delay_' 'wait4lines_' '.1' 6 4
+ local 'test_func=wait4lines_'
+ local 'init_delay=.1'
+ local 'max_n_tries=6'
+ shift 3
+ local attempt=1
+ local 'num_sleeps=1'
+ local 'time_fail'
+ test 1 -le 6
+ awk -v n=1 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.1'
+ 'wait4lines_' '0.1' 4
+ local 'delay=0.1'
+ local elc=4
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 2 -ge 4 ']'
+ sleep '0.1'
+ return 1
+ 'time_fail=1'
+ expr 1 '+' 1
+ attempt=2
+ expr 1 '*' 2
+ 'num_sleeps=2'
+ test 2 -le 6
+ awk -v n=2 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.2'
+ 'wait4lines_' '0.2' 4
+ local 'delay=0.2'
+ local elc=4
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 3 -ge 4 ']'
+ sleep '0.2'
+ return 1
+ 'time_fail=1'
+ expr 2 '+' 1
+ attempt=3
+ expr 2 '*' 2
+ 'num_sleeps=4'
+ test 3 -le 6
+ awk -v n=4 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.4'
+ 'wait4lines_' '0.4' 4
+ local 'delay=0.4'
+ local elc=4
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 4 -ge 4 ']'
+ 'time_fail=0'
+ break
+ test 0 = 0
+ echo X
+ 'retry_delay_' 'wait4lines_' '.1' 6 6
+ local 'test_func=wait4lines_'
+ local 'init_delay=.1'
+ local 'max_n_tries=6'
+ shift 3
+ local attempt=1
+ local 'num_sleeps=1'
+ local 'time_fail'
+ test 1 -le 6
+ awk -v n=1 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.1'
+ 'wait4lines_' '0.1' 6
+ local 'delay=0.1'
+ local elc=6
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 4 -ge 6 ']'
+ sleep '0.1'
+ return 1
+ 'time_fail=1'
+ expr 1 '+' 1
+ attempt=2
+ expr 1 '*' 2
+ 'num_sleeps=2'
+ test 2 -le 6
+ awk -v n=2 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.2'
+ 'wait4lines_' '0.2' 6
+ local 'delay=0.2'
+ local elc=6
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 6 -ge 6 ']'
+ 'time_fail=0'
+ break
+ test 0 = 0
+ 'cleanup_'
+ kill 96
+ wait 96
[1]   Terminated              timeout 10 tail ...
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 6 = 6 ']'
+ grep -F 'retry only effective for the initial open' out
tail: warning: --retry only effective for the initial open
+ grep -F 'cannot open' out
tail: cannot open 'missing' for reading: No such file or directory
+ grep -F 'has appeared' out
tail: 'missing' has appeared;  following new file
+ grep '^X1$' out
X1
+ grep -F 'file truncated' out
tail: missing: file truncated
+ grep '^X$' out
X
+ rm -f missing out
+ timeout 10 tail ---disable-inotify '-s.1' --max-unchanged-stats=1 --follow=descriptor --retry missing
+ pid=25872
+ 'retry_delay_' 'wait4lines_' '.1' 6 2
+ local 'test_func=wait4lines_'
+ local 'init_delay=.1'
+ local 'max_n_tries=6'
+ shift 3
+ local attempt=1
+ local 'num_sleeps=1'
+ local 'time_fail'
+ test 1 -le 6
+ awk -v n=1 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.1'
+ 'wait4lines_' '0.1' 2
+ local 'delay=0.1'
+ local elc=2
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 2 -ge 2 ']'
+ 'time_fail=0'
+ break
+ test 0 = 0
+ mkdir missing
+ 'retry_delay_' 'wait4lines_' '.1' 6 4
+ local 'test_func=wait4lines_'
+ local 'init_delay=.1'
+ local 'max_n_tries=6'
+ shift 3
+ local attempt=1
+ local 'num_sleeps=1'
+ local 'time_fail'
+ test 1 -le 6
+ awk -v n=1 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.1'
+ 'wait4lines_' '0.1' 4
+ local 'delay=0.1'
+ local elc=4
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 2 -ge 4 ']'
+ sleep '0.1'
+ return 1
+ 'time_fail=1'
+ expr 1 '+' 1
+ attempt=2
+ expr 1 '*' 2
+ 'num_sleeps=2'
+ test 2 -le 6
+ awk -v n=2 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.2'
+ 'wait4lines_' '0.2' 4
+ local 'delay=0.2'
+ local elc=4
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 4 -ge 4 ']'
+ 'time_fail=0'
+ break
+ test 0 = 0
+ wait 25872
+ rc=127
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 4 = 4 ']'
+ grep -F 'retry only effective for the initial open' out
tail: warning: --retry only effective for the initial open
+ grep -F 'cannot open' out
tail: cannot open 'missing' for reading: No such file or directory
+ grep -F 'replaced with an untailable file' out
tail: 'missing' has been replaced with an untailable file; giving up on this name
+ grep -F 'no files remaining' out
tail: no files remaining
+ '[' 127 = 1 ']'
+ fail=1
+ cat out
tail: warning: --retry only effective for the initial open
tail: cannot open 'missing' for reading: No such file or directory
tail: 'missing' has been replaced with an untailable file; giving up on this name
tail: no files remaining
+ rm -fd missing out
+ touch existing
+ tail ---disable-inotify '-s.1' --max-unchanged-stats=1 --follow=descriptor missing existing
+ pid=26459
+ 'retry_delay_' 'wait4lines_' '.1' 6 2
+ local 'test_func=wait4lines_'
+ local 'init_delay=.1'
+ local 'max_n_tries=6'
+ shift 3
+ local attempt=1
+ local 'num_sleeps=1'
+ local 'time_fail'
+ test 1 -le 6
+ awk -v n=1 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.1'
+ 'wait4lines_' '0.1' 2
+ local 'delay=0.1'
+ local elc=2
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 2 -ge 2 ']'
+ 'time_fail=0'
+ break
+ test 0 = 0
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 2 = 2 ']'
+ grep -F 'cannot open' out
tail: cannot open 'missing' for reading: No such file or directory
+ echo Y
+ echo X
+ 'retry_delay_' 'wait4lines_' '.1' 6 3
+ local 'test_func=wait4lines_'
+ local 'init_delay=.1'
+ local 'max_n_tries=6'
+ shift 3
+ local attempt=1
+ local 'num_sleeps=1'
+ local 'time_fail'
+ test 1 -le 6
+ awk -v n=1 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.1'
+ 'wait4lines_' '0.1' 3
+ local 'delay=0.1'
+ local elc=3
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 2 -ge 3 ']'
+ sleep '0.1'
+ return 1
+ 'time_fail=1'
+ expr 1 '+' 1
+ attempt=2
+ expr 1 '*' 2
+ 'num_sleeps=2'
+ test 2 -le 6
+ awk -v n=2 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.2'
+ 'wait4lines_' '0.2' 3
+ local 'delay=0.2'
+ local elc=3
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 3 -ge 3 ']'
+ 'time_fail=0'
+ break
+ test 0 = 0
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 3 = 3 ']'
+ grep '^X$' out
X
+ grep '^Y$' out
+ 'cleanup_'
+ kill 26459
+ wait 26459
[1]   Terminated              tail ${mode} ${f...
+ rm -f missing out existing
+ 'returns_' 1 tail ---disable-inotify --follow=descriptor missing
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 2 = 2 ']'
+ grep -F 'cannot open' out
tail: cannot open 'missing' for reading: No such file or directory
+ grep -F 'no files remaining' out
tail: no files remaining
+ rm -f out
+ 'returns_' 1 tail ---disable-inotify --follow=name missing
+ 'countlines_'
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out
+ wc -l
+ '[' 2 = 2 ']'
+ grep -F 'cannot open' out
tail: cannot open 'missing' for reading: No such file or directory
+ grep -F 'no files remaining' out
tail: no files remaining
+ rm -f out
+ cat '.'
+ Exit 1
+ set '+e'
+ exit 1
+ exit 1
+ 'remove_tmp_'
+ '__st=1'
+ 'cleanup_'
+ kill 26459
+ cd '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b'
+ chmod -R 'u+rwx' '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-retry.sh.t2YQ'
+ rm -rf '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-retry.sh.t2YQ'
+ exit 1
FAIL tests/tail-2/retry.sh (exit status: 1)

FAIL: tests/cp/existing-perm-race
=================================

+ 'initial_cwd_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b'
+ 'testdir_prefix_'
+ printf gt
+ 'pfx_=gt'
+ 'mktempd_' '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b' 'gt-existing-perm-race.sh.XXXX'
+ 'destdir_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b'
+ 'template_=gt-existing-perm-race.sh.XXXX'
+ 'MAX_TRIES_=4'
+ 'destdir_slash_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/'
+ unset TMPDIR
+ 'd=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-existing-perm-race.sh.JheK'
+ ':'
+ test -d '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-existing-perm-race.sh.JheK'
+ ls -dgo '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-existing-perm-race.sh.JheK'
+ 'perms=drwx------ 2 512 Nov 28 23:57 /tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-existing-perm-race.sh.JheK'
+ ':'
+ echo '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-existing-perm-race.sh.JheK'
+ return
+ 'test_dir_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-existing-perm-race.sh.JheK'
+ cd '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-existing-perm-race.sh.JheK'
+ 'gl_init_sh_nl_=
'
+ 'IFS= 	
'
+ 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.sPqK4iC9/coreutils-8.25.133-0655b/./src'
+ 'PATH=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/./src:/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/src:/usr/bin:/bin:/usr/pkg/bin:/sbin:/usr/sbin'
+ 'create_exe_shims_' '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/./src'
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ 'print_ver_' cp
+ 'require_built_' cp
+ 'skip_=no'
+ test no = yes
+ test yes = yes
+ local i
+ env cp --version
cp (GNU coreutils) 8.25.133-0655b
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 Torbjorn Granlund, David MacKenzie, and Jim Meyering.
+ 'require_membership_in_two_groups_'
+ test 0 = 0
+ 'groups=100 0'
+ 'require_local_dir_'
+ 'require_mount_list_'
+ local 'mount_list_fail=cannot read table of mounted file systems'
+ df --local
+ grep -F 'cannot read table of mounted file systems'
+ 'is_local_dir_' '.'
+ test 1 = 1
+ df --local '.'
+ 'require_no_default_acl_' '.'
+ getfacl --version
getfacl: not found
+ ls -ld '.'
+ grep '.........+'
+ set '_' 100 0
+ shift
+ g1=100
+ g2=0
+ umask 077
+ 'mkfifo_or_skip_' fifo
+ test 1 = 1
+ mkfifo fifo
+ touch fifo-copy
+ chgrp 100 fifo
+ chgrp 0 fifo-copy
+ chmod 'g+r' fifo-copy
+ cp -p --copy-contents fifo fifo-copy
+ pid=10334
+ test '!' -s fifo-copy
+ echo foo
+ test '!' -s fifo-copy
+ ls -l -n fifo-copy
+ echo foo
+ read mode links owner group etc
+ test 0 = 100
+ wait 10334
+ fail=1
+ ls -l -n fifo-copy
+ read mode links owner group etc
+ test 100 = 100
+ Exit 1
+ set '+e'
+ exit 1
+ exit 1
+ 'remove_tmp_'
+ '__st=1'
+ 'cleanup_'
+ kill 10334
+ cd '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b'
+ chmod -R 'u+rwx' '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-existing-perm-race.sh.JheK'
+ rm -rf '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-existing-perm-race.sh.JheK'
+ exit 1
FAIL tests/cp/existing-perm-race.sh (exit status: 1)

FAIL: tests/cp/file-perm-race
=============================

+ 'initial_cwd_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b'
+ 'testdir_prefix_'
+ printf gt
+ 'pfx_=gt'
+ 'mktempd_' '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b' 'gt-file-perm-race.sh.XXXX'
+ 'destdir_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b'
+ 'template_=gt-file-perm-race.sh.XXXX'
+ 'MAX_TRIES_=4'
+ 'destdir_slash_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/'
+ unset TMPDIR
+ 'd=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-file-perm-race.sh.G3lZ'
+ ':'
+ test -d '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-file-perm-race.sh.G3lZ'
+ ls -dgo '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-file-perm-race.sh.G3lZ'
+ 'perms=drwx------ 2 512 Nov 28 23:57 /tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-file-perm-race.sh.G3lZ'
+ ':'
+ echo '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-file-perm-race.sh.G3lZ'
+ return
+ 'test_dir_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-file-perm-race.sh.G3lZ'
+ cd '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-file-perm-race.sh.G3lZ'
+ 'gl_init_sh_nl_=
'
+ 'IFS= 	
'
+ 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.sPqK4iC9/coreutils-8.25.133-0655b/./src'
+ 'PATH=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/./src:/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/src:/usr/bin:/bin:/usr/pkg/bin:/sbin:/usr/sbin'
+ 'create_exe_shims_' '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/./src'
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ 'print_ver_' cp
+ 'require_built_' cp
+ 'skip_=no'
+ test no = yes
+ test yes = yes
+ local i
+ env cp --version
cp (GNU coreutils) 8.25.133-0655b
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 Torbjorn Granlund, David MacKenzie, and Jim Meyering.
+ 'require_local_dir_'
+ 'require_mount_list_'
+ local 'mount_list_fail=cannot read table of mounted file systems'
+ df --local
+ grep -F 'cannot read table of mounted file systems'
+ 'is_local_dir_' '.'
+ test 1 = 1
+ df --local '.'
+ umask 022
+ 'mkfifo_or_skip_' fifo
+ test 1 = 1
+ mkfifo fifo
+ cp -p --copy-contents fifo fifo-copy
+ pid=17466
+ test '!' -f fifo-copy
+ ls -l fifo-copy
+ echo foo
+ cat 'ls.out'
+ wait 17466
+ fail=1
+ Exit 1
+ set '+e'
+ exit 1
+ exit 1
+ 'remove_tmp_'
+ '__st=1'
+ 'cleanup_'
+ kill 17466
+ cd '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b'
+ chmod -R 'u+rwx' '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-file-perm-race.sh.G3lZ'
+ rm -rf '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-file-perm-race.sh.G3lZ'
+ exit 1
FAIL tests/cp/file-perm-race.sh (exit status: 1)

FAIL: tests/cp/parent-perm-race
===============================

+ 'initial_cwd_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b'
+ 'testdir_prefix_'
+ printf gt
+ 'pfx_=gt'
+ 'mktempd_' '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b' 'gt-parent-perm-race.sh.XXXX'
+ 'destdir_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b'
+ 'template_=gt-parent-perm-race.sh.XXXX'
+ 'MAX_TRIES_=4'
+ 'destdir_slash_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/'
+ unset TMPDIR
+ 'd=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-parent-perm-race.sh.1Rkw'
+ ':'
+ test -d '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-parent-perm-race.sh.1Rkw'
+ ls -dgo '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-parent-perm-race.sh.1Rkw'
+ 'perms=drwx------ 2 512 Nov 28 23:57 /tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-parent-perm-race.sh.1Rkw'
+ ':'
+ echo '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-parent-perm-race.sh.1Rkw'
+ return
+ 'test_dir_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-parent-perm-race.sh.1Rkw'
+ cd '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-parent-perm-race.sh.1Rkw'
+ 'gl_init_sh_nl_=
'
+ 'IFS= 	
'
+ 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.sPqK4iC9/coreutils-8.25.133-0655b/./src'
+ 'PATH=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/./src:/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/src:/usr/bin:/bin:/usr/pkg/bin:/sbin:/usr/sbin'
+ 'create_exe_shims_' '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/./src'
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ 'print_ver_' cp
+ 'require_built_' cp
+ 'skip_=no'
+ test no = yes
+ test yes = yes
+ local i
+ env cp --version
cp (GNU coreutils) 8.25.133-0655b
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 Torbjorn Granlund, David MacKenzie, and Jim Meyering.
+ 'require_local_dir_'
+ 'require_mount_list_'
+ local 'mount_list_fail=cannot read table of mounted file systems'
+ df --local
+ grep -F 'cannot read table of mounted file systems'
+ 'is_local_dir_' '.'
+ test 1 = 1
+ df --local '.'
+ umask 002
+ mkdir mode ownership d
+ chmod 'g+s' d
+ pid=
+ 'mkfifo_or_skip_' mode/fifo
+ test 1 = 1
+ mkfifo mode/fifo
+ timeout 10 cp --preserve=mode -R --copy-contents --parents mode d
+ pid=17217
+ timeout 10 sh -c 'ls -ld d/mode >mode/fifo'
+ wait 17217
+ fail=1
+ cat d/mode/fifo
+ 'ls_output=drwxr-xr-x 2 miles wheel 512 Nov 28 23:57 d/mode'
+ 'mkfifo_or_skip_' ownership/fifo
+ test 1 = 1
+ mkfifo ownership/fifo
+ timeout 10 cp --preserve=ownership -R --copy-contents --parents ownership d
+ pid=18148
+ timeout 10 sh -c 'ls -ld d/ownership >ownership/fifo'
+ wait 18148
+ fail=1
+ cat d/ownership/fifo
+ 'ls_output=drwx------ 2 miles wheel 512 Nov 28 23:57 d/ownership'
+ Exit 1
+ set '+e'
+ exit 1
+ exit 1
+ 'remove_tmp_'
+ '__st=1'
+ 'cleanup_'
+ kill 18148
+ cd '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b'
+ chmod -R 'u+rwx' '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-parent-perm-race.sh.1Rkw'
+ rm -rf '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-parent-perm-race.sh.1Rkw'
+ exit 1
FAIL tests/cp/parent-perm-race.sh (exit status: 1)

FAIL: tests/tail-2/follow-stdin
===============================

+ 'initial_cwd_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b'
+ 'testdir_prefix_'
+ printf gt
+ 'pfx_=gt'
+ 'mktempd_' '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b' 'gt-follow-stdin.sh.XXXX'
+ 'destdir_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b'
+ 'template_=gt-follow-stdin.sh.XXXX'
+ 'MAX_TRIES_=4'
+ 'destdir_slash_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/'
+ unset TMPDIR
+ 'd=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-follow-stdin.sh.Ac9C'
+ ':'
+ test -d '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-follow-stdin.sh.Ac9C'
+ ls -dgo '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-follow-stdin.sh.Ac9C'
+ 'perms=drwx------ 2 512 Nov 28 23:58 /tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-follow-stdin.sh.Ac9C'
+ ':'
+ echo '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-follow-stdin.sh.Ac9C'
+ return
+ 'test_dir_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-follow-stdin.sh.Ac9C'
+ cd '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-follow-stdin.sh.Ac9C'
+ 'gl_init_sh_nl_=
'
+ 'IFS= 	
'
+ 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.sPqK4iC9/coreutils-8.25.133-0655b/./src'
+ 'PATH=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/./src:/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/src:/usr/bin:/bin:/usr/pkg/bin:/sbin:/usr/sbin'
+ 'create_exe_shims_' '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/./src'
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ 'print_ver_' tail
+ 'require_built_' tail
+ 'skip_=no'
+ test no = yes
+ test yes = yes
+ local i
+ env tail --version
tail (GNU coreutils) 8.25.133-0655b
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 Paul Rubin, David MacKenzie, Ian Lance Taylor,
and Jim Meyering.
+ 'fastpoll=-s.1 --max-unchanged-stats=1'
+ echo line
+ echo line
+ 
+ tail -f '-s.1' --max-unchanged-stats=1
+ pid=22695
+ 'tail_re=line' 'retry_delay_' 'check_tail_output' '.1' 7
+ local 'test_func=check_tail_output'
+ local 'init_delay=.1'
+ local 'max_n_tries=7'
+ shift 3
+ local attempt=1
+ local 'num_sleeps=1'
+ local 'time_fail'
+ test 1 -le 7
+ awk -v n=1 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.1'
+ 'check_tail_output' '0.1'
+ local 'delay=0.1'
+ grep line out
line
+ 'time_fail=0'
+ break
+ test 0 = 0
+ compare /dev/null err
+ 'compare_dev_null_' /dev/null err
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s err
+ return 0
+ return 0
+ 'cleanup_'
+ kill 22695
+ wait 22695
[1]   Terminated              tail ${mode} -f ...
+ 
+ tail ---disable-inotify -f '-s.1' --max-unchanged-stats=1
+ pid=24685
+ 'tail_re=line' 'retry_delay_' 'check_tail_output' '.1' 7
+ local 'test_func=check_tail_output'
+ local 'init_delay=.1'
+ local 'max_n_tries=7'
+ shift 3
+ local attempt=1
+ local 'num_sleeps=1'
+ local 'time_fail'
+ test 1 -le 7
+ awk -v n=1 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.1'
+ 'check_tail_output' '0.1'
+ local 'delay=0.1'
+ grep line out
line
+ 'time_fail=0'
+ break
+ test 0 = 0
+ compare /dev/null err
+ 'compare_dev_null_' /dev/null err
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s err
+ return 0
+ return 0
+ 'cleanup_'
+ kill 24685
+ wait 24685
[1]   Terminated              tail ${mode} -f ...
+ 'returns_' 1 timeout 10 tail -f -
+ fail=1
+ cat
+ 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-28 23:58:17.000000000 +0000
+++ err	2016-11-28 23:58:17.000000000 +0000
@@ -1,4 +0,0 @@
-tail: cannot fstat 'standard input': Bad file descriptor
-tail: error reading 'standard input': Bad file descriptor
-tail: no files remaining
-tail: -: Bad file descriptor
+ fail=1
+ Exit 1
+ set '+e'
+ exit 1
+ exit 1
+ 'remove_tmp_'
+ '__st=1'
+ 'cleanup_'
+ kill 24685
+ cd '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b'
+ chmod -R 'u+rwx' '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-follow-stdin.sh.Ac9C'
+ rm -rf '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-follow-stdin.sh.Ac9C'
+ exit 1
FAIL tests/tail-2/follow-stdin.sh (exit status: 1)

FAIL: tests/tail-2/pipe-f2
==========================

+ 'initial_cwd_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b'
+ 'testdir_prefix_'
+ printf gt
+ 'pfx_=gt'
+ 'mktempd_' '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b' 'gt-pipe-f2.sh.XXXX'
+ 'destdir_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b'
+ 'template_=gt-pipe-f2.sh.XXXX'
+ 'MAX_TRIES_=4'
+ 'destdir_slash_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/'
+ unset TMPDIR
+ 'd=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-pipe-f2.sh.D5EY'
+ ':'
+ test -d '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-pipe-f2.sh.D5EY'
+ ls -dgo '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-pipe-f2.sh.D5EY'
+ 'perms=drwx------ 2 512 Nov 28 23:58 /tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-pipe-f2.sh.D5EY'
+ ':'
+ echo '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-pipe-f2.sh.D5EY'
+ return
+ 'test_dir_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-pipe-f2.sh.D5EY'
+ cd '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-pipe-f2.sh.D5EY'
+ 'gl_init_sh_nl_=
'
+ 'IFS= 	
'
+ 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.sPqK4iC9/coreutils-8.25.133-0655b/./src'
+ 'PATH=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/./src:/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/src:/usr/bin:/bin:/usr/pkg/bin:/sbin:/usr/sbin'
+ 'create_exe_shims_' '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/./src'
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ 'print_ver_' tail
+ 'require_built_' tail
+ 'skip_=no'
+ test no = yes
+ test yes = yes
+ local i
+ env tail --version
tail (GNU coreutils) 8.25.133-0655b
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 Paul Rubin, David MacKenzie, Ian Lance Taylor,
and Jim Meyering.
+ 'mkfifo_or_skip_' fifo
+ test 1 = 1
+ mkfifo fifo
+ echo 1
+ echo 1
+ 'fastpoll=-s.1 --max-unchanged-stats=1'
+ timeout 10 tail '-s.1' --max-unchanged-stats=1 -f fifo
+ pid=11260
+ 'retry_delay_' 'check_tail_output' '.1' 7
+ local 'test_func=check_tail_output'
+ local 'init_delay=.1'
+ local 'max_n_tries=7'
+ shift 3
+ local attempt=1
+ local 'num_sleeps=1'
+ local 'time_fail'
+ test 1 -le 7
+ awk -v n=1 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.1'
+ 'check_tail_output' '0.1'
+ sleep '0.1'
+ test -s out
+ 'time_fail=1'
+ expr 1 '+' 1
+ attempt=2
+ expr 1 '*' 2
+ 'num_sleeps=2'
+ test 2 -le 7
+ awk -v n=2 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.2'
+ 'check_tail_output' '0.2'
+ sleep '0.2'
+ test -s out
+ 'time_fail=1'
+ expr 2 '+' 1
+ attempt=3
+ expr 2 '*' 2
+ 'num_sleeps=4'
+ test 3 -le 7
+ awk -v n=4 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.4'
+ 'check_tail_output' '0.4'
+ sleep '0.4'
+ test -s out
+ 'time_fail=1'
+ expr 3 '+' 1
+ attempt=4
+ expr 4 '*' 2
+ 'num_sleeps=8'
+ test 4 -le 7
+ awk -v n=8 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=0.8'
+ 'check_tail_output' '0.8'
+ sleep '0.8'
+ test -s out
+ 'time_fail=1'
+ expr 4 '+' 1
+ attempt=5
+ expr 8 '*' 2
+ 'num_sleeps=16'
+ test 5 -le 7
+ awk -v n=16 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=1.6'
+ 'check_tail_output' '1.6'
+ sleep '1.6'
+ test -s out
+ 'time_fail=1'
+ expr 5 '+' 1
+ attempt=6
+ expr 16 '*' 2
+ 'num_sleeps=32'
+ test 6 -le 7
+ awk -v n=32 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=3.2'
+ 'check_tail_output' '3.2'
+ sleep '3.2'
+ test -s out
+ 'time_fail=1'
+ expr 6 '+' 1
+ attempt=7
+ expr 32 '*' 2
+ 'num_sleeps=64'
+ test 7 -le 7
+ awk -v n=64 -v 's=.1' 'BEGIN { print s * n }'
+ local 'delay=6.4'
+ 'check_tail_output' '6.4'
+ sleep '6.4'
+ test -s out
+ 'time_fail=1'
+ expr 7 '+' 1
+ attempt=8
+ expr 64 '*' 2
+ 'num_sleeps=128'
+ test 8 -le 7
+ test 1 = 0
+ fail=1
+ 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	2016-11-28 23:58:17.000000000 +0000
+++ out	2016-11-28 23:58:17.000000000 +0000
@@ -1 +0,0 @@
-1
+ fail=1
+ kill -0 11260
kill: 11260: No such process
+ fail=1
+ 'cleanup_'
+ kill 11260
+ Exit 1
+ set '+e'
+ exit 1
+ exit 1
+ 'remove_tmp_'
+ '__st=1'
+ 'cleanup_'
+ kill 11260
+ cd '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b'
+ chmod -R 'u+rwx' '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-pipe-f2.sh.D5EY'
+ rm -rf '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-pipe-f2.sh.D5EY'
+ exit 1
FAIL tests/tail-2/pipe-f2.sh (exit status: 1)

FAIL: tests/touch/not-owner
===========================

+ 'initial_cwd_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b'
+ 'testdir_prefix_'
+ printf gt
+ 'pfx_=gt'
+ 'mktempd_' '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b' 'gt-not-owner.sh.XXXX'
+ 'destdir_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b'
+ 'template_=gt-not-owner.sh.XXXX'
+ 'MAX_TRIES_=4'
+ 'destdir_slash_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/'
+ unset TMPDIR
+ 'd=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-not-owner.sh.KFtq'
+ ':'
+ test -d '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-not-owner.sh.KFtq'
+ ls -dgo '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-not-owner.sh.KFtq'
+ 'perms=drwx------ 2 512 Nov 28 23:58 /tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-not-owner.sh.KFtq'
+ ':'
+ echo '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-not-owner.sh.KFtq'
+ return
+ 'test_dir_=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-not-owner.sh.KFtq'
+ cd '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-not-owner.sh.KFtq'
+ 'gl_init_sh_nl_=
'
+ 'IFS= 	
'
+ 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.sPqK4iC9/coreutils-8.25.133-0655b/./src'
+ 'PATH=/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/./src:/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/src:/usr/bin:/bin:/usr/pkg/bin:/sbin:/usr/sbin'
+ 'create_exe_shims_' '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/./src'
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ 'print_ver_' touch
+ 'require_built_' touch
+ 'skip_=no'
+ test no = yes
+ test yes = yes
+ local i
+ env touch --version
touch (GNU coreutils) 8.25.133-0655b
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 Paul Rubin, Arnold Robbins, Jim Kingdon,
David MacKenzie, and Randy Smith.
+ env -- test -w /
+ env -- test -O /
+ env -- test -G /
+ 'skip_if_root_'
+ 'uid_is_privileged_'
+ id -u
+ 'my_uid=1000'
+ return 1
+ touch /
+ cat
+ cmp out exp
+ cat
+ cmp out exp
+ cat
+ cmp out exp
+ cat
+ cmp out exp
+ test '' = 1
+ fail=1
+ test 1 = 1
+ 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	2016-11-28 23:58:30.000000000 +0000
+++ out	2016-11-28 23:58:30.000000000 +0000
@@ -1 +1 @@
-touch: setting times of '/': Read-only file system
+touch: cannot touch '/': File exists
+ Exit 1
+ set '+e'
+ exit 1
+ exit 1
+ 'remove_tmp_'
+ '__st=1'
+ 'cleanup_'
+ ':'
+ cd '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b'
+ chmod -R 'u+rwx' '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-not-owner.sh.KFtq'
+ rm -rf '/tmp/coreutils-ss.XXXXXX.sPqK4iC9/coreutils-8.25.133-0655b/gt-not-owner.sh.KFtq'
+ exit 1
FAIL tests/touch/not-owner.sh (exit status: 1)

