Skip to content

Commit

Permalink
use tmp dir as test dir
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir committed Dec 20, 2024
1 parent cf2e4bc commit c0b684e
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ BOOST_AUTO_TEST_CASE(Validate_ValidConstraints)

BOOST_AUTO_TEST_CASE(LoadConstraintsFromIniFile_ValidFile)
{
std::filesystem::path testPath = "test_data";
std::filesystem::path testPath = getFolder() / "test_data";
std::filesystem::create_directory(testPath);

std::ofstream iniFile(testPath / "additional-constraints.ini");
Expand Down Expand Up @@ -572,7 +572,7 @@ BOOST_AUTO_TEST_CASE(LoadConstraintsFromIniFile_ValidFile)

BOOST_AUTO_TEST_CASE(LoadConstraintsFromIniFile_InvalidHours)
{
std::filesystem::path testPath = "test_data";
std::filesystem::path testPath = getFolder() / "test_data";
std::filesystem::create_directory(testPath);

std::ofstream iniFile(testPath / "additional-constraints.ini");
Expand All @@ -596,7 +596,7 @@ BOOST_AUTO_TEST_CASE(LoadConstraintsFromIniFile_InvalidHours)

BOOST_AUTO_TEST_CASE(LoadConstraintsFromIniFile_ValidHoursFormats)
{
std::filesystem::path testPath = "test_data";
std::filesystem::path testPath = getFolder() / "test_data";
std::filesystem::create_directory(testPath);

std::ofstream iniFile(testPath / "additional-constraints.ini");
Expand Down Expand Up @@ -627,7 +627,7 @@ BOOST_AUTO_TEST_CASE(LoadConstraintsFromIniFile_MissingFile)

BOOST_AUTO_TEST_CASE(LoadConstraintsFromIniFile_InvalidConstraint)
{
std::filesystem::path testPath = "test_data";
std::filesystem::path testPath = getFolder() / "test_data";
std::filesystem::create_directory(testPath);

std::ofstream iniFile(testPath / "additional-constraints.ini");
Expand All @@ -651,7 +651,7 @@ BOOST_AUTO_TEST_CASE(LoadConstraintsFromIniFile_InvalidConstraint)

BOOST_AUTO_TEST_CASE(LoadConstraintsFromIniFile_ValidRhs)
{
std::filesystem::path testPath = "test_data";
std::filesystem::path testPath = getFolder() / "test_data";
std::filesystem::create_directory(testPath);

std::ofstream iniFile(testPath / "additional-constraints.ini");
Expand Down Expand Up @@ -689,7 +689,7 @@ BOOST_AUTO_TEST_CASE(LoadConstraintsFromIniFile_ValidRhs)

BOOST_AUTO_TEST_CASE(LoadConstraintsFromIniFile_MissingRhsFile)
{
std::filesystem::path testPath = "test_data";
std::filesystem::path testPath = getFolder() / "test_data";
std::filesystem::create_directory(testPath);

std::ofstream iniFile(testPath / "additional-constraints.ini");
Expand Down Expand Up @@ -717,7 +717,7 @@ BOOST_AUTO_TEST_CASE(LoadConstraintsFromIniFile_MissingRhsFile)

BOOST_AUTO_TEST_CASE(LoadConstraintsFromIniFile_MalformedRhsFile)
{
std::filesystem::path testPath = "test_data";
std::filesystem::path testPath = getFolder() / "test_data";
std::filesystem::create_directory(testPath);

std::ofstream iniFile(testPath / "additional-constraints.ini");
Expand Down Expand Up @@ -745,7 +745,7 @@ BOOST_AUTO_TEST_CASE(LoadConstraintsFromIniFile_MalformedRhsFile)

BOOST_AUTO_TEST_CASE(LoadConstraintsFromIniFile_IncompleteRhsFile)
{
std::filesystem::path testPath = "test_data";
std::filesystem::path testPath = getFolder() / "test_data";
std::filesystem::create_directory(testPath);

std::ofstream iniFile(testPath / "additional-constraints.ini");
Expand Down

0 comments on commit c0b684e

Please sign in to comment.