]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Fix test requirements: Adjust 'gcc.dg/plugin/diagnostic-test-paths-4.py'
authorThomas Schwinge <tschwinge@baylibre.com>
Fri, 8 May 2026 07:17:30 +0000 (09:17 +0200)
committerThomas Schwinge <tschwinge@baylibre.com>
Fri, 8 May 2026 07:20:42 +0000 (09:20 +0200)
Recent commit 4468e0da6e58f017faef1f248b4d1c4e27423b91
"testsuite: Fix test requirements" added a 'dg-require-effective-target signal'
line to 'gcc.dg/plugin/diagnostic-test-paths-4.c', which regressed:

    PASS: gcc.dg/plugin/diagnostic-test-paths-4.c -fplugin=./diagnostic_plugin_test_paths.so  (test for warnings, line [-13)-]{+14)+}
    PASS: gcc.dg/plugin/diagnostic-test-paths-4.c -fplugin=./diagnostic_plugin_test_paths.so  expected multiline pattern lines [-33-83-]{+34-84+}
    PASS: gcc.dg/plugin/diagnostic-test-paths-4.c -fplugin=./diagnostic_plugin_test_paths.so (test for excess errors)
    [-PASS:-]{+FAIL:+} gcc.dg/plugin/diagnostic-test-paths-4.c [-diagnostic-test-paths-4.py::test_path-]{+diagnostic-test-paths-4.py::test_paths - AssertionErro+}

..., as the latter file needs to be updated accordingly.

gcc/testsuite/
* gcc.dg/plugin/diagnostic-test-paths-4.py: Adjust.

gcc/testsuite/gcc.dg/plugin/diagnostic-test-paths-4.py

index d2bc67c52a29c8632330fb5b3db27d71f3093d76..ece5b7d849e67035b5eb7514f505590d804e81b4 100644 (file)
@@ -19,7 +19,7 @@ def test_paths(html_tree):
 
     quoted_src_tr = rows[0]
     assert_quoted_line(quoted_src_tr,
-                       '   13', '  fprintf(stderr, "LOG: %s", msg); /* { dg-warning "call to \'fprintf\' from within signal handler" } */')
+                       '   14', '  fprintf(stderr, "LOG: %s", msg); /* { dg-warning "call to \'fprintf\' from within signal handler" } */')
     
     annotation_tr = rows[1]
     assert_annotation_line(annotation_tr,