Commit 8a83c13c authored by Stephen Morris's avatar Stephen Morris
Browse files

[trac976] Consistently remove temporary files created by the tests

parent a9d0e238
......@@ -55,8 +55,6 @@ rm -f $tempfile
./logger_example -c stderr -s error 1> $tempfile
passfail 0
rm -f $tempfile
if [ $failcount -eq 0 ]; then
echo "PASS: $testname"
elif [ $failcount -eq 1 ]; then
......@@ -65,4 +63,7 @@ else
echo "FAIL: $testname - $failcount tests failed"
fi
# Tidy up
rm -f $tempfile
exit $failcount
......@@ -82,4 +82,7 @@ else
echo "FAIL: $testname - $failcount tests failed"
fi
# Tidy up.
rm -f $tempfile $destfile1 $destfile2
exit $failcount
......@@ -72,10 +72,6 @@ rm -f $localmes
./logger_example -c stdout -s warn $localmes | cut -d' ' -f3- | diff $tempfile -
passfail $?
# Tidy up.
rm -f $tempfile
if [ $failcount -eq 0 ]; then
echo "PASS: $testname"
elif [ $failcount -eq 1 ]; then
......@@ -84,4 +80,7 @@ else
echo "FAIL: $testname - $failcount tests failed"
fi
# Tidy up.
rm -f $tempfile
exit $failcount
......@@ -77,8 +77,6 @@ DEBUG [example.beta] MSG_BADSEVERITY, unrecognized log severity: beta/25
./logger_example -c stdout -s debug -d 25 | cut -d' ' -f3- | diff $tempfile -
passfail $?
rm -f $tempfile
if [ $failcount -eq 0 ]; then
echo "PASS: $testname"
elif [ $failcount -eq 1 ]; then
......@@ -87,4 +85,7 @@ else
echo "FAIL: $testname - $failcount tests failed"
fi
# Tidy up
rm -f $tempfile
exit $failcount
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment