From 1ca9efa3c2550e2ccc62056cd1add08e9583deae Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Thu, 15 Dec 2011 23:52:46 +0100 Subject: [PATCH] tests: fix spurious failure in 'color2.test' * tests/color2.test: (expect-make): Add an "expect eof" directive, so that the collected output from the spawned make program will be displayed on stdout, as desired. Since we are at it, also correctly remove a temporary file which we was trying to delete using a wrong filename. Problem introduced in merge `v1.11-1579-g8d3466c', probably by a botched edit or conflict resolution. --- ChangeLog | 11 +++++++++++ tests/color2.test | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 39ab3b16d..2de1e05f9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2011-12-15 Stefano Lattarini + + tests: fix spurious failure in 'color2.test' + * tests/color2.test: (expect-make): Add an "expect eof" directive, + so that the collected output from the spawned make program will be + displayed on stdout, as desired. + Since we are at it, also correctly remove a temporary file which + we was trying to delete using a wrong filename. + Problem introduced in merge `v1.11-1579-g8d3466c', probably by a + botched edit or conflict resolution. + 2011-12-15 Stefano Lattarini tests: fix spurious failure in 'lex3.test' diff --git a/tests/color2.test b/tests/color2.test index 50e6c4729..ab5ab82ae 100755 --- a/tests/color2.test +++ b/tests/color2.test @@ -65,7 +65,7 @@ exit 1 END MAKE=$MAKE expect -f expect-check \ || skip_ "make spawned by expect should have a tty stdout" -rm -f check Makefile +rm -f expect-check Makefile # Do the tests. @@ -161,6 +161,7 @@ test_no_color () cat >expect-make <<'END' eval spawn $env(MAKE) -e check +expect eof END for vpath in false :; do -- 2.47.2