Blame SOURCES/0001-PATCH-llvm-Make-source-interleave-prefix-test-case-c.patch

6a1e6b
From 60760d66030695105bcf4364f22b7f6053a25253 Mon Sep 17 00:00:00 2001
6a1e6b
From: serge-sans-paille <sguelton@redhat.com>
6a1e6b
Date: Thu, 8 Apr 2021 09:33:37 +0200
6a1e6b
Subject: [PATCH] [PATCH][llvm] Make source-interleave-prefix test case
6a1e6b
 compatible with llvm-test
6a1e6b
6a1e6b
llvm-test runs test from a directory that's not the upstream one, and that leads
6a1e6b
to some false positive. Workaround this by forcing the current working
6a1e6b
directory.
6a1e6b
---
6a1e6b
 llvm/test/tools/llvm-objdump/X86/source-interleave-prefix.test | 2 +-
6a1e6b
 1 file changed, 1 insertion(+), 1 deletion(-)
6a1e6b
6a1e6b
diff --git a/llvm/test/tools/llvm-objdump/X86/source-interleave-prefix.test b/llvm/test/tools/llvm-objdump/X86/source-interleave-prefix.test
6a1e6b
index 23ce55a..d260ee2 100644
6a1e6b
--- a/llvm/test/tools/llvm-objdump/X86/source-interleave-prefix.test
6a1e6b
+++ b/llvm/test/tools/llvm-objdump/X86/source-interleave-prefix.test
6a1e6b
@@ -5,7 +5,7 @@
6a1e6b
 
6a1e6b
 ; RUN: sed -e "s,SRC_COMPDIR,./Inputs,g" %p/Inputs/source-interleave.ll > %t-relative-path.ll
6a1e6b
 ; RUN: llc -o %t-relative-path.o -filetype=obj -mtriple=x86_64-pc-linux %t-relative-path.ll
6a1e6b
-; RUN: llvm-objdump --prefix myprefix --source %t-relative-path.o 2>&1 | \
6a1e6b
+; RUN: mkdir -p %t0 && cd %t0 && llvm-objdump --prefix myprefix --source %t-relative-path.o 2>&1 | \
6a1e6b
 ; RUN:   FileCheck %s --check-prefix=CHECK-BROKEN-PREFIX -DFILE=%t-relative-path.o -DPREFIX=.
6a1e6b
 ; CHECK-BROKEN-PREFIX: warning: '[[FILE]]': failed to find source [[PREFIX]]/Inputs/source-interleave-x86_64.c
6a1e6b
 
6a1e6b
-- 
6a1e6b
1.8.3.1
6a1e6b