From 7c69f31eb6e22bdf4d7ae7b810b966e66baa04c2 Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Sat, 9 Sep 2017 05:50:47 +0000 Subject: [PATCH] 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. --- usr.bin/tail/tests/tail_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/tail/tests/tail_test.sh b/usr.bin/tail/tests/tail_test.sh index dcfd0b2ca78..30507836fa6 100755 --- a/usr.bin/tail/tests/tail_test.sh +++ b/usr.bin/tail/tests/tail_test.sh @@ -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 }' }