From 82d06948627487340e3108f3512dfdf90666858e Mon Sep 17 00:00:00 2001 From: Iain Douglas Date: Nov 27 2012 22:28:38 +0000 Subject: Added code to clean up the temporary files we use for testing --- diff --git a/tests/p_diffutils/10-cmp-tests b/tests/p_diffutils/10-cmp-tests index 1844bd1..76504b0 100755 --- a/tests/p_diffutils/10-cmp-tests +++ b/tests/p_diffutils/10-cmp-tests @@ -15,7 +15,10 @@ t_Log "Basic Check" cmp -v &>/dev/null || ExitFail FILE=/var/tmp/diffutils +# Cleanup just in case we exited without doing so earlier. +rm ${FILE}a ${FILE}b &>/dev/null +# Create some files to work with cat << EOF >${FILE}a This is some text to play with EOF @@ -54,3 +57,4 @@ cmp -s ${FILE}a ${FILE}b | wc -m | grep -q "^0" || ExitFail cmp -i 16 -s ${FILE}a ${FILE}b t_CheckExitStatus $? +rm ${FILE}a ${FILE}b &>/dev/null