@@ -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
+# Tidy up.
+rm -f $tempfile $destfile1 $destfile2
@@ -72,10 +72,6 @@ rm -f $localmes
./logger_example -c stdout -s warn $localmes | cut -d' ' -f3- | diff $tempfile -
passfail $?
-# Tidy up.
@@ -84,4 +80,7 @@ else
@@ -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 -
@@ -87,4 +85,7 @@ else