Date: Sat, 9 Sep 2017 05:50:48 +0000 (UTC) From: Ngie Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r323345 - head/usr.bin/tail/tests Message-ID: <201709090550.v895omwQ043970@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Sat Sep 9 05:50:47 2017 New Revision: 323345 URL: https://svnweb.freebsd.org/changeset/base/323345 Log: Check result of seq call and save output via atf_check -o This ensures that seq outputting to ints will not fail as silently if there's an error. Modified: head/usr.bin/tail/tests/tail_test.sh Modified: head/usr.bin/tail/tests/tail_test.sh ============================================================================== --- head/usr.bin/tail/tests/tail_test.sh Sat Sep 9 05:42:23 2017 (r323344) +++ head/usr.bin/tail/tests/tail_test.sh Sat Sep 9 05:50:47 2017 (r323345) @@ -224,7 +224,7 @@ broken_pipe_body() { atf_expect_fail "Can't seem to get testcase to work in test environment. Reproduces easily in interactive shell." - seq -f '%128g' 1 1000 > ints + atf_check -o save:ints seq -f '%128g' 1 1000 atf_check -s exit:1 -o ignore -e "inline:tail: stdout" tail -n 856 ints | awk '{ exit }' }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709090550.v895omwQ043970>