Testsuite: Fix test requirements for diagnostic-test-paths-4.py
The testsuite now correctly checks diagnostic paths in the presence of compiler plugins.
A recent change added a ‘dg-require-effective-target signal’ line to ‘gcc.dg/plugin/diagnostic-test-paths-4.c’, which caused a test failure. This commit updates the corresponding Python test file ‘gcc.dg/plugin/diagnostic-test-paths-4.py’ to align with the new test requirements, resolving the regression.
In Details
This commit fixes a regression in the GCC testsuite related to diagnostic messages and compiler plugins. The test 'gcc.dg/plugin/diagnostic-test-paths-4.py' checks the paths reported in diagnostic messages generated by a compiler plugin. A previous commit added a target requirement that the Python code didn't satisfy, leading to failure.
For Context
The GCC testsuite includes tests that verify the correctness of diagnostic messages, such as warnings and errors, produced by the compiler. Some tests involve compiler plugins, which extend the compiler's functionality. This commit updates a test case that checks the file paths reported in diagnostic messages when using a compiler plugin. The update aligns the test with a recent change in target requirements.