Skip to content

Commit f79efa9

Browse files
authored
[lld][test] Fix unintentional write to a non-writeable dir (#150436)
The test added in #147970 fails trying to write `a.out` when run in a non-writeable directory. I believe the intent was to write to /dev/null as the output, but `-o` was omitted, so it's actually linking *in* /dev/null and writing to `a.out`.
1 parent 3e9d369 commit f79efa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lld/test/ELF/aarch64-build-attributes-malformed.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# REQUIRES: aarch64
22

33
# RUN: llvm-mc -triple=aarch64 -filetype=obj %s -o %t.o
4-
# RUN: ld.lld %t.o /dev/null 2>&1 | FileCheck %s
4+
# RUN: ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
55

66
# CHECK: (.ARM.attributes): unexpected end of data at offset 0x3f while reading [0x3d, 0x41)
77

0 commit comments

Comments
 (0)