From 5c0be6ec048f0d466c911e6362f1e9a883749cec Mon Sep 17 00:00:00 2001 From: Gabriele Contini <contini.mailing@gmail.com> Date: 周日, 03 5月 2020 21:44:03 +0800 Subject: [PATCH] issue #77 --- 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