From 466a2d000ff93d5ae826031c17ff4df03cfb35a8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 23 Feb 2019 14:11:58 +0100 Subject: [PATCH] Use CHECK() in wxURI unit test case This allows the subsequent tests to still run even if one of the tests fails, which is more useful in this test than CPPUNIT_ASSERT_EQUAL(), which maps to REQUIRE() and so stops the test execution as soon as any check fails, because the tests are independent. --- tests/uris/uris.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/uris/uris.cpp b/tests/uris/uris.cpp index 7b88306b58..7ad7189198 100644 --- a/tests/uris/uris.cpp +++ b/tests/uris/uris.cpp @@ -96,7 +96,7 @@ URITestCase::URITestCase() // apply the given accessor to the URI, check that the result is as expected #define URI_ASSERT_PART_EQUAL(uri, expected, accessor) \ - CPPUNIT_ASSERT_EQUAL(expected, wxURI(uri).accessor) + CHECK(wxURI(uri).accessor == expected) #define URI_ASSERT_HOSTTYPE_EQUAL(uri, expected) \ URI_ASSERT_PART_EQUAL((uri), (expected), GetHostType())