[Box Backup-dev] COMMIT r779 - box/chris/general/test/backupdiff

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Sat Aug 19 13:25:52 BST 2006


Author: chris
Date: 2006-08-19 13:25:52 +0100 (Sat, 19 Aug 2006)
New Revision: 779

Modified:
   box/chris/general/test/backupdiff/testbackupdiff.cpp
Log:
* testbackupdiff.cpp
- Added debugging for failure to create sparse file for test


Modified: box/chris/general/test/backupdiff/testbackupdiff.cpp
===================================================================
--- box/chris/general/test/backupdiff/testbackupdiff.cpp	2006-08-11 08:50:28 UTC (rev 778)
+++ box/chris/general/test/backupdiff/testbackupdiff.cpp	2006-08-19 12:25:52 UTC (rev 779)
@@ -71,7 +71,12 @@
 	TEST_THAT(handle != INVALID_HANDLE_VALUE);
 	SetFilePointer(handle, size, NULL, FILE_BEGIN);
 	TEST_THAT(GetLastError() == NO_ERROR);
-	TEST_THAT(SetEndOfFile(handle) == true);
+	bool result = SetEndOfFile(handle);
+	if (!result)
+	{
+		printf("Error %d\n", (int)GetLastError());
+	}
+	TEST_THAT(result == true);
 	TEST_THAT(CloseHandle(handle)  == true);
 	#else
 	int fd = open(filename, O_WRONLY | O_CREAT | O_EXCL, 0600);




More information about the Boxbackup-dev mailing list