diff --git a/test/test_parser2.hpp b/test/test_parser2.hpp index ef58585..0706c1b 100644 --- a/test/test_parser2.hpp +++ b/test/test_parser2.hpp @@ -10,6 +10,10 @@ #include #include +#ifndef SEGMENT_NAME +#error "SEGMENT_NAME must be defined" +#endif + // parser tests v2 namespace { @@ -304,7 +308,7 @@ void test_data_combinations(const std::vector& input_data, return; } - unique_file_name f{"test_parser2"}; + unique_file_name f{"test_parser2" + std::string{SEGMENT_NAME}}; std::vector> expected_data; std::vector header; std::vector field_header; diff --git a/test/test_parser2_segment1.cpp b/test/test_parser2_segment1.cpp index 435d1f1..6f1ac7a 100644 --- a/test/test_parser2_segment1.cpp +++ b/test/test_parser2_segment1.cpp @@ -1,3 +1,4 @@ +#define SEGMENT_NAME "segment1" #include "test_parser2.hpp" TEST_CASE("parser test various cases version 2 segment 1") { diff --git a/test/test_parser2_segment2.cpp b/test/test_parser2_segment2.cpp index 70ffccd..5b5cc2c 100644 --- a/test/test_parser2_segment2.cpp +++ b/test/test_parser2_segment2.cpp @@ -1,3 +1,4 @@ +#define SEGMENT_NAME "segment2" #include "test_parser2.hpp" TEST_CASE("parser test various cases version 2 segment 2") { diff --git a/test/test_parser2_segment3.cpp b/test/test_parser2_segment3.cpp index 7818cdc..776f49a 100644 --- a/test/test_parser2_segment3.cpp +++ b/test/test_parser2_segment3.cpp @@ -1,3 +1,4 @@ +#define SEGMENT_NAME "segment3" #include "test_parser2.hpp" TEST_CASE("parser test various cases version 2 segment 3") { diff --git a/test/test_parser2_segment4.cpp b/test/test_parser2_segment4.cpp index e8caad5..4658337 100644 --- a/test/test_parser2_segment4.cpp +++ b/test/test_parser2_segment4.cpp @@ -1,3 +1,4 @@ +#define SEGMENT_NAME "segment4" #include "test_parser2.hpp" TEST_CASE("parser test various cases version 2 segment 4") {