From: Gaius Mulley Date: Tue, 13 May 2025 12:35:00 +0000 (+0100) Subject: PR modula2/120188: Use existing test for plugin X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1f94e79dbcfa4b33267db27780870ea7810cd21;p=thirdparty%2Fgcc.git 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 --- 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 8a41ff8bde4..6ddf2d53ed6 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 }