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