From aaaf2579a95a1a368d2b3566ba41b2a18c94c6eb Mon Sep 17 00:00:00 2001 From: brarcher Date: Tue, 17 Dec 2013 16:07:14 +0000 Subject: [PATCH] Always remove test output before running new test Just in case the output is left over from the previous test run git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@885 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- tests/test_log_output.sh | 2 +- tests/test_tap_output.sh | 1 + tests/test_xml_output.sh | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_log_output.sh b/tests/test_log_output.sh index eab83af..b17490b 100755 --- a/tests/test_log_output.sh +++ b/tests/test_log_output.sh @@ -30,7 +30,7 @@ Results for all suites run: fi test_log_output ( ) { - + rm -f ${OUTPUT_FILE} ./ex_log_output${EXEEXT} "${1}" > /dev/null actual=`cat ${OUTPUT_FILE} | tr -d "\r"` if [ x"${expected}" != x"${actual}" ]; then diff --git a/tests/test_tap_output.sh b/tests/test_tap_output.sh index b5fa2df..2672b2f 100755 --- a/tests/test_tap_output.sh +++ b/tests/test_tap_output.sh @@ -38,6 +38,7 @@ not ok 2 - ${SRCDIR}ex_tap_output.c:Core:test_fail: Failure" fi test_tap_output ( ) { + rm -f ${OUTPUT_FILE} ./ex_tap_output${EXEEXT} "${1}" > /dev/null actual_tap=`cat ${OUTPUT_FILE} | tr -d "\r"` expected_tap="${2}" diff --git a/tests/test_xml_output.sh b/tests/test_xml_output.sh index c0e4d22..9bec8de 100755 --- a/tests/test_xml_output.sh +++ b/tests/test_xml_output.sh @@ -141,6 +141,7 @@ expected_xml=" expected_duration_count=8 fi +rm -f ${OUTPUT_FILE} ./ex_xml_output${EXEEXT} > /dev/null actual_xml=`cat ${OUTPUT_FILE} | tr -d "\r" | grep -v \ | grep -v \ | grep -v \` if [ x"${expected_xml}" != x"${actual_xml}" ]; then -- 2.40.0