From e896d5217cbd2c92a85137000601e52a7a0f5de3 Mon Sep 17 00:00:00 2001 From: gcontini <1121667+gcontini@users.noreply.github.com> Date: 周日, 10 5月 2020 15:30:13 +0800 Subject: [PATCH] fix #95 (tentative) --- test/functional/generate-license.cpp | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/functional/generate-license.cpp b/test/functional/generate-license.cpp index 98cd979..ae42689 100644 --- a/test/functional/generate-license.cpp +++ b/test/functional/generate-license.cpp @@ -13,6 +13,7 @@ #include <iostream> #include <licensecc_properties_test.h> +#include <licensecc_properties.h> #include "../../src/library/base/base.h" #include "../../src/library/ini/SimpleIni.h" @@ -48,11 +49,11 @@ cout << "executing :" << ss.str() << endl; const int retCode = std::system(ss.str().c_str()); BOOST_CHECK_EQUAL(retCode, 0); - BOOST_ASSERT(fs::exists(license_fname)); + BOOST_ASSERT_MSG(fs::exists(license_fname), "license exists"); CSimpleIniA ini; const SI_Error rc = ini.LoadFile(license_fname.c_str()); BOOST_CHECK_GE(rc, 0); - const int sectionSize = ini.GetSectionSize("DEFAULT"); + const int sectionSize = ini.GetSectionSize(LCC_PROJECT_NAME); BOOST_CHECK_GT(sectionSize, 0); return license_fname.string(); } -- Gitblit v1.9.1