From d05345304c7dc2507d9521791d1e0dc98287d719 Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Tue, 6 Nov 2018 00:16:32 +0000 Subject: [PATCH] Specify REQUIRES: default_triple in two debuginfo tests These were failing when specifying LLVM_DEFAULT_TARGET_TRIPLE='' llvm-svn: 346185 --- llvm/test/DebugInfo/cross-cu-scope.ll | 1 + llvm/test/DebugInfo/debuglineinfo-path.ll | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/test/DebugInfo/cross-cu-scope.ll b/llvm/test/DebugInfo/cross-cu-scope.ll index dffd44885f06..7f663349e37b 100644 --- a/llvm/test/DebugInfo/cross-cu-scope.ll +++ b/llvm/test/DebugInfo/cross-cu-scope.ll @@ -1,5 +1,6 @@ ; RUN: %llc_dwarf %s -filetype=obj -o %t ; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s +; REQUIRES: default_triple ; Reduced test case from PR35212. Two DISubprogram belong to a different CU but ; share a scope. Both are declarations and end up in the scope's CU. We want to diff --git a/llvm/test/DebugInfo/debuglineinfo-path.ll b/llvm/test/DebugInfo/debuglineinfo-path.ll index d92e1facad1b..88dd4824798a 100644 --- a/llvm/test/DebugInfo/debuglineinfo-path.ll +++ b/llvm/test/DebugInfo/debuglineinfo-path.ll @@ -1,5 +1,6 @@ ; Make sure that absolute source dir is detected correctly regardless of the platform. -; REQUIRES: object-emission +; REQUIRES: object-emission, default_triple + ; On powerpc llvm-nm describes win_func as a global variable, not a function. It breaks the test. ; It is not essential to DWARF path handling code we're testing here. ; UNSUPPORTED: powerpc