Blame SOURCES/bab5908df544680ada0a3cf431f55aeccfbdb321.patch

c8621d
From bab5908df544680ada0a3cf431f55aeccfbdb321 Mon Sep 17 00:00:00 2001
c8621d
From: serge-sans-paille <sguelton@redhat.com>
c8621d
Date: Mon, 13 Apr 2020 13:44:15 +0200
c8621d
Subject: [PATCH] Normalize working directory when running llvm-mc in test
c8621d
c8621d
Otherwise, depending on the lit location used to run the test, llvm-mc adds an
c8621d
include_directories entry in the dwarf output, which breaks tests in some setup.
c8621d
c8621d
Differential Revision: https://reviews.llvm.org/D77876
c8621d
---
c8621d
 llvm/test/MC/MachO/gen-dwarf.s | 2 +-
c8621d
 1 file changed, 1 insertion(+), 1 deletion(-)
c8621d
c8621d
diff --git a/llvm/test/MC/MachO/gen-dwarf.s b/llvm/test/MC/MachO/gen-dwarf.s
c8621d
index 0813856d625f..6d39d278e818 100644
c8621d
--- a/llvm/test/MC/MachO/gen-dwarf.s
c8621d
+++ b/llvm/test/MC/MachO/gen-dwarf.s
c8621d
@@ -1,4 +1,4 @@
c8621d
-// RUN: llvm-mc -g -triple i386-apple-darwin10 %s -filetype=obj -o %t
c8621d
+// RUN: mkdir -p %t0 && cd %t0 && llvm-mc -g -triple i386-apple-darwin10 %s -filetype=obj -o %t
c8621d
 // RUN: llvm-dwarfdump -all %t | FileCheck %s
c8621d
 
c8621d
 .globl _bar