[lld] [lld][test] Removed curly braces from test to work with lit internal shell (PR #105137)

Connie Zhu via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 20 16:59:34 PDT 2024


connieyzhu wrote:

> Can we use `split-file` to make the test having several file inputs more obvious?

@lenary If you check the last line of the file, there's an `echo "script: info: called with $*"` that is referenced in parts of this file. When I used `split-file`, I also put that `echo` command into its own file as well, and replaced the instances of `%s` that use this command with the temp file name. It seems like lit is not able to handle this command properly when I put it into another file though, and I'm getting an error message saying that the file failed to execute. 

Do you happen to know a way to work around this? Let me know if you need more elaboration.

https://github.com/llvm/llvm-project/pull/105137


More information about the llvm-commits mailing list