Skip to content

[Test] Adjust quoting in archive-thin.test for spaces in paths #151707

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lld/test/ELF/dtlto/archive-thin.test
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ RUN: mkdir %t/out && cd %t/out
## received JSON, pretty-prints the JSON and the supplied arguments, and then
## exits with an error. This allows FileCheck directives to verify the
## distributor inputs.
RUN: echo '%t/t1.a %t/lib/t2.a ../t3.a \
RUN: --thinlto-distributor="%python" \
RUN: --thinlto-distributor-arg="%llvm_src_root/utils/dtlto/validate.py"' > rsp
RUN: echo "%t/t1.a %t/lib/t2.a ../t3.a \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is ok , but the idiomatic way is to use outer single quotes and inner double quotes

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. I'll make that work and then adjust all the tests - I have used this pattern in a few places.

RUN: --thinlto-distributor=\"%python\" \
RUN: --thinlto-distributor-arg=\"%llvm_src_root/utils/dtlto/validate.py\"" > rsp

## Link thin archives using -u/--undefined.
RUN: not ld.lld @rsp -u t1 -u t2 -u t3 2>&1 | FileCheck %s
Expand Down