diff options
author | Jordan Rupprecht <rupprecht@google.com> | 2025-07-24 10:17:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-24 10:17:00 -0500 |
commit | f79efa986d61700d3fcfd22390bc1aa17d0d454c (patch) | |
tree | ad16e2170ffce1092b986ed3ba42a451268c006d | |
parent | 3e9d369c5c8ebc8c1568a288672236195b2e3685 (diff) | |
download | llvm-f79efa986d61700d3fcfd22390bc1aa17d0d454c.zip llvm-f79efa986d61700d3fcfd22390bc1aa17d0d454c.tar.gz llvm-f79efa986d61700d3fcfd22390bc1aa17d0d454c.tar.bz2 |
[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`.
-rw-r--r-- | lld/test/ELF/aarch64-build-attributes-malformed.s | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/test/ELF/aarch64-build-attributes-malformed.s b/lld/test/ELF/aarch64-build-attributes-malformed.s index f40da1a..c8a0fd6 100644 --- a/lld/test/ELF/aarch64-build-attributes-malformed.s +++ b/lld/test/ELF/aarch64-build-attributes-malformed.s @@ -1,7 +1,7 @@ # REQUIRES: aarch64 # RUN: llvm-mc -triple=aarch64 -filetype=obj %s -o %t.o -# RUN: ld.lld %t.o /dev/null 2>&1 | FileCheck %s +# RUN: ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s # CHECK: (.ARM.attributes): unexpected end of data at offset 0x3f while reading [0x3d, 0x41) |