[PATCH] D47839: Fix the test case that places intermediate in source directory

Han Shen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 6 11:45:12 PDT 2018


shenhan created this revision.
shenhan added a reviewer: echristo.
Herald added a reviewer: javed.absar.
Herald added a subscriber: llvm-commits.

Fix the problem that the test intermediate file is created in source file, it should be placed in a directory.

This causes "permission denied" error in some controlled test environment where source tree is read-only.


Repository:
  rL LLVM

https://reviews.llvm.org/D47839

Files:
  test/MC/ARM/fixup-per-fragment.s


Index: test/MC/ARM/fixup-per-fragment.s
===================================================================
--- test/MC/ARM/fixup-per-fragment.s
+++ test/MC/ARM/fixup-per-fragment.s
@@ -1,4 +1,4 @@
-@ RUN: not llvm-mc -triple armv7a-linux-gnueabihf %s -filetype=obj -o %s.o 2>&1 | FileCheck %s
+@ RUN: not llvm-mc -triple armv7a-linux-gnueabihf %s -filetype=obj -o %t.o 2>&1 | FileCheck %s
 
 @ The relaxations should be applied using the subtarget from the fragment
 @ containing the fixup and not the per module subtarget.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47839.150170.patch
Type: text/x-patch
Size: 525 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180606/f7204722/attachment.bin>


More information about the llvm-commits mailing list