From 73e1eb0165c983830831d84ac1b92af890db27db Mon Sep 17 00:00:00 2001 From: gcontini <1121667+gcontini@users.noreply.github.com> Date: 周日, 08 12月 2019 18:40:59 +0800 Subject: [PATCH] fix possible return value --- test/library/LicenseReader_test.cpp | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/test/library/LicenseReader_test.cpp b/test/library/LicenseReader_test.cpp index 03ea2e8..e0d32aa 100644 --- a/test/library/LicenseReader_test.cpp +++ b/test/library/LicenseReader_test.cpp @@ -73,7 +73,9 @@ BOOST_CHECK(!registry.isGood()); BOOST_CHECK_EQUAL(0, licenseInfos.size()); BOOST_ASSERT(registry.getLastFailure() != NULL); - BOOST_CHECK_EQUAL(ENVIRONMENT_VARIABLE_NOT_DEFINED, registry.getLastFailure()->event_type); + BOOST_CHECK_MESSAGE((ENVIRONMENT_VARIABLE_NOT_DEFINED == registry.getLastFailure()->event_type) || + (LICENSE_FILE_NOT_FOUND == registry.getLastFailure()->event_type), + "error as expected"); } /** -- Gitblit v1.9.1