]> granicus.if.org Git - graphviz/commitdiff
tests: use the AUTO_NAME macro in all tests
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Wed, 21 Sep 2022 16:35:17 +0000 (18:35 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Thu, 22 Sep 2022 08:21:14 +0000 (10:21 +0200)
This macro was mistakenly not used when the
test_min_edge_node_overlap_polygon_node_shapes and
test_max_edge_node_overlap_polygon_node_shapes tests were introduced.

This ensures that the generated artifact file names begin with the
same name as the test case file (thanks @smattr).

tests/test_max_edge_node_overlap_polygon_node_shapes.cpp
tests/test_min_edge_node_overlap_polygon_node_shapes.cpp

index 2a20a0d6ae05af5bbfe7af0f4fde9c15747a38b5..692cc16c37a070e07227c3d3d0d5338dad9b1f2d 100644 (file)
@@ -25,8 +25,7 @@ TEST_CASE(
       .check_min_edge_stem_arrow_overlap = false,
   };
 
-  const auto filename_base =
-      fmt::format("test_edge_node_overlap_polygon_node_shape_{}", shape);
+  const auto filename_base = fmt::format("{}_{}", AUTO_NAME(), shape);
 
   test_edge_node_overlap(graph_options, check_options,
                          {.filename_base = filename_base});
index 7115e8a90c5c2696c77d903443cbe792e63745d1..11d8d1b9a8d4eab984f7588e524da8eb64236338 100644 (file)
@@ -24,8 +24,7 @@ TEST_CASE("Minimum edge and node overlap for polygon node shapes",
       .check_min_edge_stem_arrow_overlap = false,
   };
 
-  const auto filename_base =
-      fmt::format("test_max_edge_node_overlap_polygon_node_shape_{}", shape);
+  const auto filename_base = fmt::format("{}_{}", AUTO_NAME(), shape);
 
   test_edge_node_overlap(graph_options, check_options,
                          {.filename_base = filename_base});