summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2019-09-10 20:15:45 +0000
committerReid Kleckner <rnk@google.com>2019-09-10 20:15:45 +0000
commit493d72dc01b84923be7837e02b8239a618f19ba3 (patch)
treec1b11536e8cafddb08a2dd988c022942ece720c3
parent744ff96f70c6261a92dc496d34310f182e9c27d0 (diff)
downloadclang-493d72dc01b84923be7837e02b8239a618f19ba3.tar.gz
Re-land Remove REQUIRES:shell from tests that pass for me on Windows
This reverts r371497 (git commit 3d7e9ab7b9f8c53aa41420c54970f0fb421004a2) Reorder `not` with `env` in these two tests so they pass: Driver/rewrite-map-in-diagnostics.c Index/crash-recovery-modules.m. This will not be necessary after D66531 lands. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@371552 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Analysis/crash-trace.c7
-rw-r--r--test/CodeGen/thinlto_backend.ll11
-rw-r--r--test/Driver/check-time-trace-sections.cpp1
-rw-r--r--test/Driver/check-time-trace.cpp1
-rw-r--r--test/Driver/clang-offload-bundler.c3
-rw-r--r--test/Driver/crash-report-crashfile.m2
-rw-r--r--test/Driver/rewrite-map-in-diagnostics.c7
-rw-r--r--test/Format/style-on-command-line.cpp2
-rw-r--r--test/Frontend/dependency-gen-has-include.c14
-rw-r--r--test/Index/crash-recovery-modules.m5
-rw-r--r--test/Modules/at-import-in-framework-header.m2
-rw-r--r--test/Modules/builtins.m1
-rw-r--r--test/Modules/dependency-dump-dependent-module.m2
-rw-r--r--test/Modules/dependency-dump.m2
-rw-r--r--test/Modules/implicit-invalidate-common.c1
-rw-r--r--test/OpenMP/task_firstprivate_codegen.cpp2
-rw-r--r--test/OpenMP/task_private_codegen.cpp2
-rw-r--r--test/OpenMP/taskloop_firstprivate_codegen.cpp3
-rw-r--r--test/OpenMP/taskloop_lastprivate_codegen.cpp3
-rw-r--r--test/OpenMP/taskloop_private_codegen.cpp2
-rw-r--r--test/OpenMP/taskloop_simd_firstprivate_codegen.cpp3
-rw-r--r--test/OpenMP/taskloop_simd_lastprivate_codegen.cpp3
-rw-r--r--test/OpenMP/taskloop_simd_private_codegen.cpp2
-rw-r--r--test/PCH/modified-header-error.c4
-rw-r--r--test/Parser/crash-report.c3
25 files changed, 31 insertions, 57 deletions
diff --git a/test/Analysis/crash-trace.c b/test/Analysis/crash-trace.c
index ef1763ef97..0c8c8cc6cb 100644
--- a/test/Analysis/crash-trace.c
+++ b/test/Analysis/crash-trace.c
@@ -1,9 +1,8 @@
// RUN: not --crash %clang_analyze_cc1 -analyzer-checker=debug.ExprInspection %s 2>&1 | FileCheck %s
// REQUIRES: crash-recovery
-// FIXME: CHECKs might be incompatible to win32.
-// Stack traces also require back traces.
-// REQUIRES: shell, backtrace
+// Stack traces require back traces.
+// REQUIRES: backtrace
void clang_analyzer_crash(void);
@@ -18,6 +17,6 @@ void test() {
// CHECK: 0. Program arguments: {{.*}}clang
// CHECK-NEXT: 1. <eof> parser at end of file
// CHECK-NEXT: 2. While analyzing stack:
-// CHECK-NEXT: #0 Calling inlined at line 15
+// CHECK-NEXT: #0 Calling inlined at line 14
// CHECK-NEXT: #1 Calling test
// CHECK-NEXT: 3. {{.*}}crash-trace.c:{{[0-9]+}}:3: Error evaluating statement
diff --git a/test/CodeGen/thinlto_backend.ll b/test/CodeGen/thinlto_backend.ll
index 2dd919d5f7..fcfc7ea466 100644
--- a/test/CodeGen/thinlto_backend.ll
+++ b/test/CodeGen/thinlto_backend.ll
@@ -1,5 +1,4 @@
-; shell required since the windows bot does not like the "(cd ..."
-; REQUIRES: x86-registered-target, shell
+; REQUIRES: x86-registered-target
; RUN: opt -module-summary -o %t1.o %s
; RUN: opt -module-summary -o %t2.o %S/Inputs/thinlto_backend.ll
@@ -32,10 +31,14 @@
; RUN: %clang -target x86_64-unknown-linux-gnu -O2 -o %t3.o -x ir %t1.o -c -fthinlto-index=%t.thinlto.bc -save-temps=obj
; RUN: llvm-dis %t1.s.3.import.bc -o - | FileCheck --check-prefix=CHECK-IMPORT %s
; RUN: mkdir -p %T/dir1
-; RUN: (cd %T/dir1 && %clang -target x86_64-unknown-linux-gnu -O2 -o %t3.o -x ir %t1.o -c -fthinlto-index=%t.thinlto.bc -save-temps=cwd)
+; RUN: cd %T/dir1
+; RUN: %clang -target x86_64-unknown-linux-gnu -O2 -o %t3.o -x ir %t1.o -c -fthinlto-index=%t.thinlto.bc -save-temps=cwd
+; RUN: cd ../..
; RUN: llvm-dis %T/dir1/*1.s.3.import.bc -o - | FileCheck --check-prefix=CHECK-IMPORT %s
; RUN: mkdir -p %T/dir2
-; RUN: (cd %T/dir2 && %clang -target x86_64-unknown-linux-gnu -O2 -o %t3.o -x ir %t1.o -c -fthinlto-index=%t.thinlto.bc -save-temps)
+; RUN: cd %T/dir2
+; RUN: %clang -target x86_64-unknown-linux-gnu -O2 -o %t3.o -x ir %t1.o -c -fthinlto-index=%t.thinlto.bc -save-temps
+; RUN: cd ../..
; RUN: llvm-dis %T/dir2/*1.s.3.import.bc -o - | FileCheck --check-prefix=CHECK-IMPORT %s
; CHECK-IMPORT: define available_externally void @f2()
; RUN: llvm-nm %t3.o | FileCheck --check-prefix=CHECK-OBJ %s
diff --git a/test/Driver/check-time-trace-sections.cpp b/test/Driver/check-time-trace-sections.cpp
index 4d1c0fde3a..2dbe203755 100644
--- a/test/Driver/check-time-trace-sections.cpp
+++ b/test/Driver/check-time-trace-sections.cpp
@@ -1,4 +1,3 @@
-// REQUIRES: shell
// RUN: %clangxx -S -ftime-trace -ftime-trace-granularity=0 -o %T/check-time-trace-sections %s
// RUN: cat %T/check-time-trace-sections.json | %python %S/check-time-trace-sections.py
diff --git a/test/Driver/check-time-trace.cpp b/test/Driver/check-time-trace.cpp
index 9d381786b1..3c6a002ae8 100644
--- a/test/Driver/check-time-trace.cpp
+++ b/test/Driver/check-time-trace.cpp
@@ -1,4 +1,3 @@
-// REQUIRES: shell
// RUN: %clangxx -S -ftime-trace -ftime-trace-granularity=0 -o %T/check-time-trace %s
// RUN: cat %T/check-time-trace.json \
// RUN: | %python -c 'import json, sys; json.dump(json.loads(sys.stdin.read()), sys.stdout, sort_keys=True, indent=2)' \
diff --git a/test/Driver/clang-offload-bundler.c b/test/Driver/clang-offload-bundler.c
index 44366920fe..be17b092ef 100644
--- a/test/Driver/clang-offload-bundler.c
+++ b/test/Driver/clang-offload-bundler.c
@@ -1,7 +1,6 @@
// REQUIRES: x86-registered-target
// REQUIRES: powerpc-registered-target
-// REQUIRES: shell
-// UNSUPPORTED: ms-sdk, darwin
+// UNSUPPORTED: darwin
//
// Generate all the types of files we can bundle.
diff --git a/test/Driver/crash-report-crashfile.m b/test/Driver/crash-report-crashfile.m
index fbfb532703..bdfac32751 100644
--- a/test/Driver/crash-report-crashfile.m
+++ b/test/Driver/crash-report-crashfile.m
@@ -1,4 +1,4 @@
-// REQUIRES: crash-recovery, shell, system-darwin
+// REQUIRES: crash-recovery, system-darwin
// RUN: rm -rf %t
// RUN: mkdir -p %t/i %t/m %t
diff --git a/test/Driver/rewrite-map-in-diagnostics.c b/test/Driver/rewrite-map-in-diagnostics.c
index 4aea0ec031..ef598ff66b 100644
--- a/test/Driver/rewrite-map-in-diagnostics.c
+++ b/test/Driver/rewrite-map-in-diagnostics.c
@@ -1,7 +1,7 @@
// RUN: rm -rf "%t"
// RUN: mkdir -p "%t"
-// RUN: not env TMPDIR="%t" TEMP="%t" TMP="%t" RC_DEBUG_OPTION=1 \
-// RUN: %clang -fsyntax-only -frewrite-map-file %p/Inputs/rewrite.map %s 2>&1 \
+// RUN: env TMPDIR="%t" TEMP="%t" TMP="%t" RC_DEBUG_OPTION=1 \
+// RUN: not %clang -fsyntax-only -frewrite-map-file %p/Inputs/rewrite.map %s 2>&1 \
// RUN: | FileCheck %s
#pragma clang __debug parser_crash
@@ -9,6 +9,3 @@
// CHECK: note: diagnostic msg: {{.*}}rewrite.map
// REQUIRES: crash-recovery
-
-// FIXME: This doesn't fail on "env clang". Investigating.
-// REQUIRES: shell
diff --git a/test/Format/style-on-command-line.cpp b/test/Format/style-on-command-line.cpp
index 0e6078e2fd..ba06babee3 100644
--- a/test/Format/style-on-command-line.cpp
+++ b/test/Format/style-on-command-line.cpp
@@ -39,4 +39,4 @@ int j;
// On Windows, the 'rm' commands fail when the previous process is still alive.
// This happens enough to make the test useless.
-// REQUIRES: shell
+// UNSUPPORTED: system-windows
diff --git a/test/Frontend/dependency-gen-has-include.c b/test/Frontend/dependency-gen-has-include.c
index e8abb2c9c1..51de72a5a0 100644
--- a/test/Frontend/dependency-gen-has-include.c
+++ b/test/Frontend/dependency-gen-has-include.c
@@ -1,5 +1,3 @@
-// REQUIRES: shell
-
// Basic test
// RUN: rm -rf %t.dir
// RUN: mkdir %t.dir
@@ -19,16 +17,16 @@
// RUN: FileCheck -input-file=%t.dir/file.deps %s
// CHECK: dependency-gen-has-include.o
// CHECK: dependency-gen-has-include.c
-// CHECK: a/header.h
-// CHECK-NOT: missing/file.h
-// CHECK: system/system-header.h
-// CHECK: next-a/next-header.h
-// CHECK: next-b/next-header.h
+// CHECK: a{{[/\\]}}header.h
+// CHECK-NOT: missing{{[/\\]}}file.h
+// CHECK: system{{[/\\]}}system-header.h
+// CHECK: next-a{{[/\\]}}next-header.h
+// CHECK: next-b{{[/\\]}}next-header.h
// Verify that we ignore system headers in user-only headers mode.
// RUN: %clang -MMD -MF %t.dir/user-headers.deps %s -fsyntax-only -I %t.dir -isystem %t.dir/system -I %t.dir/next-a -I %t.dir/next-b
// RUN: FileCheck -input-file=%t.dir/user-headers.deps --check-prefix CHECK-USER-HEADER %s
-// CHECK-USER-HEADER-NOT: system/system-header.h
+// CHECK-USER-HEADER-NOT: system{{[/\\]}}system-header.h
#if __has_include("a/header.h")
#endif
diff --git a/test/Index/crash-recovery-modules.m b/test/Index/crash-recovery-modules.m
index 296416df97..57d1cf7d0e 100644
--- a/test/Index/crash-recovery-modules.m
+++ b/test/Index/crash-recovery-modules.m
@@ -2,16 +2,15 @@
// RUN: rm -rf %t
// Parse the file, such that building the module will cause Clang to crash.
-// RUN: not env CINDEXTEST_FAILONERROR=1 c-index-test -test-load-source all -fmodules -fmodules-cache-path=%t -Xclang -fdisable-module-hash -I %S/Inputs/Headers -DCRASH %s > /dev/null 2> %t.err
+// RUN: env CINDEXTEST_FAILONERROR=1 not c-index-test -test-load-source all -fmodules -fmodules-cache-path=%t -Xclang -fdisable-module-hash -I %S/Inputs/Headers -DCRASH %s > /dev/null 2> %t.err
// RUN: FileCheck < %t.err -check-prefix=CHECK-CRASH %s
-// CHECK-CRASH: crash-recovery-modules.m:17:9:{17:2-17:14}: fatal error: could not build module 'Crash'
+// CHECK-CRASH: crash-recovery-modules.m:16:9:{16:2-16:14}: fatal error: could not build module 'Crash'
// Parse the file again, without crashing, to make sure that
// subsequent parses do the right thing.
// RUN: env CINDEXTEST_FAILONERROR=1 c-index-test -test-load-source all -fmodules -fmodules-cache-path=%t -Xclang -fdisable-module-hash -I %S/Inputs/Headers %s > /dev/null
// REQUIRES: crash-recovery
-// REQUIRES: shell
// UNSUPPORTED: libstdcxx-safe-mode
@import Crash;
diff --git a/test/Modules/at-import-in-framework-header.m b/test/Modules/at-import-in-framework-header.m
index fe36638120..043c69462e 100644
--- a/test/Modules/at-import-in-framework-header.m
+++ b/test/Modules/at-import-in-framework-header.m
@@ -1,5 +1,3 @@
-// REQUIRES: shell
-
// RUN: rm -rf %t
// RUN: mkdir %t
diff --git a/test/Modules/builtins.m b/test/Modules/builtins.m
index 88a44e7b0a..2480e6379c 100644
--- a/test/Modules/builtins.m
+++ b/test/Modules/builtins.m
@@ -8,7 +8,6 @@
// RUN: %clang_cc1 -fmodules-cache-path=%t.pch.cache -fmodules -fimplicit-module-maps -I %S/Inputs %s -include-pch %t.pch %s -verify
// expected-no-diagnostics
-// REQUIRES: shell
void use_constant_string_builtins1(void) {
(void)__builtin___CFStringMakeConstantString("");
diff --git a/test/Modules/dependency-dump-dependent-module.m b/test/Modules/dependency-dump-dependent-module.m
index 4906986165..2430726d3a 100644
--- a/test/Modules/dependency-dump-dependent-module.m
+++ b/test/Modules/dependency-dump-dependent-module.m
@@ -1,8 +1,6 @@
// When a module depends on another, check that we dump the dependency header
// files for both.
-// REQUIRES: shell
-
// RUN: rm -rf %t
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache -module-dependency-dir %t/vfs -F %S/Inputs -I %S/Inputs -verify %s
// expected-no-diagnostics
diff --git a/test/Modules/dependency-dump.m b/test/Modules/dependency-dump.m
index deb66188e1..f3a487544b 100644
--- a/test/Modules/dependency-dump.m
+++ b/test/Modules/dependency-dump.m
@@ -1,8 +1,6 @@
// Check that we can dump all of the headers a module depends on, and a VFS map
// for the same.
-// REQUIRES: shell
-
// RUN: rm -rf %t
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache -module-dependency-dir %t/vfs -F %S/Inputs -I %S/Inputs -verify %s
// expected-no-diagnostics
diff --git a/test/Modules/implicit-invalidate-common.c b/test/Modules/implicit-invalidate-common.c
index d6cf90e12d..143a00ff37 100644
--- a/test/Modules/implicit-invalidate-common.c
+++ b/test/Modules/implicit-invalidate-common.c
@@ -1,4 +1,3 @@
-// REQUIRES: shell
// RUN: rm -rf %t
// RUN: mkdir -p %t/implicit-invalidate-common
// RUN: cp -r %S/Inputs/implicit-invalidate-common %t/
diff --git a/test/OpenMP/task_firstprivate_codegen.cpp b/test/OpenMP/task_firstprivate_codegen.cpp
index 0517ec145b..e9c6d6d738 100644
--- a/test/OpenMP/task_firstprivate_codegen.cpp
+++ b/test/OpenMP/task_firstprivate_codegen.cpp
@@ -13,8 +13,6 @@
// RUN: %clang_cc1 -verify -fopenmp-simd -x c++ -std=c++11 -DARRAY -triple x86_64-apple-darwin10 -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY0 %s
// SIMD-ONLY0-NOT: {{__kmpc|__tgt}}
// expected-no-diagnostics
-// It doesn't pass on win32.
-// REQUIRES: shell
#ifndef ARRAY
#ifndef HEADER
#define HEADER
diff --git a/test/OpenMP/task_private_codegen.cpp b/test/OpenMP/task_private_codegen.cpp
index 17b0de16a1..32303cd600 100644
--- a/test/OpenMP/task_private_codegen.cpp
+++ b/test/OpenMP/task_private_codegen.cpp
@@ -13,8 +13,6 @@
// RUN: %clang_cc1 -verify -fopenmp-simd -x c++ -std=c++11 -DARRAY -triple x86_64-apple-darwin10 -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY0 %s
// SIMD-ONLY0-NOT: {{__kmpc|__tgt}}
// expected-no-diagnostics
-// It doesn't pass on win32. Investigating.
-// REQUIRES: shell
#ifndef ARRAY
#ifndef HEADER
diff --git a/test/OpenMP/taskloop_firstprivate_codegen.cpp b/test/OpenMP/taskloop_firstprivate_codegen.cpp
index 0aa9f3e696..64723814ab 100644
--- a/test/OpenMP/taskloop_firstprivate_codegen.cpp
+++ b/test/OpenMP/taskloop_firstprivate_codegen.cpp
@@ -13,8 +13,7 @@
// RUN: %clang_cc1 -verify -fopenmp-simd -x c++ -std=c++11 -DARRAY -triple x86_64-apple-darwin10 -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY0 %s
// SIMD-ONLY0-NOT: {{__kmpc|__tgt}}
// expected-no-diagnostics
-// It doesn't pass on win32.
-// REQUIRES: shell
+
#ifndef ARRAY
#ifndef HEADER
#define HEADER
diff --git a/test/OpenMP/taskloop_lastprivate_codegen.cpp b/test/OpenMP/taskloop_lastprivate_codegen.cpp
index 6e65885711..1df56ac9fd 100644
--- a/test/OpenMP/taskloop_lastprivate_codegen.cpp
+++ b/test/OpenMP/taskloop_lastprivate_codegen.cpp
@@ -15,8 +15,7 @@
// RUN: %clang_cc1 -verify -fopenmp-simd -x c++ -std=c++11 -DLOOP -triple x86_64-apple-darwin10 -emit-llvm %s -o - | FileCheck -check-prefix=SIMD-ONLY0 %s
// SIMD-ONLY0-NOT: {{__kmpc|__tgt}}
// expected-no-diagnostics
-// It doesn't pass on win32.
-// REQUIRES: shell
+
#if !defined(ARRAY) && !defined(LOOP)
#ifndef HEADER
#define HEADER
diff --git a/test/OpenMP/taskloop_private_codegen.cpp b/test/OpenMP/taskloop_private_codegen.cpp
index c7a85a4661..01c387e95d 100644
--- a/test/OpenMP/taskloop_private_codegen.cpp
+++ b/test/OpenMP/taskloop_private_codegen.cpp
@@ -13,8 +13,6 @@
// RUN: %clang_cc1 -verify -fopenmp-simd -x c++ -std=c++11 -DARRAY -triple x86_64-apple-darwin10 -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY0 %s
// SIMD-ONLY0-NOT: {{__kmpc|__tgt}}
// expected-no-diagnostics
-// It doesn't pass on win32. Investigating.
-// REQUIRES: shell
#ifndef ARRAY
#ifndef HEADER
diff --git a/test/OpenMP/taskloop_simd_firstprivate_codegen.cpp b/test/OpenMP/taskloop_simd_firstprivate_codegen.cpp
index 5f0b5dea1f..935aacc77b 100644
--- a/test/OpenMP/taskloop_simd_firstprivate_codegen.cpp
+++ b/test/OpenMP/taskloop_simd_firstprivate_codegen.cpp
@@ -13,8 +13,7 @@
// RUN: %clang_cc1 -verify -fopenmp-simd -x c++ -std=c++11 -DARRAY -triple x86_64-apple-darwin10 -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY0 %s
// SIMD-ONLY0-NOT: {{__kmpc|__tgt}}
// expected-no-diagnostics
-// It doesn't pass on win32.
-// REQUIRES: shell
+
#ifndef ARRAY
#ifndef HEADER
#define HEADER
diff --git a/test/OpenMP/taskloop_simd_lastprivate_codegen.cpp b/test/OpenMP/taskloop_simd_lastprivate_codegen.cpp
index 051c843e0a..97007dde2f 100644
--- a/test/OpenMP/taskloop_simd_lastprivate_codegen.cpp
+++ b/test/OpenMP/taskloop_simd_lastprivate_codegen.cpp
@@ -13,8 +13,7 @@
// RUN: %clang_cc1 -verify -fopenmp-simd -x c++ -std=c++11 -DARRAY -triple x86_64-apple-darwin10 -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY0 %s
// SIMD-ONLY0-NOT: {{__kmpc|__tgt}}
// expected-no-diagnostics
-// It doesn't pass on win32.
-// REQUIRES: shell
+
#ifndef ARRAY
#ifndef HEADER
#define HEADER
diff --git a/test/OpenMP/taskloop_simd_private_codegen.cpp b/test/OpenMP/taskloop_simd_private_codegen.cpp
index 2425d23dba..29b9c8302b 100644
--- a/test/OpenMP/taskloop_simd_private_codegen.cpp
+++ b/test/OpenMP/taskloop_simd_private_codegen.cpp
@@ -13,8 +13,6 @@
// RUN: %clang_cc1 -verify -fopenmp-simd -x c++ -std=c++11 -DARRAY -triple x86_64-apple-darwin10 -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY0 %s
// SIMD-ONLY0-NOT: {{__kmpc|__tgt}}
// expected-no-diagnostics
-// It doesn't pass on win32. Investigating.
-// REQUIRES: shell
#ifndef ARRAY
#ifndef HEADER
diff --git a/test/PCH/modified-header-error.c b/test/PCH/modified-header-error.c
index 8ab38e1e9e..fb638363ba 100644
--- a/test/PCH/modified-header-error.c
+++ b/test/PCH/modified-header-error.c
@@ -9,4 +9,6 @@
#include "header2.h"
// CHECK: fatal error: file {{.*}} has been modified since the precompiled header {{.*}} was built
-// REQUIRES: shell
+
+// FIXME: Flaky on Windows, timestamp resolution?
+// UNSUPPORTED: win32
diff --git a/test/Parser/crash-report.c b/test/Parser/crash-report.c
index ef65b88a06..6ca10459d9 100644
--- a/test/Parser/crash-report.c
+++ b/test/Parser/crash-report.c
@@ -1,9 +1,8 @@
// RUN: not --crash %clang_cc1 %s 2>&1 | FileCheck %s
// REQUIRES: crash-recovery
-// FIXME: CHECKs might be incompatible to win32.
// Stack traces also require back traces.
-// REQUIRES: shell, backtrace
+// REQUIRES: backtrace
#prag\
ma clang __debug crash