From: Thomas Schwinge Date: Fri, 8 May 2026 07:17:30 +0000 (+0200) Subject: testsuite: Fix test requirements: Adjust 'gcc.dg/plugin/diagnostic-test-paths-4.py' X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca21ad4ae39fc4a990d02201d3ef3fb3e37f8b35;p=thirdparty%2Fgcc.git testsuite: Fix test requirements: Adjust 'gcc.dg/plugin/diagnostic-test-paths-4.py' 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. --- diff --git a/gcc/testsuite/gcc.dg/plugin/diagnostic-test-paths-4.py b/gcc/testsuite/gcc.dg/plugin/diagnostic-test-paths-4.py index d2bc67c52a2..ece5b7d849e 100644 --- a/gcc/testsuite/gcc.dg/plugin/diagnostic-test-paths-4.py +++ b/gcc/testsuite/gcc.dg/plugin/diagnostic-test-paths-4.py @@ -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,