[all-commits] [llvm/llvm-project] 4217e6: [flang] Fix a test (use %s instead of $s)

Andrzej WarzyƄski via All-commits all-commits at lists.llvm.org
Tue Apr 13 03:04:04 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4217e6bf95f56d7c11684403687d20a7ef79ba09
      https://github.com/llvm/llvm-project/commit/4217e6bf95f56d7c11684403687d20a7ef79ba09
  Author: Andrzej Warzynski <andrzej.warzynski at arm.com>
  Date:   2021-04-13 (Tue, 13 Apr 2021)

  Changed paths:
    M flang/test/Semantics/call17.f90

  Log Message:
  -----------
  [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




More information about the All-commits mailing list