[Box Backup-commit] COMMIT r1110 - box/trunk/test/backupstorepatch

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Fri Oct 27 20:03:19 BST 2006


Author: chris
Date: 2006-10-27 20:03:19 +0100 (Fri, 27 Oct 2006)
New Revision: 1110

Modified:
   box/trunk/test/backupstorepatch/testbackupstorepatch.cpp
Log:
Use RunCommand instead of ::system to convert UNIX paths to native.


Modified: box/trunk/test/backupstorepatch/testbackupstorepatch.cpp
===================================================================
--- box/trunk/test/backupstorepatch/testbackupstorepatch.cpp	2006-10-27 19:02:38 UTC (rev 1109)
+++ box/trunk/test/backupstorepatch/testbackupstorepatch.cpp	2006-10-27 19:03:19 UTC (rev 1110)
@@ -317,7 +317,10 @@
 			"testfiles/clientTrustedCAs.pem");
 
 	// Create an account
-	TEST_THAT_ABORTONFAIL(::system("../../bin/bbstoreaccounts/bbstoreaccounts -c testfiles/bbstored.conf create 01234567 0 30000B 40000B") == 0);
+	TEST_THAT_ABORTONFAIL(RunCommand(
+		"../../bin/bbstoreaccounts/bbstoreaccounts "
+		"-c testfiles/bbstored.conf "
+		"create 01234567 0 30000B 40000B") == 0);
 	TestRemoteProcessMemLeaks("bbstoreaccounts.memleaks");
 
 	// Create test files




More information about the Boxbackup-commit mailing list