[Lldb-commits] [lldb] 04329db - [lldb] Fix test using lld on non-linux systems

Johannes Altmanninger via lldb-commits lldb-commits at lists.llvm.org
Fri Dec 20 04:27:59 PST 2019


Author: Johannes Altmanninger
Date: 2019-12-20T13:27:40+01:00
New Revision: 04329dbfa6c219997ab72567842d81778f9f7f47

URL: https://github.com/llvm/llvm-project/commit/04329dbfa6c219997ab72567842d81778f9f7f47
DIFF: https://github.com/llvm/llvm-project/commit/04329dbfa6c219997ab72567842d81778f9f7f47.diff

LOG: [lldb] Fix test using lld on non-linux systems

Added: 
    

Modified: 
    lldb/test/Shell/SymbolFile/DWARF/inline-function-address-shared.test
    lldb/test/Shell/SymbolFile/DWARF/inline-function-address.ll

Removed: 
    


################################################################################
diff  --git a/lldb/test/Shell/SymbolFile/DWARF/inline-function-address-shared.test b/lldb/test/Shell/SymbolFile/DWARF/inline-function-address-shared.test
index 56397c949efb..5aa7759c5ed7 100644
--- a/lldb/test/Shell/SymbolFile/DWARF/inline-function-address-shared.test
+++ b/lldb/test/Shell/SymbolFile/DWARF/inline-function-address-shared.test
@@ -1,5 +1,5 @@
-# REQUIRES: lld
-; RUN: llc %S/inline-function-address.ll -filetype=obj -o %t.o
+# REQUIRES: lld, x86
+; RUN: llc -mtriple x86_64-pc-linux %S/inline-function-address.ll -filetype=obj -o %t.o
 ; RUN: ld.lld %t.o %t.o -o %t -shared
 ; RUN: lldb-test symbols --find=function --name=foo --function-flags=full %t | FileCheck %s
 ; CHECK: Function: {{.*}} "foo"

diff  --git a/lldb/test/Shell/SymbolFile/DWARF/inline-function-address.ll b/lldb/test/Shell/SymbolFile/DWARF/inline-function-address.ll
index 233e92007108..fde90d269a1d 100644
--- a/lldb/test/Shell/SymbolFile/DWARF/inline-function-address.ll
+++ b/lldb/test/Shell/SymbolFile/DWARF/inline-function-address.ll
@@ -1,5 +1,5 @@
-; REQUIRES: lld
-; RUN: llc %s -filetype=obj -o %t.o
+; REQUIRES: lld, x86
+; RUN: llc -mtriple x86_64-pc-linux %s -filetype=obj -o %t.o
 ; RUN: ld.lld %t.o %t.o -o %t
 ; "foo" is defined in both compilation units, but there should be only one meaningful debuginfo entry
 ; RUN: lldb-test symbols --find=function --name=foo --function-flags=full %t | FileCheck %s


        


More information about the lldb-commits mailing list