[PATCH] D74523: Explicitly state the output file.

Sterling Augustine via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 12 21:28:32 PST 2020


saugustine created this revision.
Herald added subscribers: llvm-commits, MaskRay, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.

Even though this test is a check for failure, lld still attempts
to open the final output file, which fails when the default "a.out"
file is used and the current directory is read-only. Specifying an
output file works around this problem.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D74523

Files:
  lld/test/ELF/linkerscript/insert-not-exist.test


Index: lld/test/ELF/linkerscript/insert-not-exist.test
===================================================================
--- lld/test/ELF/linkerscript/insert-not-exist.test
+++ lld/test/ELF/linkerscript/insert-not-exist.test
@@ -1,6 +1,6 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64 %p/Inputs/insert-after.s -o %t.o
-# RUN: not ld.lld -T %s %t.o 2>&1 | FileCheck %s
+# RUN: not ld.lld -T %s %t.o -o %t.out 2>&1 | FileCheck %s
 
 # CHECK: error: unable to insert .foo.data after .not_exist
 # CHECK: error: unable to insert .foo.text before .not_exist


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74523.244330.patch
Type: text/x-patch
Size: 573 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200213/a67c7d1d/attachment-0001.bin>


More information about the llvm-commits mailing list