gcontini
2019-12-08 73e1eb0165c983830831d84ac1b92af890db27db
fix possible return value
1个文件已修改
4 ■■■ 已修改文件
test/library/LicenseReader_test.cpp 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
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");
}
/**