ERROR: tests/tail-2/inotify-rotate-resources
============================================

++ initial_cwd_=/gpfs/commons/home/agordon/sources/coreutils-8.25.133-0655b
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /gpfs/commons/home/agordon/sources/coreutils-8.25.133-0655b gt-inotify-rotate-resources.sh.XXXX
+++ case $# in
+++ destdir_=/gpfs/commons/home/agordon/sources/coreutils-8.25.133-0655b
+++ template_=gt-inotify-rotate-resources.sh.XXXX
+++ MAX_TRIES_=4
+++ case $destdir_ in
+++ destdir_slash_=/gpfs/commons/home/agordon/sources/coreutils-8.25.133-0655b/
+++ case $template_ in
++++ unset TMPDIR
+++ d=/gpfs/commons/home/agordon/sources/coreutils-8.25.133-0655b/gt-inotify-rotate-resources.sh.g9XB
+++ case $d in
+++ :
+++ test -d /gpfs/commons/home/agordon/sources/coreutils-8.25.133-0655b/gt-inotify-rotate-resources.sh.g9XB
++++ ls -dgo /gpfs/commons/home/agordon/sources/coreutils-8.25.133-0655b/gt-inotify-rotate-resources.sh.g9XB
+++ perms='drwx------ 2 4096 Nov 30 11:46 /gpfs/commons/home/agordon/sources/coreutils-8.25.133-0655b/gt-inotify-rotate-resources.sh.g9XB'
+++ case $perms in
+++ :
+++ echo /gpfs/commons/home/agordon/sources/coreutils-8.25.133-0655b/gt-inotify-rotate-resources.sh.g9XB
+++ return
++ test_dir_=/gpfs/commons/home/agordon/sources/coreutils-8.25.133-0655b/gt-inotify-rotate-resources.sh.g9XB
++ cd /gpfs/commons/home/agordon/sources/coreutils-8.25.133-0655b/gt-inotify-rotate-resources.sh.g9XB
++ gl_init_sh_nl_='
'
++ IFS=' 	
'
++ for sig_ in 1 2 3 13 15
+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
++ for sig_ in 1 2 3 13 15
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
++ for sig_ in 1 2 3 13 15
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
++ for sig_ in 1 2 3 13 15
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
++ for sig_ in 1 2 3 13 15
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ trap remove_tmp_ 0
+ path_prepend_ ./src
+ test 1 '!=' 0
+ path_dir_=./src
+ case $path_dir_ in
+ abs_path_dir_=/gpfs/commons/home/agordon/sources/coreutils-8.25.133-0655b/./src
+ case $abs_path_dir_ in
+ PATH=/gpfs/commons/home/agordon/sources/coreutils-8.25.133-0655b/./src:/gpfs/commons/home/agordon/sources/coreutils-8.25.133-0655b/src:/gpfs/commons/home/agordon/usr/bin:/opt/sge/bin:/opt/sge/bin/lx-amd64:/gpfs/commons/home/agordon/usr/bin:/opt/sge/bin:/opt/sge/bin/lx-amd64:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/lpp/mmfs/bin/:/gpfs/commons/home/agordon/bin:/usr/lpp/mmfs/bin/:/gpfs/commons/home/agordon/bin:/sbin
+ create_exe_shims_ /gpfs/commons/home/agordon/sources/coreutils-8.25.133-0655b/./src
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ print_ver_ tail
+ require_built_ tail
+ skip_=no
+ for i in '"$@"'
+ case " $built_programs " in
+ test no = yes
+ test yes = yes
+ local i
+ for i in '$*'
+ 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.
+ grep '^#define HAVE_INOTIFY 1' /gpfs/commons/home/agordon/sources/coreutils-8.25.133-0655b/lib/config.h
+ require_strace_ inotify_add_watch,inotify_rm_watch
+ test 1 = 1
+ strace -V
+ strace -qe inotify_add_watch,inotify_rm_watch echo
+ strace -o log-help ls --help
++ wc -l
+ n_lines_help=96
+ rm -f log-help
+ test 96 = 0
+ test 96 = 1
+ is_local_dir_ .
+ test 1 = 1
+ df --local .
+ fastpoll='-s.1 --max-unchanged-stats=1'
+ touch k
+ pid=45415
+ timeout 180 strace -e inotify_add_watch,inotify_rm_watch -o strace.out tail -F -s.1 --max-unchanged-stats=1 k
++ seq 2
+ for i in '$(seq 2)'
+ echo 1
1
+ echo tailed
+ strace_re='inotify_add_watch.*MODIFY'
+ retry_delay_ check_strace .1 8
+ local test_func=check_strace
+ local init_delay=.1
+ local max_n_tries=8
+ shift 3
+ local attempt=1
+ local num_sleeps=1
+ local time_fail
+ test 1 -le 8
++ gawk -v n=1 -v s=.1 'BEGIN { print s * n }'
+ local delay=0.1
+ check_strace 0.1
+ local delay=0.1
+ grep 'inotify_add_watch.*MODIFY' strace.out
+ sleep 0.1
+ return 1
+ time_fail=1
++ expr 1 + 1
+ attempt=2
++ expr 1 '*' 2
+ num_sleeps=2
+ test 2 -le 8
++ gawk -v n=2 -v s=.1 'BEGIN { print s * n }'
+ local delay=0.2
+ check_strace 0.2
+ local delay=0.2
+ grep 'inotify_add_watch.*MODIFY' strace.out
+ sleep 0.2
+ return 1
+ time_fail=1
++ expr 2 + 1
+ attempt=3
++ expr 2 '*' 2
+ num_sleeps=4
+ test 3 -le 8
++ gawk -v n=4 -v s=.1 'BEGIN { print s * n }'
+ local delay=0.4
+ check_strace 0.4
+ local delay=0.4
+ grep 'inotify_add_watch.*MODIFY' strace.out
+ sleep 0.4
+ return 1
+ time_fail=1
++ expr 3 + 1
+ attempt=4
++ expr 4 '*' 2
+ num_sleeps=8
+ test 4 -le 8
++ gawk -v n=8 -v s=.1 'BEGIN { print s * n }'
+ local delay=0.8
+ check_strace 0.8
+ local delay=0.8
+ grep 'inotify_add_watch.*MODIFY' strace.out
+ sleep 0.8
+ return 1
+ time_fail=1
++ expr 4 + 1
+ attempt=5
++ expr 8 '*' 2
+ num_sleeps=16
+ test 5 -le 8
++ gawk -v n=16 -v s=.1 'BEGIN { print s * n }'
+ local delay=1.6
+ check_strace 1.6
+ local delay=1.6
+ grep 'inotify_add_watch.*MODIFY' strace.out
+ sleep 1.6
+ return 1
+ time_fail=1
++ expr 5 + 1
+ attempt=6
++ expr 16 '*' 2
+ num_sleeps=32
+ test 6 -le 8
++ gawk -v n=32 -v s=.1 'BEGIN { print s * n }'
+ local delay=3.2
+ check_strace 3.2
+ local delay=3.2
+ grep 'inotify_add_watch.*MODIFY' strace.out
+ sleep 3.2
+ return 1
+ time_fail=1
++ expr 6 + 1
+ attempt=7
++ expr 32 '*' 2
+ num_sleeps=64
+ test 7 -le 8
++ gawk -v n=64 -v s=.1 'BEGIN { print s * n }'
+ local delay=6.4
+ check_strace 6.4
+ local delay=6.4
+ grep 'inotify_add_watch.*MODIFY' strace.out
+ sleep 6.4
+ return 1
+ time_fail=1
++ expr 7 + 1
+ attempt=8
++ expr 64 '*' 2
+ num_sleeps=128
+ test 8 -le 8
++ gawk -v n=128 -v s=.1 'BEGIN { print s * n }'
+ local delay=12.8
+ check_strace 12.8
+ local delay=12.8
+ grep 'inotify_add_watch.*MODIFY' strace.out
+ sleep 12.8
+ return 1
+ time_fail=1
++ expr 8 + 1
+ attempt=9
++ expr 128 '*' 2
+ num_sleeps=256
+ test 9 -le 8
+ test 1 = 0
+ no_watch_=1
+ grep -F 'reverting to polling' out
+ test 1
+ cat out
tailed
+ framework_failure_ 'no inotify_add_watch'
+ warn_ 'inotify-rotate-resources.sh: set-up failure: no inotify_add_watch'
+ case $IFS in
+ printf '%s\n' 'inotify-rotate-resources.sh: set-up failure: no inotify_add_watch'
inotify-rotate-resources.sh: set-up failure: no inotify_add_watch
+ test 9 = 2
+ printf '%s\n' 'inotify-rotate-resources.sh: set-up failure: no inotify_add_watch'
+ sed 1q
+ Exit 99
+ set +e
+ exit 99
+ exit 99
+ remove_tmp_
+ __st=99
+ cleanup_
+ kill 45415
+ wait 45415
+ cd /gpfs/commons/home/agordon/sources/coreutils-8.25.133-0655b
+ chmod -R u+rwx /gpfs/commons/home/agordon/sources/coreutils-8.25.133-0655b/gt-inotify-rotate-resources.sh.g9XB
+ rm -rf /gpfs/commons/home/agordon/sources/coreutils-8.25.133-0655b/gt-inotify-rotate-resources.sh.g9XB
+ exit 99
ERROR tests/tail-2/inotify-rotate-resources.sh (exit status: 99)
