[Box Backup-dev] COMMIT r920 - box/chris/merge/test/backupstore

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Fri Sep 1 09:05:29 BST 2006


Author: chris
Date: 2006-09-01 09:05:29 +0100 (Fri, 01 Sep 2006)
New Revision: 920

Modified:
   box/chris/merge/test/backupstore/testbackupstore.cpp
Log:
(refs #3)

Close before unlink

Check that unlink succeeds


Modified: box/chris/merge/test/backupstore/testbackupstore.cpp
===================================================================
--- box/chris/merge/test/backupstore/testbackupstore.cpp	2006-09-01 08:03:32 UTC (rev 919)
+++ box/chris/merge/test/backupstore/testbackupstore.cpp	2006-09-01 08:05:29 UTC (rev 920)
@@ -425,7 +425,8 @@
 	}
 	
 	free(data);
-	unlink("testfiles/test_download");
+	in.Close();
+	TEST_THAT(unlink("testfiles/test_download") == 0);
 }
 
 void test_everything_deleted(BackupProtocolClient &protocol, int64_t DirID)




More information about the Boxbackup-dev mailing list