From: Reid Kleckner Date: Tue, 10 Sep 2019 00:06:52 +0000 (+0000) Subject: Remove some unnecessary REQUIRES: shell lines X-Git-Tag: llvmorg-11-init~9605 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=87d47cb7c4792cb4dbb6911b9d11e5bd9f2dc928;p=platform%2Fupstream%2Fllvm.git Remove some unnecessary REQUIRES: shell lines This means these tests will run on Windows. Replace one with UNSUPPORTED: system-windows. llvm-svn: 371473 --- diff --git a/llvm/test/Linker/datalayout.ll b/llvm/test/Linker/datalayout.ll index 55e804e..8e71e3b8 100644 --- a/llvm/test/Linker/datalayout.ll +++ b/llvm/test/Linker/datalayout.ll @@ -1,6 +1,7 @@ -; REQUIRES: shell -; RUN: llvm-link %s %S/Inputs/datalayout-a.ll -S -o - 2>%t.a.err -; RUN: (echo foo ;cat %t.a.err) | FileCheck --check-prefix=WARN-A %s +; Ensure t.a.err is non-empty. +; RUN: echo foo > %t.a.err +; RUN: llvm-link %s %S/Inputs/datalayout-a.ll -S -o - 2>>%t.a.err +; RUN: FileCheck --check-prefix=WARN-A %s < %t.a.err ; RUN: llvm-link %s %S/Inputs/datalayout-b.ll -S -o - 2>%t.b.err ; RUN: cat %t.b.err | FileCheck --check-prefix=WARN-B %s diff --git a/llvm/test/MC/AsmParser/preserve-comments-crlf.s b/llvm/test/MC/AsmParser/preserve-comments-crlf.s index 4fbb822..8bf094b7 100644 --- a/llvm/test/MC/AsmParser/preserve-comments-crlf.s +++ b/llvm/test/MC/AsmParser/preserve-comments-crlf.s @@ -1,14 +1,13 @@ - #REQUIRES: shell - #RUN: llvm-mc -preserve-comments -n -triple i386-linux-gnu < %s > %t - #RUN: diff -b %s %t - .text - -foo: #Comment here - #comment here - nop - #if DIRECTIVE COMMENT - ## WHOLE LINE COMMENT - cmpl $196, %eax ## EOL COMMENT - #endif - .ident "clang version 3.9.0" - .section ".note.GNU-stack","",@progbits + #RUN: llvm-mc -preserve-comments -n -triple i386-linux-gnu < %s > %t + #RUN: diff -b %s %t + .text + +foo: #Comment here + #comment here + nop + #if DIRECTIVE COMMENT + ## WHOLE LINE COMMENT + cmpl $196, %eax ## EOL COMMENT + #endif + .ident "clang version 3.9.0" + .section ".note.GNU-stack","",@progbits diff --git a/llvm/test/MC/ELF/comp-dir.s b/llvm/test/MC/ELF/comp-dir.s index e808222..59edce1 100644 --- a/llvm/test/MC/ELF/comp-dir.s +++ b/llvm/test/MC/ELF/comp-dir.s @@ -1,4 +1,6 @@ -// REQUIRES: shell +// Don't try to make symlinks on Windows. +// UNSUPPORTED: system-windows +// // RUN: llvm-mc -triple=x86_64-linux-unknown -g -fdebug-compilation-dir=/test/comp/dir %s -filetype=obj -o %t.o // RUN: llvm-dwarfdump -v -debug-info %t.o | FileCheck %s diff --git a/llvm/test/Other/lit-unicode.txt b/llvm/test/Other/lit-unicode.txt index ca92c99..2f400014 100644 --- a/llvm/test/Other/lit-unicode.txt +++ b/llvm/test/Other/lit-unicode.txt @@ -1,3 +1,5 @@ +FIXME: See if we can fix this in lit by using Unicode strings. REQUIRES: shell + RUN: echo "ようこそ" | FileCheck %s CHECK: {{^}}ようこそ{{$}} diff --git a/llvm/test/tools/llvm-cov/copy_block_helper.m b/llvm/test/tools/llvm-cov/copy_block_helper.m index 51d0e62..13cf9d4 100644 --- a/llvm/test/tools/llvm-cov/copy_block_helper.m +++ b/llvm/test/tools/llvm-cov/copy_block_helper.m @@ -1,8 +1,8 @@ // Make sure that compiler-added functions (whose line number is zero) don't // crash llvm-cov. -// We need shell for cd -// REQUIRES: shell + + // RUN: rm -rf %t // RUN: mkdir %t diff --git a/llvm/test/tools/llvm-cov/cov-comdat.test b/llvm/test/tools/llvm-cov/cov-comdat.test index e8018d5..5184a95 100644 --- a/llvm/test/tools/llvm-cov/cov-comdat.test +++ b/llvm/test/tools/llvm-cov/cov-comdat.test @@ -1,5 +1,3 @@ -REQUIRES: shell - # The binary contains two (merged) covmap sections which # have duplicate CovMapRecords from comdat (template instantation). # This test makes sure the reader reads it properly. It also diff --git a/llvm/test/tools/llvm-cov/gcov47_compatibility.cpp b/llvm/test/tools/llvm-cov/gcov47_compatibility.cpp index 6458d3b..b8f4a3c 100644 --- a/llvm/test/tools/llvm-cov/gcov47_compatibility.cpp +++ b/llvm/test/tools/llvm-cov/gcov47_compatibility.cpp @@ -5,8 +5,8 @@ // -coverage -Xclang -coverage-no-function-names-in-data // -Xclang -coverage-cfg-checksum -Xclang -coverage-version='407*' -// We need shell for cd -// REQUIRES: shell + + // RUN: rm -rf %t // RUN: mkdir %t diff --git a/llvm/test/tools/llvm-cov/range_based_for.cpp b/llvm/test/tools/llvm-cov/range_based_for.cpp index 173866c..a65eeda 100644 --- a/llvm/test/tools/llvm-cov/range_based_for.cpp +++ b/llvm/test/tools/llvm-cov/range_based_for.cpp @@ -1,8 +1,8 @@ // Make sure that compiler-added local variables (whose line number is zero) // don't crash llvm-cov. -// We need shell for cd -// REQUIRES: shell + + // RUN: rm -rf %t // RUN: mkdir %t diff --git a/llvm/test/tools/llvm-dwp/X86/dwos_list_from_exec_simple.test b/llvm/test/tools/llvm-dwp/X86/dwos_list_from_exec_simple.test index 46f5063..54c3a57 100644 --- a/llvm/test/tools/llvm-dwp/X86/dwos_list_from_exec_simple.test +++ b/llvm/test/tools/llvm-dwp/X86/dwos_list_from_exec_simple.test @@ -1,5 +1,3 @@ -REQUIRES: shell - RUN: rm -rf %t RUN: mkdir %t RUN: cd %t