From: Renato Golin Date: Fri, 16 Oct 2020 20:26:46 +0000 (+0100) Subject: Fix Windows llvm-objdump tests X-Git-Tag: llvmorg-13-init~9036 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=66506eeb37b293b9be5b943d51ec087608396d8c;p=platform%2Fupstream%2Fllvm.git Fix Windows llvm-objdump tests Broken in e95f9a23fad with path issues. --- diff --git a/llvm/test/tools/llvm-objdump/X86/source-interleave-prefix-non-windows.test b/llvm/test/tools/llvm-objdump/X86/source-interleave-prefix-non-windows.test index a32d1b7..aa74a36 100644 --- a/llvm/test/tools/llvm-objdump/X86/source-interleave-prefix-non-windows.test +++ b/llvm/test/tools/llvm-objdump/X86/source-interleave-prefix-non-windows.test @@ -7,4 +7,4 @@ ; RUN: sed -e "s,SRC_COMPDIR,/Inputs,g" %p/Inputs/source-interleave.ll > %t.ll ; RUN: llc -o %t.o -filetype=obj -mtriple=x86_64-pc-linux %t.ll ; RUN: llvm-objdump --prefix 'myprefix/\' --source %t.o 2>&1 | FileCheck %s -DFILE=%t.o -DPREFIX='myprefix/\' -; CHECK: warning: '[[FILE]]': failed to find source [[PREFIX]]/Inputs/source-interleave-x86_64.c +; CHECK: warning: '[[FILE]]': failed to find source {{.*}}source-interleave-x86_64.c diff --git a/llvm/test/tools/llvm-objdump/X86/source-interleave-prefix.test b/llvm/test/tools/llvm-objdump/X86/source-interleave-prefix.test index b384c49..c34cb39 100644 --- a/llvm/test/tools/llvm-objdump/X86/source-interleave-prefix.test +++ b/llvm/test/tools/llvm-objdump/X86/source-interleave-prefix.test @@ -7,7 +7,7 @@ ; RUN: llc -o %t-relative-path.o -filetype=obj -mtriple=x86_64-pc-linux %t-relative-path.ll ; RUN: llvm-objdump --prefix myprefix --source %t-relative-path.o 2>&1 | \ ; RUN: FileCheck %s --check-prefix=CHECK-BROKEN-PREFIX -DFILE=%t-relative-path.o -DPREFIX=. -; CHECK-BROKEN-PREFIX: warning: '[[FILE]]': failed to find source [[PREFIX]]/Inputs/source-interleave-x86_64.c +; CHECK-BROKEN-PREFIX: warning: '[[FILE]]': failed to find source {{.*}}source-interleave-x86_64.c ;; Test invalid source interleave fixed by adding the correct prefix.