[flang-commits] [flang] [flang] Remove REQUIRES: shell lines form tests (PR #173339)
Aiden Grossman via flang-commits
flang-commits at lists.llvm.org
Mon Dec 22 22:56:25 PST 2025
https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/173339
The shell feature only implies that we are not running on Windows now that the internal shell feature is available everywhere. Replace it with UNSUPPORTED: system-windows on non-portable tests so we can eventually get rid of the feature.
>From 65bd2facb00d7f5eef4f67843a6ad4c026b21082 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Tue, 23 Dec 2025 06:55:18 +0000
Subject: [PATCH] [flang] Remove REQUIRES: shell lines form tests
The shell feature only implies that we are not running on Windows now
that the internal shell feature is available everywhere. Replace it with
UNSUPPORTED: system-windows on non-portable tests so we can eventually
get rid of the feature.
---
flang/test/Driver/pass-plugin-not-found.f90 | 2 +-
flang/test/Driver/pass-plugin.f90 | 2 +-
flang/test/Driver/plugin-invalid-name.f90 | 2 +-
flang/test/Examples/feature-list-class.f90 | 2 +-
flang/test/Examples/feature-list-functions.f90 | 2 +-
flang/test/Examples/omp-atomic.f90 | 2 +-
flang/test/Examples/omp-declarative-directive.f90 | 2 +-
flang/test/Examples/omp-device-constructs.f90 | 2 +-
flang/test/Examples/omp-in-reduction-clause.f90 | 2 +-
flang/test/Examples/omp-nowait.f90 | 2 +-
flang/test/Examples/omp-order-clause.f90 | 2 +-
flang/test/Examples/omp-sections.f90 | 2 +-
flang/test/Examples/print-fns-calls.f90 | 2 +-
flang/test/Examples/print-fns-definitions.f90 | 2 +-
flang/test/Examples/print-fns-interfaces.f90 | 2 +-
15 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/flang/test/Driver/pass-plugin-not-found.f90 b/flang/test/Driver/pass-plugin-not-found.f90
index fc1e690a0cc72..aa55cdc4b5023 100644
--- a/flang/test/Driver/pass-plugin-not-found.f90
+++ b/flang/test/Driver/pass-plugin-not-found.f90
@@ -1,6 +1,6 @@
! Check the correct error diagnostic is reported when a pass plugin shared object isn't found
-! REQUIRES: plugins, shell
+! REQUIRES: plugins
! RUN: not %flang -fpass-plugin=X.Y %s 2>&1 | FileCheck %s --check-prefix=ERROR
! RUN: not %flang_fc1 -emit-llvm -o /dev/null -fpass-plugin=X.Y %s 2>&1 | FileCheck %s --check-prefix=ERROR
diff --git a/flang/test/Driver/pass-plugin.f90 b/flang/test/Driver/pass-plugin.f90
index 8c8c4c70def86..53c16cacdd247 100644
--- a/flang/test/Driver/pass-plugin.f90
+++ b/flang/test/Driver/pass-plugin.f90
@@ -2,7 +2,7 @@
! UNSUPPORTED: system-windows
-! REQUIRES: plugins, shell, examples
+! REQUIRES: plugins, examples
! RUN: %flang -S %s %loadbye -Xflang -fdebug-pass-manager -o /dev/null \
! RUN: 2>&1 | FileCheck %s
diff --git a/flang/test/Driver/plugin-invalid-name.f90 b/flang/test/Driver/plugin-invalid-name.f90
index 55fc423b5e8f9..c0a652f36ad82 100644
--- a/flang/test/Driver/plugin-invalid-name.f90
+++ b/flang/test/Driver/plugin-invalid-name.f90
@@ -1,6 +1,6 @@
! Check the correct error diagnostic is reported when a plugin name isn't found
-! REQUIRES: plugins, shell
+! REQUIRES: plugins
! RUN: not %flang_fc1 -plugin -wrong-name %s 2>&1 | FileCheck %s --check-prefix=ERROR
diff --git a/flang/test/Examples/feature-list-class.f90 b/flang/test/Examples/feature-list-class.f90
index 61b18c7fdd974..cf847cb04a2bf 100644
--- a/flang/test/Examples/feature-list-class.f90
+++ b/flang/test/Examples/feature-list-class.f90
@@ -1,5 +1,5 @@
! UNSUPPORTED: system-windows
-! REQUIRES: plugins, shell, examples
+! REQUIRES: plugins, examples
! RUN: %flang_fc1 -load %llvmshlibdir/flangFeatureList%pluginext \
! RUN: -plugin feature-list %s 2>&1 | FileCheck %s
diff --git a/flang/test/Examples/feature-list-functions.f90 b/flang/test/Examples/feature-list-functions.f90
index 386e30d5d18ad..df18aa4e9b5fa 100644
--- a/flang/test/Examples/feature-list-functions.f90
+++ b/flang/test/Examples/feature-list-functions.f90
@@ -1,5 +1,5 @@
! UNSUPPORTED: system-windows
-! REQUIRES: plugins, shell, examples
+! REQUIRES: plugins, examples
! RUN: %flang_fc1 -load %llvmshlibdir/flangFeatureList%pluginext \
! RUN: -plugin feature-list %s 2>&1 | FileCheck %s
diff --git a/flang/test/Examples/omp-atomic.f90 b/flang/test/Examples/omp-atomic.f90
index d7e0a1c7e2045..084cf6c509fe6 100644
--- a/flang/test/Examples/omp-atomic.f90
+++ b/flang/test/Examples/omp-atomic.f90
@@ -1,4 +1,4 @@
-! REQUIRES: plugins, examples, shell
+! REQUIRES: plugins, examples
! RUN: %flang_fc1 -load %llvmshlibdir/flangOmpReport%pluginext -plugin flang-omp-report -fopenmp %s -o - | FileCheck %s
diff --git a/flang/test/Examples/omp-declarative-directive.f90 b/flang/test/Examples/omp-declarative-directive.f90
index 6e1b0be733663..6490976198cc3 100644
--- a/flang/test/Examples/omp-declarative-directive.f90
+++ b/flang/test/Examples/omp-declarative-directive.f90
@@ -1,4 +1,4 @@
-! REQUIRES: plugins, examples, shell
+! REQUIRES: plugins, examples
! RUN: %flang_fc1 -load %llvmshlibdir/flangOmpReport%pluginext -plugin flang-omp-report -fopenmp %s -o - | FileCheck %s
diff --git a/flang/test/Examples/omp-device-constructs.f90 b/flang/test/Examples/omp-device-constructs.f90
index ae52f7336970b..70d64077005a7 100644
--- a/flang/test/Examples/omp-device-constructs.f90
+++ b/flang/test/Examples/omp-device-constructs.f90
@@ -1,4 +1,4 @@
-! REQUIRES: plugins, examples, shell
+! REQUIRES: plugins, examples
!RUN: %flang_fc1 -load %llvmshlibdir/flangOmpReport%pluginext -plugin flang-omp-report -fopenmp %s -o - | FileCheck %s
diff --git a/flang/test/Examples/omp-in-reduction-clause.f90 b/flang/test/Examples/omp-in-reduction-clause.f90
index 73ba197d5605a..6634d52e40f59 100644
--- a/flang/test/Examples/omp-in-reduction-clause.f90
+++ b/flang/test/Examples/omp-in-reduction-clause.f90
@@ -1,4 +1,4 @@
-! REQUIRES: plugins, examples, shell
+! REQUIRES: plugins, examples
! RUN: %flang_fc1 -load %llvmshlibdir/flangOmpReport%pluginext -plugin flang-omp-report -fopenmp -fopenmp-version=50 %s -o - | FileCheck %s
diff --git a/flang/test/Examples/omp-nowait.f90 b/flang/test/Examples/omp-nowait.f90
index 1d8f9e0b3f815..7ef8061845da9 100644
--- a/flang/test/Examples/omp-nowait.f90
+++ b/flang/test/Examples/omp-nowait.f90
@@ -1,4 +1,4 @@
-! REQUIRES: plugins, examples, shell
+! REQUIRES: plugins, examples
! RUN: %flang_fc1 -load %llvmshlibdir/flangOmpReport%pluginext -plugin flang-omp-report -fopenmp %s -o - | FileCheck %s
diff --git a/flang/test/Examples/omp-order-clause.f90 b/flang/test/Examples/omp-order-clause.f90
index 976c750e69690..a0872302b14c8 100644
--- a/flang/test/Examples/omp-order-clause.f90
+++ b/flang/test/Examples/omp-order-clause.f90
@@ -1,4 +1,4 @@
-! REQUIRES: plugins, examples, shell
+! REQUIRES: plugins, examples
! RUN: %flang_fc1 -load %llvmshlibdir/flangOmpReport%pluginext -plugin flang-omp-report -fopenmp -fopenmp-version=50 %s -o - | FileCheck %s
diff --git a/flang/test/Examples/omp-sections.f90 b/flang/test/Examples/omp-sections.f90
index 96de363558c7c..3e18d0cd7261a 100644
--- a/flang/test/Examples/omp-sections.f90
+++ b/flang/test/Examples/omp-sections.f90
@@ -1,4 +1,4 @@
-! REQUIRES: plugins, examples, shell
+! REQUIRES: plugins, examples
! RUN: %flang_fc1 -load %llvmshlibdir/flangOmpReport%pluginext -plugin flang-omp-report -fopenmp %s -o - | FileCheck %s
diff --git a/flang/test/Examples/print-fns-calls.f90 b/flang/test/Examples/print-fns-calls.f90
index f45a0932ee215..3ec05fb94fb29 100644
--- a/flang/test/Examples/print-fns-calls.f90
+++ b/flang/test/Examples/print-fns-calls.f90
@@ -1,7 +1,7 @@
! Check the Flang Print Function Names example plugin doesn't count/print function/subroutine calls (should only count definitions)
! This requires that the examples are built (LLVM_BUILD_EXAMPLES=ON) to access flangPrintFunctionNames.so
-! REQUIRES: plugins, examples, shell
+! REQUIRES: plugins, examples
! RUN: %flang_fc1 -load %llvmshlibdir/flangPrintFunctionNames%pluginext -plugin print-fns %s 2>&1 | FileCheck %s
diff --git a/flang/test/Examples/print-fns-definitions.f90 b/flang/test/Examples/print-fns-definitions.f90
index a1f342a246248..a2bea4094fbca 100644
--- a/flang/test/Examples/print-fns-definitions.f90
+++ b/flang/test/Examples/print-fns-definitions.f90
@@ -2,7 +2,7 @@
! This includes internal and external Function/Subroutines, but not Statement Functions
! This requires that the examples are built (LLVM_BUILD_EXAMPLES=ON) to access flangPrintFunctionNames.so
-! REQUIRES: plugins, examples, shell
+! REQUIRES: plugins, examples
! RUN: %flang_fc1 -load %llvmshlibdir/flangPrintFunctionNames%pluginext -plugin print-fns %s 2>&1 | FileCheck %s
diff --git a/flang/test/Examples/print-fns-interfaces.f90 b/flang/test/Examples/print-fns-interfaces.f90
index c1e2f3488e232..5411f3dc5afe2 100644
--- a/flang/test/Examples/print-fns-interfaces.f90
+++ b/flang/test/Examples/print-fns-interfaces.f90
@@ -2,7 +2,7 @@
! (It should only count definitions, which will appear elsewhere for interfaced functions/subroutines)
! This requires that the examples are built (LLVM_BUILD_EXAMPLES=ON) to access flangPrintFunctionNames.so
-! REQUIRES: plugins, examples, shell
+! REQUIRES: plugins, examples
! RUN: %flang_fc1 -load %llvmshlibdir/flangPrintFunctionNames%pluginext -plugin print-fns %s 2>&1 | FileCheck %s
More information about the flang-commits
mailing list