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

subversion at boxbackup.org subversion at boxbackup.org
Thu Aug 6 22:20:40 BST 2015


Author: chris
Date: 2015-08-06 21:20:40 +0000 (Thu, 06 Aug 2015)
New Revision: 3615

Modified:
   box/trunk/lib/backupstore/StoreTestUtils.h
Log:
Improve error message when TEST_PROTOCOL_ERROR_OR() fails.

The protocol command didn't succeed, it just returned a result with an
unexpected type, so make the failure message reflect that and give details
of the response actually received, to help with debugging.

Modified: box/trunk/lib/backupstore/StoreTestUtils.h
===================================================================
--- box/trunk/lib/backupstore/StoreTestUtils.h	2015-08-06 20:00:05 UTC (rev 3614)
+++ box/trunk/lib/backupstore/StoreTestUtils.h	2015-08-06 21:20:40 UTC (rev 3615)
@@ -99,7 +99,9 @@
 		} \
 		else \
 		{ \
-			TEST_FAIL_WITH_MESSAGE("command returned success"); \
+			TEST_FAIL_WITH_MESSAGE("command did not return an error, but a " \
+				"response of type " << type << ", subtype " << subtype << \
+				" instead"); \
 			or_statements; \
 		} \
 	}




More information about the Boxbackup-commit mailing list