From: Puyan Lotfi Date: Thu, 20 Jun 2019 18:28:21 +0000 (+0000) Subject: [NFC] Fix for InterfaceStubs tests (adding REQUIRES: x86-registered-target). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=058c0b96ab3794671b17a6c826c60310773df584;p=clang [NFC] Fix for InterfaceStubs tests (adding REQUIRES: x86-registered-target). clang-hexagon-elf bot was failing with: 'No available targets are compatible with triple "x86_64-unknown-linux-gnu"' Adding a "// REQUIRES: x86-registered-target" to these tests to quiet the bot. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@363963 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/InterfaceStubs/bad-format.cpp b/test/InterfaceStubs/bad-format.cpp index d40b1f965b..463f39aadc 100644 --- a/test/InterfaceStubs/bad-format.cpp +++ b/test/InterfaceStubs/bad-format.cpp @@ -1,3 +1,4 @@ +// REQUIRES: x86-registered-target // RUN: not %clang -target x86_64-linux-gnu -o - -emit-interface-stubs \ // RUN: -interface-stub-version=bar-format %s 2>&1 | FileCheck %s diff --git a/test/InterfaceStubs/class-template-specialization.cpp b/test/InterfaceStubs/class-template-specialization.cpp index d1f1d067cc..53baa3490f 100644 --- a/test/InterfaceStubs/class-template-specialization.cpp +++ b/test/InterfaceStubs/class-template-specialization.cpp @@ -1,3 +1,4 @@ +// REQUIRES: x86-registered-target // RUN: %clang -target x86_64-unknown-linux-gnu -o - -emit-interface-stubs \ // RUN: -interface-stub-version=experimental-tapi-elf-v1 %s | \ // RUN: FileCheck -check-prefix=CHECK-TAPI %s diff --git a/test/InterfaceStubs/externstatic.c b/test/InterfaceStubs/externstatic.c index 9224581ee0..832b4b3aaf 100644 --- a/test/InterfaceStubs/externstatic.c +++ b/test/InterfaceStubs/externstatic.c @@ -1,3 +1,4 @@ +// REQUIRES: x86-registered-target // RUN: %clang -DSTORAGE="extern" -target x86_64-unknown-linux-gnu -o - \ // RUN: -emit-interface-stubs \ // RUN: -interface-stub-version=experimental-yaml-elf-v1 -std=c99 -xc %s | \ diff --git a/test/InterfaceStubs/function-template-specialization.cpp b/test/InterfaceStubs/function-template-specialization.cpp index b6cf64c602..f01b4311da 100644 --- a/test/InterfaceStubs/function-template-specialization.cpp +++ b/test/InterfaceStubs/function-template-specialization.cpp @@ -1,3 +1,4 @@ +// REQUIRES: x86-registered-target // RUN: %clang -target x86_64-unknown-linux-gnu -o - -emit-interface-stubs \ // RUN: -interface-stub-version=experimental-tapi-elf-v1 %s | FileCheck %s diff --git a/test/InterfaceStubs/hidden-class-inheritance.cpp b/test/InterfaceStubs/hidden-class-inheritance.cpp index de4c2993c7..9152914dbd 100644 --- a/test/InterfaceStubs/hidden-class-inheritance.cpp +++ b/test/InterfaceStubs/hidden-class-inheritance.cpp @@ -1,3 +1,4 @@ +// REQUIRES: x86-registered-target // RUN: %clang -target x86_64-unknown-linux-gnu -o - -emit-interface-stubs \ // RUN: -interface-stub-version=experimental-tapi-elf-v1 \ // RUN: -DPARENT_CLASS_VISIBILITY="" -DCHILD_CLASS_VISIBILITY="" \ diff --git a/test/InterfaceStubs/inline.c b/test/InterfaceStubs/inline.c index c64771185f..40dc455b13 100644 --- a/test/InterfaceStubs/inline.c +++ b/test/InterfaceStubs/inline.c @@ -1,3 +1,4 @@ +// REQUIRES: x86-registered-target // RUN: %clang -DINLINE=inline -target x86_64-unknown-linux-gnu -o - \ // RUN: -emit-interface-stubs \ // RUN: -interface-stub-version=experimental-yaml-elf-v1 -std=gnu89 -xc %s | \ diff --git a/test/InterfaceStubs/inline.h b/test/InterfaceStubs/inline.h index fe16519e94..d8b1b0a617 100644 --- a/test/InterfaceStubs/inline.h +++ b/test/InterfaceStubs/inline.h @@ -1,3 +1,4 @@ +// REQUIRES: x86-registered-target INLINE int bar() { static int var = 42; return var; diff --git a/test/InterfaceStubs/object.cpp b/test/InterfaceStubs/object.cpp index 68b5ee781c..090a29d1c9 100644 --- a/test/InterfaceStubs/object.cpp +++ b/test/InterfaceStubs/object.cpp @@ -1,3 +1,4 @@ +// REQUIRES: x86-registered-target // RUN: %clang -target x86_64-unknown-linux-gnu -o - -emit-interface-stubs \ // RUN: -interface-stub-version=experimental-tapi-elf-v1 %s | \ // RUN: FileCheck -check-prefix=CHECK-TAPI %s diff --git a/test/InterfaceStubs/template-namespace-function.cpp b/test/InterfaceStubs/template-namespace-function.cpp index 879318122b..41e5fdefe2 100644 --- a/test/InterfaceStubs/template-namespace-function.cpp +++ b/test/InterfaceStubs/template-namespace-function.cpp @@ -1,3 +1,4 @@ +// REQUIRES: x86-registered-target // RUN: %clang -target x86_64-unknown-linux-gnu -o - -emit-interface-stubs \ // RUN: -interface-stub-version=experimental-tapi-elf-v1 %s | \ // RUN: FileCheck %s diff --git a/test/InterfaceStubs/virtual.cpp b/test/InterfaceStubs/virtual.cpp index b861b7e802..0fdb604921 100644 --- a/test/InterfaceStubs/virtual.cpp +++ b/test/InterfaceStubs/virtual.cpp @@ -1,3 +1,4 @@ +// REQUIRES: x86-registered-target // RUN: %clang -target x86_64-unknown-linux-gnu -o - -emit-interface-stubs \ // RUN: -interface-stub-version=experimental-tapi-elf-v1 %s | \ // RUN: FileCheck -check-prefix=CHECK-TAPI %s diff --git a/test/InterfaceStubs/visibility.cpp b/test/InterfaceStubs/visibility.cpp index 87ea7ea7bd..137c593ff6 100644 --- a/test/InterfaceStubs/visibility.cpp +++ b/test/InterfaceStubs/visibility.cpp @@ -1,3 +1,4 @@ +// REQUIRES: x86-registered-target // RUN: %clang -target x86_64-unknown-linux-gnu -o - -emit-interface-stubs \ // RUN: -interface-stub-version=experimental-tapi-elf-v1 -fvisibility=hidden \ // RUN: %s | FileCheck --check-prefix=CHECK-CMD-HIDDEN %s diff --git a/test/InterfaceStubs/weak.cpp b/test/InterfaceStubs/weak.cpp index e089225b5d..50bae580f0 100644 --- a/test/InterfaceStubs/weak.cpp +++ b/test/InterfaceStubs/weak.cpp @@ -1,3 +1,4 @@ +// REQUIRES: x86-registered-target // RUN: %clang -target x86_64-linux-gnu -o - -emit-interface-stubs \ // RUN: -interface-stub-version=experimental-tapi-elf-v1 %s | \ // RUN: FileCheck %s