[lld] r355602 - [LLD][COFF] Restrict the failifmismatch test to x86_64-windows-msvc because the ELF container doesn't support llvm.linker.options meta-data with only one operand.

Alexandre Ganea via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 7 07:07:55 PST 2019


Author: aganea
Date: Thu Mar  7 07:07:55 2019
New Revision: 355602

URL: http://llvm.org/viewvc/llvm-project?rev=355602&view=rev
Log:
[LLD][COFF] Restrict the failifmismatch test to x86_64-windows-msvc because the ELF container doesn't support llvm.linker.options meta-data with only one operand.

Modified:
    lld/trunk/test/COFF/failifmismatch.test

Modified: lld/trunk/test/COFF/failifmismatch.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/COFF/failifmismatch.test?rev=355602&r1=355601&r2=355602&view=diff
==============================================================================
--- lld/trunk/test/COFF/failifmismatch.test (original)
+++ lld/trunk/test/COFF/failifmismatch.test Thu Mar  7 07:07:55 2019
@@ -1,3 +1,5 @@
+REQUIRES: x86
+
 RUN: lld-link /entry:main /subsystem:console /out:%t.exe \
 RUN:   %p/Inputs/ret42.obj
 
@@ -10,8 +12,8 @@ RUN:   %p/Inputs/ret42.obj /failifmismat
 RUN: not lld-link /entry:main /subsystem:console /out:%t.exe \
 RUN:   %p/Inputs/ret42.obj /failifmismatch:k1=v1 /failifmismatch:k1=v2 2>&1 | FileCheck %s 
 
-RUN: llc < %p/Inputs/failmismatch1.ll -filetype obj -o %t1.obj
-RUN: llc < %p/Inputs/failmismatch2.ll -filetype obj -o %t2.obj
+RUN: llc < %p/Inputs/failmismatch1.ll -mtriple x86_64-windows-msvc -filetype obj -o %t1.obj
+RUN: llc < %p/Inputs/failmismatch2.ll -mtriple x86_64-windows-msvc -filetype obj -o %t2.obj
 RUN: not lld-link %t1.obj %t2.obj 2>&1 | FileCheck %s -check-prefix OBJ
 
 RUN: llvm-lib %t1.obj /out:%t.lib




More information about the llvm-commits mailing list