https://gcc.gnu.org/g:f1f94e79dbcfa4b33267db27780870ea7810cd21
commit r16-595-gf1f94e79dbcfa4b33267db27780870ea7810cd21 Author: Gaius Mulley <gaiusm...@gmail.com> Date: Tue May 13 13:35:00 2025 +0100 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. 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 }