https://gcc.gnu.org/g:c220b8e7b422ed04b6aaa1b9243b550df913f476
commit r15-9673-gc220b8e7b422ed04b6aaa1b9243b550df913f476 Author: Gaius Mulley <gaiusm...@gmail.com> Date: Tue May 13 16:51:06 2025 +0100 [PATCH] PR modula2/120188: Use existing test for plugin This is a cleanup patch which to use the existing plugin test rather than check the configure build options. gcc/testsuite/ChangeLog: PR modula2/120188 * gm2.dg/doc/examples/plugin/fail/doc-examples-plugin-fail.exp: Remove call to gm2-dg-frontend-configure-check and replace with tests for whether plugin variables exist. (cherry picked from commit f1f94e79dbcfa4b33267db27780870ea7810cd21) Signed-off-by: Gaius Mulley <gaiusm...@gmail.com> Diff: --- .../gm2.dg/doc/examples/plugin/fail/doc-examples-plugin-fail.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gm2.dg/doc/examples/plugin/fail/doc-examples-plugin-fail.exp b/gcc/testsuite/gm2.dg/doc/examples/plugin/fail/doc-examples-plugin-fail.exp index 8a41ff8bde4c..6ddf2d53ed65 100644 --- a/gcc/testsuite/gm2.dg/doc/examples/plugin/fail/doc-examples-plugin-fail.exp +++ b/gcc/testsuite/gm2.dg/doc/examples/plugin/fail/doc-examples-plugin-fail.exp @@ -11,7 +11,7 @@ gm2_init_pim4 $srcdir/$subdir dg-init # If the --enable-plugin has not been enabled during configure, bail. -if { ![gm2-dg-frontend-configure-check "enable-plugin" ] } { +if { ![info exists TESTING_IN_BUILD_TREE] || ![info exists ENABLE_PLUGIN] } { return }