[lld] r297679 - Make FileOutputBuffer fail early if you pass a directory.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 13 15:19:05 PDT 2017
Author: ruiu
Date: Mon Mar 13 17:19:05 2017
New Revision: 297679
URL: http://llvm.org/viewvc/llvm-project?rev=297679&view=rev
Log:
Make FileOutputBuffer fail early if you pass a directory.
Previously, it created a temporary directory and then failed when
FileOutputBuffer tried to rename that file to the destination file
(which is actually a directory name).
Differential Revision: https://reviews.llvm.org/D30912
Modified:
lld/trunk/test/ELF/early-exit-for-bad-paths.s
Modified: lld/trunk/test/ELF/early-exit-for-bad-paths.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/early-exit-for-bad-paths.s?rev=297679&r1=297678&r2=297679&view=diff
==============================================================================
--- lld/trunk/test/ELF/early-exit-for-bad-paths.s (original)
+++ lld/trunk/test/ELF/early-exit-for-bad-paths.s Mon Mar 13 17:19:05 2017
@@ -20,6 +20,9 @@
# discovered we haven't bailed out early as expected.
# CHECK-NOT: undefined_symbol
+# RUN: not ld.lld %t.o -o / 2>&1 | FileCheck %s -check-prefixes=ROOT
+# ROOT: error: cannot open output file /
+
.globl _start
_start:
call undefined_symbol
More information about the llvm-commits
mailing list