[flang-commits] [flang] 01a2d96 - [flang] Avoid linking step for failing LIT tests added in D143301.

Slava Zakharin via flang-commits flang-commits at lists.llvm.org
Tue Feb 21 17:04:46 PST 2023


Author: Slava Zakharin
Date: 2023-02-21T17:04:30-08:00
New Revision: 01a2d96ad473d3684a671fbeffe019efbaea6453

URL: https://github.com/llvm/llvm-project/commit/01a2d96ad473d3684a671fbeffe019efbaea6453
DIFF: https://github.com/llvm/llvm-project/commit/01a2d96ad473d3684a671fbeffe019efbaea6453.diff

LOG: [flang] Avoid linking step for failing LIT tests added in D143301.

Added: 
    

Modified: 
    flang/test/Driver/w-arg-unsupported.f90
    flang/test/Driver/werror-all.f90
    flang/test/Driver/wextra-ok.f90

Removed: 
    


################################################################################
diff  --git a/flang/test/Driver/w-arg-unsupported.f90 b/flang/test/Driver/w-arg-unsupported.f90
index 84025523cf59..1ef25fdd4db0 100644
--- a/flang/test/Driver/w-arg-unsupported.f90
+++ b/flang/test/Driver/w-arg-unsupported.f90
@@ -4,7 +4,7 @@
 ! RUN:        -Wintrinsics-std -Wline-truncation -Wno-align-commons -Wno-overwrite-recursive \
 ! RUN:        -Wno-tabs -Wreal-q-constant -Wsurprising -Wunderflow -Wunused-parameter \
 ! RUN:        -Wrealloc-lhs -Wrealloc-lhs-all -Wfrontend-loop-interchange -Wtarget-lifetime %s \
-! RUN:        2>&1 | FileCheck %s
+! RUN:        -c 2>&1 | FileCheck %s
 
 ! CHECK: The warning option '-Wextra' is not supported
 ! CHECK-NEXT: The warning option '-Waliasing' is not supported

diff  --git a/flang/test/Driver/werror-all.f90 b/flang/test/Driver/werror-all.f90
index 35fd0df5d5a7..6d8c03510276 100644
--- a/flang/test/Driver/werror-all.f90
+++ b/flang/test/Driver/werror-all.f90
@@ -1,8 +1,8 @@
 ! Ensures that -Werror is read regardless of whether or not other -W
 ! flags are present in the CLI args
 
-! RUN: not %flang -std=f2018 -Werror -Wextra %s 2>&1 | FileCheck %s --check-prefix=WRONG
-! RUN: %flang -std=f2018 -Wextra -Wall %s 2>&1 | FileCheck %s --check-prefix=CHECK-OK
+! RUN: not %flang -std=f2018 -Werror -Wextra %s -c 2>&1 | FileCheck %s --check-prefix=WRONG
+! RUN: %flang -std=f2018 -Wextra -Wall %s -c 2>&1 | FileCheck %s --check-prefix=CHECK-OK
 
 ! WRONG: Semantic errors in
 ! CHECK-OK: FORALL index variable

diff  --git a/flang/test/Driver/wextra-ok.f90 b/flang/test/Driver/wextra-ok.f90
index 5ad18b965aeb..48676e8e62aa 100644
--- a/flang/test/Driver/wextra-ok.f90
+++ b/flang/test/Driver/wextra-ok.f90
@@ -1,8 +1,8 @@
 ! Ensure that supplying -Wextra into flang-new does not raise error
 ! The first check should be changed if -Wextra is implemented
 
-! RUN: %flang -std=f2018 -Wextra %s 2>&1 | FileCheck %s --check-prefix=CHECK-OK
-! RUN: not %flang -std=f2018 -Wblah -Wextra %s 2>&1 | FileCheck %s --check-prefix=WRONG
+! RUN: %flang -std=f2018 -Wextra %s -c 2>&1 | FileCheck %s --check-prefix=CHECK-OK
+! RUN: not %flang -std=f2018 -Wblah -Wextra %s -c 2>&1 | FileCheck %s --check-prefix=WRONG
 
 ! CHECK-OK: The warning option '-Wextra' is not supported
 ! WRONG: Only `-Werror` is supported currently.


        


More information about the flang-commits mailing list