scstadmin tests: Remove temporary files after tests 05 and 06 have finished

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7578 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2018-11-01 04:37:45 +00:00
parent 3983e066ad
commit 496edfcb0b
2 changed files with 2 additions and 0 deletions

View File

@@ -52,6 +52,7 @@ sub testRestoreConfig {
my $compare_result = system("diff -u $tmpfilename2 $expected >$diff");
ok($compare_result, 0);
if ($compare_result == 0) {
unlink($diff);
unlink($tmpfilename2);
unlink($tmpfilename1);
}

View File

@@ -73,6 +73,7 @@ sub attributeTest {
my $compare_result = system("diff -u $tmpfilename2 $expected >$diff");
ok($compare_result, 0);
if ($compare_result == 0) {
unlink($diff);
unlink($tmpfilename2);
unlink($tmpfilename1);
}