2022-04-11 12:05:29 +00:00
|
|
|
From 7242925230776388c70b5bdf7e80aba92a9002c3 Mon Sep 17 00:00:00 2001
|
2021-02-16 10:40:45 +00:00
|
|
|
From: Konrad Kleine <kkleine@redhat.com>
|
|
|
|
Date: Tue, 27 Apr 2021 14:41:57 +0200
|
2022-04-11 12:05:29 +00:00
|
|
|
Subject: [PATCH] Make source-interleave-prefix test case compatible with
|
2022-02-14 17:08:51 +00:00
|
|
|
llvm-test
|
2021-02-16 10:40:45 +00:00
|
|
|
|
|
|
|
llvm-test runs test from a directory that's not the upstream one, and that leads
|
|
|
|
to some false positive. Workaround this by forcing the current working
|
|
|
|
directory.
|
|
|
|
---
|
|
|
|
llvm/test/tools/llvm-objdump/X86/source-interleave-prefix.test | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/llvm/test/tools/llvm-objdump/X86/source-interleave-prefix.test b/llvm/test/tools/llvm-objdump/X86/source-interleave-prefix.test
|
2022-04-11 12:05:29 +00:00
|
|
|
index 746add22..8b28b87 100644
|
2021-02-16 10:40:45 +00:00
|
|
|
--- a/llvm/test/tools/llvm-objdump/X86/source-interleave-prefix.test
|
|
|
|
+++ b/llvm/test/tools/llvm-objdump/X86/source-interleave-prefix.test
|
|
|
|
@@ -11,7 +11,7 @@
|
|
|
|
|
|
|
|
; RUN: sed -e "s,SRC_COMPDIR,./Inputs,g" %p/Inputs/source-interleave.ll > %t-relative-path.ll
|
|
|
|
; 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: mkdir -p %t0 && cd %t0 && 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=. -DCOMPDIR=/Inputs
|
|
|
|
; CHECK-BROKEN-PREFIX: warning: '[[FILE]]': failed to find source [[PREFIX]][[COMPDIR]]{{[/\\]}}source-interleave-x86_64.c
|
|
|
|
|
|
|
|
--
|
2022-04-11 12:05:29 +00:00
|
|
|
1.8.3.1
|
2021-02-16 10:40:45 +00:00
|
|
|
|