From b7a7cdc5ee878fce91176e620fb95fd62c275127 Mon Sep 17 00:00:00 2001 From: Lew Rossman Date: Tue, 27 Nov 2018 16:45:13 -0500 Subject: [PATCH] Another update to test_setid.cpp --- tests/test_setid.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/test_setid.cpp b/tests/test_setid.cpp index a1b912e..c801a68 100644 --- a/tests/test_setid.cpp +++ b/tests/test_setid.cpp @@ -25,14 +25,15 @@ BOOST_AUTO_TEST_CASE(test_setid) string path_inp(DATA_PATH_INP); string path_rpt(DATA_PATH_RPT); string path_out(DATA_PATH_OUT); - + string inp_save("net1_setid.inp"); + int error = 0; int index; EN_Project ph = NULL; EN_createproject(&ph); - error = EN_open(ph, path_inp.c_str(), path_rpt.c_str(), ""); + error = EN_open(ph, path_inp.c_str(), path_rpt.c_str(), path_out.c_str()); BOOST_REQUIRE(error == 0); // Test of illegal node name change @@ -56,7 +57,7 @@ BOOST_AUTO_TEST_CASE(test_setid) BOOST_REQUIRE(error == 0); // Save the project - error = EN_saveinpfile(ph, "net1_setid.inp"); + error = EN_saveinpfile(ph, inp_save.c_str()); BOOST_REQUIRE(error == 0); error = EN_close(ph); @@ -66,7 +67,7 @@ BOOST_AUTO_TEST_CASE(test_setid) // Re-open the saved project EN_createproject(&ph); - error = EN_open(ph, "net1_setid.inp", path_rpt.c_str(), ""); + error = EN_open(ph, inp_save.c_str(), path_rpt.c_str(), path_out.c_str()); BOOST_REQUIRE(error == 0); // Check that 3rd node has its new name