Skip to content

Commit 721e8f3

Browse files
committed
[ELF] Improve unknown -z test
1 parent b20360a commit 721e8f3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lld/test/ELF/driver.test

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,13 @@
5353
# RUN: not ld.lld %t -output=/no/such/file 2>&1 | FileCheck -check-prefix=ERR9 %s
5454
# ERR9: cannot open output file utput=/no/such/file
5555

56-
# RUN: ld.lld %t -z foo -o /dev/null 2>&1 | FileCheck -check-prefix=ERR10 %s
57-
# RUN: ld.lld %t -z foo -o /dev/null --version 2>&1 | FileCheck -check-prefix=ERR10 %s
56+
# RUN: ld.lld %t -z foo -o /dev/null 2>&1 | FileCheck -check-prefix=ERR10 %s --implicit-check-not=warning:
57+
# RUN: ld.lld %t -z foo -z rel -z rela -z max-page-size=1 -z common-page-size=1 -o /dev/null --version 2>&1 | \
58+
# RUN: FileCheck -check-prefix=ERR10 %s --implicit-check-not=warning:
5859
# ERR10: warning: unknown -z value: foo
5960

6061
## Check we report "unknown -z value" error even with -v.
61-
# RUN: ld.lld %t -z foo -o /dev/null -v 2>&1 | FileCheck -check-prefix=ERR10 %s
62+
# RUN: ld.lld %t -z foo -z rel -o /dev/null -v 2>&1 | FileCheck -check-prefix=ERR10 %s --implicit-check-not=warning:
6263

6364
## Note: in GNU ld, --fatal-warning still leads to a warning.
6465
# RUN: not ld.lld %t -z foo --fatal-warnings 2>&1 | FileCheck --check-prefix=ERR10-FATAL %s

0 commit comments

Comments
 (0)