From 81afb5a2d918f2de818516520db792c2adeb5879 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 15 Aug 2014 22:47:30 +0000 Subject: Add a TEST_PROTOCOL_ERROR_OR assertion. Similar to TEST_COMMAND_RETURNS_ERROR_OR, but allows any command or sequence to cause the error, without direct access to the command message. Refactor so that TEST_COMMAND_RETURNS_ERROR_OR calls TEST_PROTOCOL_ERROR_OR to make the assertion on the last error seen by the protocol. --- test/bbackupd/testbbackupd.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'test/bbackupd') diff --git a/test/bbackupd/testbbackupd.cpp b/test/bbackupd/testbbackupd.cpp index c25c38a0..d09132cc 100644 --- a/test/bbackupd/testbbackupd.cpp +++ b/test/bbackupd/testbbackupd.cpp @@ -883,6 +883,7 @@ int test_bbackupd() TEST_CHECK_THROWS(ReadDirectory(*client, 0x12345678), ConnectionException, Protocol_UnexpectedReply); + TEST_PROTOCOL_ERROR_OR(*client, Err_DoesNotExist,); } client->QueryFinished(); -- cgit v1.2.3