nancy.liao
2025-05-29 8d405b265285c368df2e9cf1c14acee7532e0ee7
test/functional/generate-license.cpp
@@ -15,10 +15,11 @@
#include <licensecc_properties_test.h>
#include <licensecc_properties.h>
#include "../../src/library/base/base.h"
#include"licensecc/licensecc.h"
#include "../../src/library/ini/SimpleIni.h"
#include "generate-license.h"
#include "../src/library/base/file_utils.hpp"
namespace fs = boost::filesystem;
using namespace std;
@@ -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_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();