]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Disable regression tests which depend upon plugins (if ENABLE_PLUGINs) is false.
authorGaius Mulley <gaius.mulley@southwales.ac.uk>
Wed, 23 Nov 2022 17:07:34 +0000 (17:07 +0000)
committerGaius Mulley <gaius.mulley@southwales.ac.uk>
Wed, 23 Nov 2022 17:07:34 +0000 (17:07 +0000)
gcc/testsuite/gm2/ChangeLog:

* testsuite/gm2/iso/check/fail/iso-check-fail.exp: Disable test if
plugins have not been built.
* testsuite/gm2/switches/auto-init/fail/switches-auto-init-fail.exp:
Disable test if plugins have not been built.
* testsuite/gm2/switches/check-all/pim2/fail/switches-check-all-pim2-fail.exp:
Disable test if plugins have not been built.
* testsuite/gm2/switches/check-all/plugin/iso/fail/switches-check-all-plugin-iso-fail.exp:
Disable test if plugins have not been built.
* testsuite/gm2/switches/check-all/plugin/pim2/fail/switches-check-all-plugin-pim2-fail.exp:
Disable test if plugins have not been built.

Signed-off-by: Gaius Mulley <gaius.mulley@southwales.ac.uk>
gcc/testsuite/gm2/iso/check/fail/iso-check-fail.exp
gcc/testsuite/gm2/switches/auto-init/fail/switches-auto-init-fail.exp
gcc/testsuite/gm2/switches/check-all/pim2/fail/switches-check-all-pim2-fail.exp
gcc/testsuite/gm2/switches/check-all/plugin/iso/fail/switches-check-all-plugin-iso-fail.exp
gcc/testsuite/gm2/switches/check-all/plugin/pim2/fail/switches-check-all-plugin-pim2-fail.exp

index c00021ccfc64631195971f82cede18abea9c41ac..a519f839f90a5e62510fed1a90879f32b7203243 100644 (file)
 # This file was written by Gaius Mulley (gaius.mulley@southwales.ac.uk)
 # for GNU Modula-2.
 
+load_lib target-supports.exp
+
+global TESTING_IN_BUILD_TREE
+global ENABLE_PLUGIN
+
+# The plugin testcases currently only work when the build tree is available.
+# Also check whether the host supports plugins.
+if { ![info exists TESTING_IN_BUILD_TREE] || ![info exists ENABLE_PLUGIN] } {
+    return
+}
+
 if $tracelevel then {
     strace $tracelevel
 }
index d04dbcbe973855fa27694fb3469835a943c7e01d..c60027ff7516c8e0e8529cbc119298e7321015d7 100644 (file)
 # This file was written by Gaius Mulley (gaius.mulley@southwales.ac.uk)
 # for GNU Modula-2.
 
+load_lib target-supports.exp
+
+global TESTING_IN_BUILD_TREE
+global ENABLE_PLUGIN
+
+# The plugin testcases currently only work when the build tree is available.
+# Also check whether the host supports plugins.
+if { ![info exists TESTING_IN_BUILD_TREE] || ![info exists ENABLE_PLUGIN] } {
+    return
+}
+
 if $tracelevel then {
     strace $tracelevel
 }
index 848ddeea17c7c9579684bb9e0bef286d11139935..3c654ad0b73cd2c98253adcdbfdd08bd7df20439 100644 (file)
 # This file was written by Gaius Mulley (gaius.mulley@southwales.ac.uk)
 # for GNU Modula-2.
 
+load_lib target-supports.exp
+
+global TESTING_IN_BUILD_TREE
+global ENABLE_PLUGIN
+
+# The plugin testcases currently only work when the build tree is available.
+# Also check whether the host supports plugins.
+if { ![info exists TESTING_IN_BUILD_TREE] || ![info exists ENABLE_PLUGIN] } {
+    return
+}
+
 if $tracelevel then {
     strace $tracelevel
 }
index 8efbeb850f673b4b37be3d1a8167a0ffec85e794..84a3f37e2bbb7b4c69a2d32cea6dcc79eb3ab319 100644 (file)
 # This file was written by Gaius Mulley (gaius.mulley@southwales.ac.uk)
 # for GNU Modula-2.
 
+load_lib target-supports.exp
+
+global TESTING_IN_BUILD_TREE
+global ENABLE_PLUGIN
+
+# The plugin testcases currently only work when the build tree is available.
+# Also check whether the host supports plugins.
+if { ![info exists TESTING_IN_BUILD_TREE] || ![info exists ENABLE_PLUGIN] } {
+    return
+}
+
 if $tracelevel then {
     strace $tracelevel
 }
index 22cbf160946bc38884f159e18255285ef045537b..238e5c8af907e3dea3fe690d782043ab9cd47e3e 100644 (file)
 # This file was written by Gaius Mulley (gaius.mulley@southwales.ac.uk)
 # for GNU Modula-2.
 
+load_lib target-supports.exp
+
+global TESTING_IN_BUILD_TREE
+global ENABLE_PLUGIN
+
+# The plugin testcases currently only work when the build tree is available.
+# Also check whether the host supports plugins.
+if { ![info exists TESTING_IN_BUILD_TREE] || ![info exists ENABLE_PLUGIN] } {
+    return
+}
+
 if $tracelevel then {
     strace $tracelevel
 }