summaryrefslogtreecommitdiff
path: root/test/backupdiff
diff options
context:
space:
mode:
authorJonathan Morton <chromi@chromatix.org.uk>2005-12-13 01:57:07 +0000
committerJonathan Morton <chromi@chromatix.org.uk>2005-12-13 01:57:07 +0000
commit9cfcd6670158b0075973ce044fe89f87c5012972 (patch)
tree51ebc482164e5900e430c54a74c296f707c86b99 /test/backupdiff
parent62fcbae63de111cd2191cce3af4158af819914ee (diff)
Refined BackupDiff test to delete the 220MB in temporary test files
after use. Should cause much less strain on everyone's disk space.
Diffstat (limited to 'test/backupdiff')
-rw-r--r--test/backupdiff/testbackupdiff.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/backupdiff/testbackupdiff.cpp b/test/backupdiff/testbackupdiff.cpp
index 7845433c..99839bb8 100644
--- a/test/backupdiff/testbackupdiff.cpp
+++ b/test/backupdiff/testbackupdiff.cpp
@@ -489,6 +489,9 @@ int test(int argc, const char *argv[])
encoded->CopyStreamTo(out);
TEST_THAT(time(0) < (beginTime + 20));
}
+ // Remove zero-files to save disk space
+ remove("testfiles/zero.0");
+ remove("testfiles/zero.1");
#if 0
// Code for a nasty real world example! (16Mb files, won't include them in the distribution