[Box Backup-commit] COMMIT r3359 - box/trunk/lib/backupstore

subversion at boxbackup.org subversion at boxbackup.org
Fri Aug 15 23:47:33 BST 2014


Author: chris
Date: 2014-08-15 23:47:32 +0100 (Fri, 15 Aug 2014)
New Revision: 3359

Modified:
   box/trunk/lib/backupstore/StoreTestUtils.h
Log:
Compile fix for backwards compatibility code.

Modified: box/trunk/lib/backupstore/StoreTestUtils.h
===================================================================
--- box/trunk/lib/backupstore/StoreTestUtils.h	2014-08-15 22:47:30 UTC (rev 3358)
+++ box/trunk/lib/backupstore/StoreTestUtils.h	2014-08-15 22:47:32 UTC (rev 3359)
@@ -83,7 +83,7 @@
 #define TEST_PROTOCOL_ERROR_OR(protocol, error, or_statements) \
 	{ \
 		int type, subtype; \
-		protocol.GetLastError(type, subtype); \
+		(protocol).GetLastError(type, subtype); \
 		if (type == BackupProtocolError::ErrorType) \
 		{ \
 			TEST_EQUAL_LINE(BackupProtocolError::error, subtype, \
@@ -102,7 +102,7 @@
 	} 
 
 #define TEST_COMMAND_RETURNS_ERROR_OR(protocol, command, error, or_statements) \
-	TEST_CHECK_THROWS_OR(protocol . command, ConnectionException, \
+	TEST_CHECK_THROWS_OR((protocol) . command, ConnectionException, \
 		Protocol_UnexpectedReply, or_statements); \
 	TEST_PROTOCOL_ERROR_OR(protocol, error, or_statements)
 




More information about the Boxbackup-commit mailing list