]> granicus.if.org Git - graphviz/commitdiff
tests: use the AUTO_NAME macro in all tests
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Fri, 7 Oct 2022 12:16:47 +0000 (14:16 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Fri, 7 Oct 2022 12:18:23 +0000 (14:18 +0200)
This macro was mistakenly not used when the
test_edge_node_overlap_all_primitive_edge_arrows,
test_edge_node_overlap_normal_and_inv_edge_arrows and
test_edge_node_overlap_normal_and_inv_edge_arrows_all_modifiers tests
were introduced.

This ensures that the generated artifact file names begin with the
same name as the test case file.

tests/test_edge_node_overlap_all_primitive_edge_arrows.cpp
tests/test_edge_node_overlap_normal_and_inv_edge_arrows.cpp
tests/test_edge_node_overlap_normal_and_inv_edge_arrows_all_modifiers.cpp

index 74663a5d01c745c372df9fd8c55fe86646d0322e..b1225cc2d187b361b3e6efb19c62e64a29bd28d4 100644 (file)
@@ -12,8 +12,7 @@ TEST_CASE("Edge node overlap for all primitive arrow shapes",
           "[!shouldfail] An edge connected to a node shall touch that node and "
           "not overlap it too much, regardless of the primitive arrow shape") {
 
-  std::string filename_base =
-      "test_edge_node_overlap_all_primitive_edge_arrows";
+  std::string filename_base = AUTO_NAME();
 
   const auto primitive_arrow_shape =
       GENERATE(from_range(all_primitive_arrow_shapes));
index f96a25a69e27785fa6545e1d15873f0eb10426ef..e4e91099753b8fbd40f763c5fd105555e7926ef4 100644 (file)
@@ -10,7 +10,7 @@ TEST_CASE("Edge node overlap for normal and inv arrow",
           "not overlap it too much, regardless of if the arrow shape is "
           "'normal' or 'inv'") {
 
-  std::string filename_base = "test_edge_node_overlap_all_edge_arrows";
+  std::string filename_base = AUTO_NAME();
 
   const std::string_view primitive_arrow_shape = GENERATE("normal", "inv");
 
index 584e5b1ab14242ddfe22080d7881f452cbdf9511..22a2ce84f11d1f7df0a61dc5fa16da36c8475e9e 100644 (file)
@@ -14,7 +14,7 @@ TEST_CASE(
     "overlap it too much, regardless of if the arrow shape is 'normal' or "
     "'inv' and which arrrow shape modifier is used") {
 
-  std::string filename_base = "test_edge_node_overlap_all_edge_arrows";
+  std::string filename_base = AUTO_NAME();
 
   const std::string_view primitive_arrow_shape = GENERATE("normal", "inv");
   INFO("Edge primitive arrow shape: " << primitive_arrow_shape);