From f1f94e79dbcfa4b33267db27780870ea7810cd21 Mon Sep 17 00:00:00 2001 From: Gaius Mulley Date: Tue, 13 May 2025 13:35:00 +0100 Subject: [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. Signed-off-by: Gaius Mulley --- .../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 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 } -- 2.47.2