From 2d75b7944990f1ce80b3847be1f8dff09df82dad Mon Sep 17 00:00:00 2001 From: Victor Toofic <toofics@users.noreply.github.com> Date: ćšć, 20 5æ 2021 00:04:08 +0800 Subject: [PATCH] - use CMake PROJECT_DESCRIPTION var instead to be able to build with cmake < 3.8 (#118) --- test/functional/generate-license.cpp | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/functional/generate-license.cpp b/test/functional/generate-license.cpp index ae42689..a1a760a 100644 --- a/test/functional/generate-license.cpp +++ b/test/functional/generate-license.cpp @@ -43,16 +43,16 @@ ss << " --" PARAM_LICENSE_OUTPUT " " << license_fname_s; ss << " --" PARAM_PROJECT_FOLDER " " << LCC_TEST_LICENSES_PROJECT; - for (int i = 0; i < other_args.size(); i++) { + for (size_t i = 0; i < other_args.size(); i++) { ss << " " << other_args[i]; } cout << "executing :" << ss.str() << endl; const int retCode = std::system(ss.str().c_str()); - BOOST_CHECK_EQUAL(retCode, 0); - BOOST_ASSERT_MSG(fs::exists(license_fname), "license exists"); + BOOST_REQUIRE_EQUAL(retCode, 0); + BOOST_REQUIRE_MESSAGE(fs::exists(license_fname), "license exists"); CSimpleIniA ini; const SI_Error rc = ini.LoadFile(license_fname.c_str()); - BOOST_CHECK_GE(rc, 0); + BOOST_REQUIRE_GE(rc, 0); const int sectionSize = ini.GetSectionSize(LCC_PROJECT_NAME); BOOST_CHECK_GT(sectionSize, 0); return license_fname.string(); -- Gitblit v1.9.1