Fixes memory leak in EN_addnode() (#455)

* Fixing memory leak in EN_addnode()

* Separating test_net_builder from test_toolkit

Making test_net_builder a standalone test

* Removing BOOST_TEST_MAIN

* Work in progress
This commit is contained in:
Michael Tryby
2019-04-11 18:04:20 -04:00
committed by GitHub
parent 8b4727eac5
commit 9c4665a661
10 changed files with 59 additions and 29 deletions

View File

@@ -54,6 +54,20 @@ BOOST_AUTO_TEST_CASE (test_open_close)
EN_deleteproject(&ph);
}
BOOST_AUTO_TEST_CASE(test_init_close)
{
EN_Project ph = NULL;
EN_createproject(&ph);
int error = EN_init(ph, DATA_PATH_RPT, DATA_PATH_OUT, EN_GPM, EN_HW);
BOOST_REQUIRE(error == 0);
error = EN_close(ph);
BOOST_REQUIRE(error == 0);
EN_deleteproject(&ph);
}
BOOST_AUTO_TEST_CASE(test_save)
{
int error;