Skip to content

Commit

Permalink
[lld][test] Relax test assertion of cmake defaults appearing in --ver…
Browse files Browse the repository at this point in the history
…sion output.

D93491 implemented `--version` for the MachO LLD port, but asserts that the string contains something like "LLD N.N". However, this is just the cmake default for `LLD_VERSION_STRING`, and downstream users may choose a different value, e.g. a rolling distro may print "LLD trunk".
  • Loading branch information
rupprecht committed Dec 23, 2020
1 parent 7143923 commit be89d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lld/test/MachO/driver.test
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# RUN: %lld --version | FileCheck -check-prefix=VERSION %s
VERSION: {{LLD [0-9]+\.[0-9]+}}
VERSION: LLD

# RUN: not %lld ---help 2>&1 | FileCheck -check-prefix=SPELLHELP %s
SPELLHELP: error: unknown argument '---help', did you mean '--help'
Expand Down

0 comments on commit be89d74

Please sign in to comment.