diff options
| author | Mircea Trofin <mtrofin@google.com> | 2018-03-26 23:59:39 +0000 |
|---|---|---|
| committer | Mircea Trofin <mtrofin@google.com> | 2018-03-26 23:59:39 +0000 |
| commit | 373c445c241697caf0f0632d643af824cdf5762c (patch) | |
| tree | 3050e64722b19254a3c6a18836fa1573bc980018 /llvm/utils/lit/tests | |
| parent | 60e62438d2e4866b0c2707f0c1a0a3a712202f8a (diff) | |
| download | bcm5719-llvm-373c445c241697caf0f0632d643af824cdf5762c.tar.gz bcm5719-llvm-373c445c241697caf0f0632d643af824cdf5762c.zip | |
Revert "[lit] Generalized /dev/null support on Windows."
This reverts commit ca7fdbb974384ce5a05528b22a41d46b1cc13e92.
llvm-svn: 328596
Diffstat (limited to 'llvm/utils/lit/tests')
| -rw-r--r-- | llvm/utils/lit/tests/Inputs/shtest-shell/check_args.py | 14 | ||||
| -rw-r--r-- | llvm/utils/lit/tests/Inputs/shtest-shell/dev-null.txt | 14 |
2 files changed, 0 insertions, 28 deletions
diff --git a/llvm/utils/lit/tests/Inputs/shtest-shell/check_args.py b/llvm/utils/lit/tests/Inputs/shtest-shell/check_args.py deleted file mode 100644 index 2f7a2503b97..00000000000 --- a/llvm/utils/lit/tests/Inputs/shtest-shell/check_args.py +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env python - -import argparse -import platform - -parser = argparse.ArgumentParser() -parser.add_argument("--my_arg", "-a") - -args = parser.parse_args() - -answer = (platform.system() == "Windows" and - args.my_arg == "/dev/null" and "ERROR") or "OK" - -print(answer) diff --git a/llvm/utils/lit/tests/Inputs/shtest-shell/dev-null.txt b/llvm/utils/lit/tests/Inputs/shtest-shell/dev-null.txt deleted file mode 100644 index 5b742489cc8..00000000000 --- a/llvm/utils/lit/tests/Inputs/shtest-shell/dev-null.txt +++ /dev/null @@ -1,14 +0,0 @@ -# Check handling of /dev/null in command line options -# On windows, it should be redirected to a temp file. -# -# RUN: "%{python}" %S/check_args.py --my_arg /dev/null | FileCheck %s --check-prefix=CHECK1 -# CHECK1: OK - -# RUN: "%{python}" %S/check_args.py --my_arg=/dev/null | FileCheck %s --check-prefix=CHECK2 -# CHECK2: OK - -# RUN: "%{python}" %S/check_args.py -a /dev/null | FileCheck %s --check-prefix=CHECK3 -# CHECK3: OK - -# RUN: "%{python}" %S/check_args.py -a=/dev/null | FileCheck %s --check-prefix=CHECK4 -# CHECK4: OK |

