================================================== GNU grep 2.20.83-06900: tests/test-suite.log ================================================== # TOTAL: 1 # PASS: 0 # SKIP: 0 # XFAIL: 0 # FAIL: 1 # XPASS: 0 # ERROR: 0 .. contents:: :depth: 2 FAIL: symlink ============= + 'initial_cwd_=/tmp/grep-2.20.83-06900/tests' + fail=0 + 'testdir_prefix_' + printf gt + 'pfx_=gt' + 'mktempd_' '/tmp/grep-2.20.83-06900/tests' 'gt-symlink.XXXX' + 'destdir_=/tmp/grep-2.20.83-06900/tests' + 'template_=gt-symlink.XXXX' + 'MAX_TRIES_=4' + unset TMPDIR + 'd=/tmp/-p.028951aa gt-symlink.951c' + fail=1 + fail=1 + test -d '/tmp/-p.028951aa gt-symlink.951c' + fail=1 + ls -dgo '/tmp/-p.028951aa gt-symlink.951c' + tr S - + 'LC_ALL=C' env -- tr S - + perms= + fail=1 + test 1 = 0 + echo 'gt-symlink.XXXX' + sed 's/XX*$//' + 'base_template_=gt-symlink.' + echo 'gt-symlink.XXXX' + wc -c + 'template_length_= 16' + echo 'gt-symlink.' + wc -c + 'nx_= 12' + expr 16 - 12 + 'nx_=4' + 'err_=' + 'i_=1' + ':' + 'rand_bytes_' 4 + 'n_=4' + 'chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' + 'dev_rand_=/dev/urandom' + test -r /dev/urandom + dd ibs=4 count=1 if=/dev/urandom+ 'LC_ALL=C' tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 + 'LC_ALL=C' env -- tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 + return + 'X_=yKU9' + 'candidate_dir_=/tmp/grep-2.20.83-06900/tests/gt-symlink.yKU9' + mkdir -m 0700 '/tmp/grep-2.20.83-06900/tests/gt-symlink.yKU9' + 'err_=' + echo '/tmp/grep-2.20.83-06900/tests/gt-symlink.yKU9' + return + 'test_dir_=/tmp/grep-2.20.83-06900/tests/gt-symlink.yKU9' + cd '/tmp/grep-2.20.83-06900/tests/gt-symlink.yKU9' + '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/grep-2.20.83-06900/tests/../src' + 'PATH=/tmp/grep-2.20.83-06900/tests/../src:/tmp/grep-2.20.83-06900/src:/usr/local/bin:/usr/pkg/bin:/usr/bin:/bin:/usr/games' + 'create_exe_shims_' '/tmp/grep-2.20.83-06900/tests/../src' + return 0 + shift + test 0 '!=' 0 + export PATH + mkdir dir + echo a + echo b + ln -s a dir/c + ln -s '.' dir/d + ln -s dangling dir/e + touch out + 'expected_status=0' + cd dir + grep '^' + test 0 -eq 0 + 'exp=a\n' + printf 'a\n' + 'LC_ALL=C' sort grepout + grep -v Binary out-t + 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 + 'expected_status=2' + cd dir + grep '^' a b c d e grep: e: No such file or directory + test 2 -eq 2 + 'exp=a:a\nb:b\nc:a\n' + printf 'a:a\nb:b\nc:a\n' + 'LC_ALL=C' sort grepout + grep -v Binary out-t + 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 + 'expected_status=0' + cd dir + grep -r '^' grep: e: No such file or directory + test 2 -eq 0 + fail=1 + 'exp=a:a\nb:b\n' + printf 'a:a\nb:b\n' + 'LC_ALL=C' sort grepout + grep -v Binary out-t + 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 Mon Nov 10 02:26:07 2014 +++ out Mon Nov 10 02:26:07 2014 @@ -1,2 +1,3 @@ a:a b:b +c:a + fail=1 + 'expected_status=2' + cd dir + grep -r '^' a b c d e grep: d/e: No such file or directory grep: e: No such file or directory + test 2 -eq 2 + 'exp=a:a\nb:b\nc:a\nd/a:a\nd/b:b\n' + printf 'a:a\nb:b\nc:a\nd/a:a\nd/b:b\n' + 'LC_ALL=C' sort grepout + grep -v Binary out-t + 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 Mon Nov 10 02:26:07 2014 +++ out Mon Nov 10 02:26:07 2014 @@ -3,3 +3,4 @@ c:a d/a:a d/b:b +d/c:a + fail=1 + 'expected_status=2' + cd dir + grep -R '^' grep: warning: d: recursive directory loop grep: e: No such file or directory + test 2 -eq 2 + 'exp=a:a\nb:b\nc:a\n' + printf 'a:a\nb:b\nc:a\n' + 'LC_ALL=C' sort grepout + grep -v Binary out-t + 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 + 'expected_status=2' + cd dir + grep -R '^' a b c d e grep: warning: d/d: recursive directory loop grep: d/e: No such file or directory grep: e: No such file or directory + test 2 -eq 2 + 'exp=a:a\nb:b\nc:a\nd/a:a\nd/b:b\nd/c:a\n' + printf 'a:a\nb:b\nc:a\nd/a:a\nd/b:b\nd/c:a\n' + 'LC_ALL=C' sort grepout + grep -v Binary out-t + 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 + Exit 1 + set '+e' + exit 1 + exit 1 + 'remove_tmp_' + '__st=1' + 'cleanup_' + ':' + cd '/tmp/grep-2.20.83-06900/tests' + chmod -R 'u+rwx' '/tmp/grep-2.20.83-06900/tests/gt-symlink.yKU9' + rm -rf '/tmp/grep-2.20.83-06900/tests/gt-symlink.yKU9' + exit 1 FAIL symlink (exit status: 1)