[Box Backup-commit] COMMIT r1542 - box/chris/general/test/bbackupd

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Sat Apr 21 19:58:27 BST 2007


Author: chris
Date: 2007-04-21 19:58:27 +0100 (Sat, 21 Apr 2007)
New Revision: 1542

Modified:
   box/chris/general/test/bbackupd/testbbackupd.cpp
Log:
Unix compile fix: #ifdef out set_file_time on all platforms except Win32.

Create TestDir1 with a better mode to make it readable.


Modified: box/chris/general/test/bbackupd/testbbackupd.cpp
===================================================================
--- box/chris/general/test/bbackupd/testbbackupd.cpp	2007-04-21 18:48:25 UTC (rev 1541)
+++ box/chris/general/test/bbackupd/testbbackupd.cpp	2007-04-21 18:58:27 UTC (rev 1542)
@@ -572,6 +572,7 @@
 	TestRemoteProcessMemLeaks("bbackupctl.memleaks");
 }
 
+#ifdef WIN32
 bool set_file_time(const char* filename, FILETIME creationTime, 
 	FILETIME lastModTime, FILETIME lastAccessTime)
 {
@@ -586,6 +587,7 @@
 	TEST_THAT(CloseHandle(handle));
 	return success;
 }
+#endif
 
 void intercept_setup_delay(const char *filename, unsigned int delay_after, 
 	int delay_ms, int syscall_to_delay);
@@ -759,7 +761,7 @@
 
 	// unpack the files for the initial test
 	TEST_THAT(::system("rm -rf testfiles/TestDir1") == 0);
-	TEST_THAT(::mkdir("testfiles/TestDir1", 0) == 0);
+	TEST_THAT(::mkdir("testfiles/TestDir1", 0777) == 0);
 
 	#ifdef WIN32
 		TEST_THAT(::system("tar xzvf testfiles/spacetest1.tgz "




More information about the Boxbackup-commit mailing list