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.
Details
Details
- Reviewers
• espindola mehdi_amini - Commits
- rGa7ecf4c324eb: Explicitly state the output file.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 46378 Build 48808: arc lint + arc unit
Event Timeline
Comment Actions
Writing to a temp file seems like generally the right pattern, if only because a concurrent test could race on the file creation/deletion.
lld/test/ELF/linkerscript/insert-not-exist.test | ||
---|---|---|
3 | -o /dev/null |
-o /dev/null