[llvm] bab5908 - Normalize working directory when running llvm-mc in test
via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 13 04:44:56 PDT 2020
Author: serge-sans-paille
Date: 2020-04-13T13:44:15+02:00
New Revision: bab5908df544680ada0a3cf431f55aeccfbdb321
URL: https://github.com/llvm/llvm-project/commit/bab5908df544680ada0a3cf431f55aeccfbdb321
DIFF: https://github.com/llvm/llvm-project/commit/bab5908df544680ada0a3cf431f55aeccfbdb321.diff
LOG: Normalize working directory when running llvm-mc in test
Otherwise, depending on the lit location used to run the test, llvm-mc adds an
include_directories entry in the dwarf output, which breaks tests in some setup.
Differential Revision: https://reviews.llvm.org/D77876
Added:
Modified:
llvm/test/MC/MachO/gen-dwarf.s
Removed:
################################################################################
diff --git a/llvm/test/MC/MachO/gen-dwarf.s b/llvm/test/MC/MachO/gen-dwarf.s
index 0813856d625f..6d39d278e818 100644
--- a/llvm/test/MC/MachO/gen-dwarf.s
+++ b/llvm/test/MC/MachO/gen-dwarf.s
@@ -1,4 +1,4 @@
-// RUN: llvm-mc -g -triple i386-apple-darwin10 %s -filetype=obj -o %t
+// RUN: mkdir -p %t0 && cd %t0 && llvm-mc -g -triple i386-apple-darwin10 %s -filetype=obj -o %t
// RUN: llvm-dwarfdump -all %t | FileCheck %s
.globl _bar
More information about the llvm-commits
mailing list