[flang-commits] [flang] 4217e6b - [flang] Fix a test (use %s instead of $s)

Andrzej Warzynski via flang-commits flang-commits at lists.llvm.org
Tue Apr 13 03:03:51 PDT 2021


Author: Andrzej Warzynski
Date: 2021-04-13T10:03:07Z
New Revision: 4217e6bf95f56d7c11684403687d20a7ef79ba09

URL: https://github.com/llvm/llvm-project/commit/4217e6bf95f56d7c11684403687d20a7ef79ba09
DIFF: https://github.com/llvm/llvm-project/commit/4217e6bf95f56d7c11684403687d20a7ef79ba09.diff

LOG: [flang] Fix a test (use %s instead of $s)

With the typo ($S instead of %s), the driver was expecting
input from stdin. In such cases, it prints:
```
Enter Fortran source
Use EOF character (^D) to end file
```
This was piped to FileCheck. Together with the available `CHECK-NOT`
statement, this was sufficient for the test to pass (incorrectly).

This patch makes sure that the provided input file is used instead of
stdin.

Differential Revision: https://reviews.llvm.org/D100301

Added: 
    

Modified: 
    flang/test/Semantics/call17.f90

Removed: 
    


################################################################################
diff  --git a/flang/test/Semantics/call17.f90 b/flang/test/Semantics/call17.f90
index ace626037dd8..d392756e1415 100644
--- a/flang/test/Semantics/call17.f90
+++ b/flang/test/Semantics/call17.f90
@@ -1,4 +1,4 @@
-! RUN: %f18 -fsyntax-only $s 2>&1 | FileCheck %s
+! RUN: %f18 -fsyntax-only %s 2>&1 | FileCheck %s --allow-empty
 
 ! Regression test: don't emit a bogus error about an invalid specification expression
 ! in the declaration of a binding


        


More information about the flang-commits mailing list