]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR modula2/120188: Use existing test for plugin
authorGaius Mulley <gaiusmod2@gmail.com>
Tue, 13 May 2025 12:35:00 +0000 (13:35 +0100)
committerGaius Mulley <gaiusmod2@gmail.com>
Tue, 13 May 2025 12:35:00 +0000 (13:35 +0100)
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 <gaiusmod2@gmail.com>
gcc/testsuite/gm2.dg/doc/examples/plugin/fail/doc-examples-plugin-fail.exp

index 8a41ff8bde4c0a2474f0f0b77d33c99d02076f4d..6ddf2d53ed655d7360aa9a26a3287052ad5b30f5 100644 (file)
@@ -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
 }