[lld] a7ecf4c - Explicitly state the output file.

Sterling Augustine via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 12 21:30:54 PST 2020


Author: Sterling Augustine
Date: 2020-02-12T21:25:30-08:00
New Revision: a7ecf4c324eba8fd28a204f6aeb2f4971de75bdd

URL: https://github.com/llvm/llvm-project/commit/a7ecf4c324eba8fd28a204f6aeb2f4971de75bdd
DIFF: https://github.com/llvm/llvm-project/commit/a7ecf4c324eba8fd28a204f6aeb2f4971de75bdd.diff

LOG: Explicitly state the output file.

Summary:
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.

Reviewers: espindola

Subscribers: emaste, MaskRay, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D74523

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/lld/test/ELF/linkerscript/insert-not-exist.test b/lld/test/ELF/linkerscript/insert-not-exist.test
index 1f95070517e1..84a2366c2d80 100644
--- a/lld/test/ELF/linkerscript/insert-not-exist.test
+++ b/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


        


More information about the llvm-commits mailing list