mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-04 06:51:56 +00:00
Fix llvm-rc tests.
Summary: Follow-up for D56743. * Add more "--" in llvm-rc invocations. * Add llvm-rc to the tools list. This uses full path to llvm-rc in test RUN lines (llvm-lit -v), making them copy-pasteable. Reviewers: mstorsjo, zturner Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D59858 llvm-svn: 357118
This commit is contained in:
parent
e9e01cc73a
commit
67646d0570
@ -145,7 +145,7 @@ tools.extend([
|
||||
'llvm-isel-fuzzer', 'llvm-opt-fuzzer', 'llvm-lib', 'llvm-link', 'llvm-lto',
|
||||
'llvm-lto2', 'llvm-mc', 'llvm-mca', 'llvm-modextract', 'llvm-nm',
|
||||
'llvm-objcopy', 'llvm-objdump', 'llvm-pdbutil', 'llvm-profdata',
|
||||
'llvm-ranlib', 'llvm-readelf', 'llvm-readobj', 'llvm-rtdyld', 'llvm-size',
|
||||
'llvm-ranlib', 'llvm-rc', 'llvm-readelf', 'llvm-readobj', 'llvm-rtdyld', 'llvm-size',
|
||||
'llvm-split', 'llvm-strings', 'llvm-strip', 'llvm-tblgen', 'llvm-undname',
|
||||
'llvm-c-test', 'llvm-cxxfilt', 'llvm-xray', 'yaml2obj', 'obj2yaml',
|
||||
'yaml-bench', 'verify-uselistorder', 'bugpoint', 'llc', 'llvm-symbolizer',
|
||||
|
@ -18,11 +18,11 @@
|
||||
; UTF8-NEXT: 0040: 00000000 |....|
|
||||
; UTF8-NEXT: )
|
||||
|
||||
; RUN: not llvm-rc /C 65001 /FO %t.utf8-escape-narrow.res %p/Inputs/utf8-escape-narrow.rc 2>&1 | FileCheck %s --check-prefix UTF8_ESCAPE
|
||||
; RUN: not llvm-rc /C 65001 /FO %t.utf8-escape-narrow.res -- %p/Inputs/utf8-escape-narrow.rc 2>&1 | FileCheck %s --check-prefix UTF8_ESCAPE
|
||||
; UTF8_ESCAPE: llvm-rc: Error in STRINGTABLE statement (ID 1):
|
||||
; UTF8_ESCAPE-NEXT: Unable to interpret single byte (195) as UTF-8
|
||||
|
||||
; RUN: llvm-rc /C 1252 /FO %t.cp1252.res %p/Inputs/cp1252.rc
|
||||
; RUN: llvm-rc /C 1252 /FO %t.cp1252.res -- %p/Inputs/cp1252.rc
|
||||
; RUN: llvm-readobj %t.cp1252.res | FileCheck %s --check-prefix=CP1252
|
||||
|
||||
; CP1252: Resource type (int): 6
|
||||
|
@ -17,36 +17,36 @@
|
||||
; CHECK-NEXT: Language: 5, Sublanguage: 7
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-expr-bad-binary-1.rc 2>&1 | FileCheck %s --check-prefix BINARY1
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-expr-bad-binary-1.rc 2>&1 | FileCheck %s --check-prefix BINARY1
|
||||
|
||||
; BINARY1: llvm-rc: Error parsing file: expected '-', '~', integer or '(', got &
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-expr-bad-binary-2.rc 2>&1 | FileCheck %s --check-prefix BINARY2
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-expr-bad-binary-2.rc 2>&1 | FileCheck %s --check-prefix BINARY2
|
||||
|
||||
; BINARY2: llvm-rc: Error parsing file: expected '-', '~', integer or '(', got |
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-expr-bad-binary-3.rc 2>&1 | FileCheck %s --check-prefix BINARY3
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-expr-bad-binary-3.rc 2>&1 | FileCheck %s --check-prefix BINARY3
|
||||
|
||||
; BINARY3: llvm-rc: Error parsing file: expected '-', '~', integer or '(', got +
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-expr-bad-unary.rc 2>&1 | FileCheck %s --check-prefix UNARY
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-expr-bad-unary.rc 2>&1 | FileCheck %s --check-prefix UNARY
|
||||
|
||||
; UNARY: llvm-rc: Error parsing file: expected ',', got ~
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-expr-unbalanced-1.rc 2>&1 | FileCheck %s --check-prefix UNBALANCED1
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-expr-unbalanced-1.rc 2>&1 | FileCheck %s --check-prefix UNBALANCED1
|
||||
|
||||
; UNBALANCED1: llvm-rc: Error parsing file: expected ')', got ,
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-expr-unbalanced-2.rc 2>&1 | FileCheck %s --check-prefix UNBALANCED2
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-expr-unbalanced-2.rc 2>&1 | FileCheck %s --check-prefix UNBALANCED2
|
||||
|
||||
; UNBALANCED2: llvm-rc: Error parsing file: expected ',', got )
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-expr-unbalanced-3.rc 2>&1 | FileCheck %s --check-prefix UNBALANCED3
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-expr-unbalanced-3.rc 2>&1 | FileCheck %s --check-prefix UNBALANCED3
|
||||
|
||||
; UNBALANCED3: llvm-rc: Error parsing file: expected ',', got )
|
||||
|
@ -100,156 +100,156 @@
|
||||
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-stringtable-no-string.rc 2>&1 | FileCheck %s --check-prefix PSTRINGTABLE1
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-stringtable-no-string.rc 2>&1 | FileCheck %s --check-prefix PSTRINGTABLE1
|
||||
|
||||
; PSTRINGTABLE1: llvm-rc: Error parsing file: expected string, got }
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-stringtable-weird-option.rc 2>&1 | FileCheck %s --check-prefix PSTRINGTABLE2
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-stringtable-weird-option.rc 2>&1 | FileCheck %s --check-prefix PSTRINGTABLE2
|
||||
|
||||
; PSTRINGTABLE2: llvm-rc: Error parsing file: expected optional statement type, BEGIN or '{', got NONSENSETYPE
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-eof.rc 2>&1 | FileCheck %s --check-prefix PEOF
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-eof.rc 2>&1 | FileCheck %s --check-prefix PEOF
|
||||
|
||||
; PEOF: llvm-rc: Error parsing file: expected '-', '~', integer or '(', got <EOF>
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-no-characteristics-arg.rc 2>&1 | FileCheck %s --check-prefix PCHARACTERISTICS1
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-no-characteristics-arg.rc 2>&1 | FileCheck %s --check-prefix PCHARACTERISTICS1
|
||||
|
||||
; PCHARACTERISTICS1: llvm-rc: Error parsing file: expected '-', '~', integer or '(', got BEGIN
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-nonsense-token.rc 2>&1 | FileCheck %s --check-prefix PNONSENSE1
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-nonsense-token.rc 2>&1 | FileCheck %s --check-prefix PNONSENSE1
|
||||
|
||||
; PNONSENSE1: llvm-rc: Error parsing file: expected int or identifier, got &
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-nonsense-type.rc 2>&1 | FileCheck %s --check-prefix PNONSENSE2
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-nonsense-type.rc 2>&1 | FileCheck %s --check-prefix PNONSENSE2
|
||||
|
||||
; PNONSENSE2: llvm-rc: Error parsing file: expected filename, '{' or BEGIN, got <EOF>
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-nonsense-type-eof.rc 2>&1 | FileCheck %s --check-prefix PNONSENSE3
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-nonsense-type-eof.rc 2>&1 | FileCheck %s --check-prefix PNONSENSE3
|
||||
|
||||
; PNONSENSE3: llvm-rc: Error parsing file: expected int or identifier, got <EOF>
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-language-no-comma.rc 2>&1 | FileCheck %s --check-prefix PLANGUAGE1
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-language-no-comma.rc 2>&1 | FileCheck %s --check-prefix PLANGUAGE1
|
||||
|
||||
; PLANGUAGE1: llvm-rc: Error parsing file: expected ',', got 7
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-language-too-many-commas.rc 2>&1 | FileCheck %s --check-prefix PLANGUAGE2
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-language-too-many-commas.rc 2>&1 | FileCheck %s --check-prefix PLANGUAGE2
|
||||
|
||||
; PLANGUAGE2: llvm-rc: Error parsing file: expected '-', '~', integer or '(', got ,
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-html-extra-comma.rc 2>&1 | FileCheck %s --check-prefix PHTML2
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-html-extra-comma.rc 2>&1 | FileCheck %s --check-prefix PHTML2
|
||||
|
||||
; PHTML2: llvm-rc: Error parsing file: expected string, got ,
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-accelerators-bad-flag.rc 2>&1 | FileCheck %s --check-prefix PACCELERATORS1
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-accelerators-bad-flag.rc 2>&1 | FileCheck %s --check-prefix PACCELERATORS1
|
||||
|
||||
; PACCELERATORS1: llvm-rc: Error parsing file: expected ASCII/VIRTKEY/NOINVERT/ALT/SHIFT/CONTROL, got HELLO
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-accelerators-bad-int-or-string.rc 2>&1 | FileCheck %s --check-prefix PACCELERATORS2
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-accelerators-bad-int-or-string.rc 2>&1 | FileCheck %s --check-prefix PACCELERATORS2
|
||||
|
||||
; PACCELERATORS2: llvm-rc: Error parsing file: expected int or string, got NotIntOrString
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-accelerators-no-comma.rc 2>&1 | FileCheck %s --check-prefix PACCELERATORS3
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-accelerators-no-comma.rc 2>&1 | FileCheck %s --check-prefix PACCELERATORS3
|
||||
|
||||
; PACCELERATORS3: llvm-rc: Error parsing file: expected int or string, got CONTROL
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-accelerators-no-comma-2.rc 2>&1 | FileCheck %s --check-prefix PACCELERATORS4
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-accelerators-no-comma-2.rc 2>&1 | FileCheck %s --check-prefix PACCELERATORS4
|
||||
|
||||
; PACCELERATORS4: llvm-rc: Error parsing file: expected ',', got 10
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-menu-bad-id.rc 2>&1 | FileCheck %s --check-prefix PMENU1
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-menu-bad-id.rc 2>&1 | FileCheck %s --check-prefix PMENU1
|
||||
|
||||
; PMENU1: llvm-rc: Error parsing file: expected '-', '~', integer or '(', got A
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-menu-bad-flag.rc 2>&1 | FileCheck %s --check-prefix PMENU2
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-menu-bad-flag.rc 2>&1 | FileCheck %s --check-prefix PMENU2
|
||||
|
||||
; PMENU2: llvm-rc: Error parsing file: expected CHECKED/GRAYED/HELP/INACTIVE/MENUBARBREAK/MENUBREAK, got ERRONEOUS
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-menu-missing-block.rc 2>&1 | FileCheck %s --check-prefix PMENU3
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-menu-missing-block.rc 2>&1 | FileCheck %s --check-prefix PMENU3
|
||||
|
||||
; PMENU3: llvm-rc: Error parsing file: expected '{', got POPUP
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-menu-misspelled-separator.rc 2>&1 | FileCheck %s --check-prefix PMENU4
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-menu-misspelled-separator.rc 2>&1 | FileCheck %s --check-prefix PMENU4
|
||||
|
||||
; PMENU4: llvm-rc: Error parsing file: expected SEPARATOR or string, got NOTSEPARATOR
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-dialog-cant-give-helpid.rc 2>&1 | FileCheck %s --check-prefix PDIALOG1
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-dialog-cant-give-helpid.rc 2>&1 | FileCheck %s --check-prefix PDIALOG1
|
||||
|
||||
; PDIALOG1: llvm-rc: Error parsing file: expected identifier, got ,
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-dialog-too-few-args.rc 2>&1 | FileCheck %s --check-prefix PDIALOG2
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-dialog-too-few-args.rc 2>&1 | FileCheck %s --check-prefix PDIALOG2
|
||||
|
||||
; PDIALOG2: llvm-rc: Error parsing file: expected ',', got }
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-dialog-too-many-args.rc 2>&1 | FileCheck %s --check-prefix PDIALOG3
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-dialog-too-many-args.rc 2>&1 | FileCheck %s --check-prefix PDIALOG3
|
||||
|
||||
; PDIALOG3: llvm-rc: Error parsing file: expected identifier, got ,
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-dialog-unknown-type.rc 2>&1 | FileCheck %s --check-prefix PDIALOG4
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-dialog-unknown-type.rc 2>&1 | FileCheck %s --check-prefix PDIALOG4
|
||||
|
||||
; PDIALOG4: llvm-rc: Error parsing file: expected control type, END or '}', got UNKNOWN
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-dialog-unnecessary-string.rc 2>&1 | FileCheck %s --check-prefix PDIALOG5
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-dialog-unnecessary-string.rc 2>&1 | FileCheck %s --check-prefix PDIALOG5
|
||||
|
||||
; PDIALOG5: llvm-rc: Error parsing file: expected '-', '~', integer or '(', got "This shouldn't be here"
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-dialog-simple-font.rc 2>&1 | FileCheck %s --check-prefix PDIALOG6
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-dialog-simple-font.rc 2>&1 | FileCheck %s --check-prefix PDIALOG6
|
||||
|
||||
; PDIALOG6: llvm-rc: Error parsing file: expected identifier, got ,
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-versioninfo-wrong-fixed.rc 2>&1 | FileCheck %s --check-prefix PVERSIONINFO1
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-versioninfo-wrong-fixed.rc 2>&1 | FileCheck %s --check-prefix PVERSIONINFO1
|
||||
|
||||
; PVERSIONINFO1: llvm-rc: Error parsing file: expected fixed VERSIONINFO statement type, got WEIRDFIXED
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-versioninfo-named-main-block.rc 2>&1 | FileCheck %s --check-prefix PVERSIONINFO2
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-versioninfo-named-main-block.rc 2>&1 | FileCheck %s --check-prefix PVERSIONINFO2
|
||||
|
||||
; PVERSIONINFO2: llvm-rc: Error parsing file: expected fixed VERSIONINFO statement type, got BLOCK
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-versioninfo-unnamed-inner-block.rc 2>&1 | FileCheck %s --check-prefix PVERSIONINFO3
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-versioninfo-unnamed-inner-block.rc 2>&1 | FileCheck %s --check-prefix PVERSIONINFO3
|
||||
|
||||
; PVERSIONINFO3: llvm-rc: Error parsing file: expected string, got {
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-versioninfo-unnamed-value.rc 2>&1 | FileCheck %s --check-prefix PVERSIONINFO4
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-versioninfo-unnamed-value.rc 2>&1 | FileCheck %s --check-prefix PVERSIONINFO4
|
||||
|
||||
; PVERSIONINFO4: llvm-rc: Error parsing file: expected string, got END
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-versioninfo-bad-type.rc 2>&1 | FileCheck %s --check-prefix PVERSIONINFO5
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-versioninfo-bad-type.rc 2>&1 | FileCheck %s --check-prefix PVERSIONINFO5
|
||||
|
||||
; PVERSIONINFO5: llvm-rc: Error parsing file: expected BLOCK or VALUE, got INCORRECT
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-versioninfo-repeated-fixed.rc 2>&1 | FileCheck %s --check-prefix PVERSIONINFO6
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-versioninfo-repeated-fixed.rc 2>&1 | FileCheck %s --check-prefix PVERSIONINFO6
|
||||
|
||||
; PVERSIONINFO6: llvm-rc: Error parsing file: expected yet unread fixed VERSIONINFO statement type, got FILEVERSION
|
||||
|
||||
|
||||
; RUN: not llvm-rc /dry-run /V %p/Inputs/parser-user-invalid-contents.rc 2>&1 | FileCheck %s --check-prefix PUSER1
|
||||
; RUN: not llvm-rc /dry-run /V -- %p/Inputs/parser-user-invalid-contents.rc 2>&1 | FileCheck %s --check-prefix PUSER1
|
||||
|
||||
; PUSER1: llvm-rc: Error parsing file: expected int or string, got InvalidToken
|
||||
|
@ -79,79 +79,79 @@
|
||||
; ACCELERATORS-NEXT: )
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t %p/Inputs/tag-accelerators-bad-id.rc 2>&1 | FileCheck %s --check-prefix BADID
|
||||
; RUN: not llvm-rc /FO %t -- %p/Inputs/tag-accelerators-bad-id.rc 2>&1 | FileCheck %s --check-prefix BADID
|
||||
|
||||
; BADID: llvm-rc: Error in ACCELERATORS statement (ID 1):
|
||||
; BADID-NEXT: ACCELERATORS entry ID (1234567) does not fit in 16 bits.
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t %p/Inputs/tag-accelerators-ascii-virtkey.rc 2>&1 | FileCheck %s --check-prefix ASCII1
|
||||
; RUN: not llvm-rc /FO %t -- %p/Inputs/tag-accelerators-ascii-virtkey.rc 2>&1 | FileCheck %s --check-prefix ASCII1
|
||||
|
||||
; ASCII1: llvm-rc: Error in ACCELERATORS statement (ID 2):
|
||||
; ASCII1-NEXT: Accelerator ID 15: Accelerator can't be both ASCII and VIRTKEY
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t %p/Inputs/tag-accelerators-ascii-control.rc 2>&1 | FileCheck %s --check-prefix ASCII2
|
||||
; RUN: not llvm-rc /FO %t -- %p/Inputs/tag-accelerators-ascii-control.rc 2>&1 | FileCheck %s --check-prefix ASCII2
|
||||
|
||||
; ASCII2: llvm-rc: Error in ACCELERATORS statement (ID 2):
|
||||
; ASCII2-NEXT: Accelerator ID 15: Can only apply ALT, SHIFT or CONTROL to VIRTKEY accelerators
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t %p/Inputs/tag-accelerators-ascii-shift.rc 2>&1 | FileCheck %s --check-prefix ASCII3
|
||||
; RUN: not llvm-rc /FO %t -- %p/Inputs/tag-accelerators-ascii-shift.rc 2>&1 | FileCheck %s --check-prefix ASCII3
|
||||
|
||||
; ASCII3: llvm-rc: Error in ACCELERATORS statement (ID 2):
|
||||
; ASCII3-NEXT: Accelerator ID 15: Can only apply ALT, SHIFT or CONTROL to VIRTKEY accelerators
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t %p/Inputs/tag-accelerators-ascii-alt.rc 2>&1 | FileCheck %s --check-prefix ASCII4
|
||||
; RUN: not llvm-rc /FO %t -- %p/Inputs/tag-accelerators-ascii-alt.rc 2>&1 | FileCheck %s --check-prefix ASCII4
|
||||
|
||||
; ASCII4: llvm-rc: Error in ACCELERATORS statement (ID 2):
|
||||
; ASCII4-NEXT: Accelerator ID 15: Can only apply ALT, SHIFT or CONTROL to VIRTKEY accelerators
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t %p/Inputs/tag-accelerators-bad-key-id.rc 2>&1 | FileCheck %s --check-prefix BADKEYID
|
||||
; RUN: not llvm-rc /FO %t -- %p/Inputs/tag-accelerators-bad-key-id.rc 2>&1 | FileCheck %s --check-prefix BADKEYID
|
||||
|
||||
; BADKEYID: llvm-rc: Error in ACCELERATORS statement (ID 9):
|
||||
; BADKEYID-NEXT: Numeric event key ID (1234567) does not fit in 16 bits.
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t %p/Inputs/tag-accelerators-too-short.rc 2>&1 | FileCheck %s --check-prefix LENGTH1
|
||||
; RUN: not llvm-rc /FO %t -- %p/Inputs/tag-accelerators-too-short.rc 2>&1 | FileCheck %s --check-prefix LENGTH1
|
||||
|
||||
; LENGTH1: llvm-rc: Error in ACCELERATORS statement (ID 10):
|
||||
; LENGTH1-NEXT: Accelerator ID 12: Accelerator string events should have length 1 or 2
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t %p/Inputs/tag-accelerators-too-long.rc 2>&1 | FileCheck %s --check-prefix LENGTH2
|
||||
; RUN: not llvm-rc /FO %t -- %p/Inputs/tag-accelerators-too-long.rc 2>&1 | FileCheck %s --check-prefix LENGTH2
|
||||
|
||||
; LENGTH2: llvm-rc: Error in ACCELERATORS statement (ID 12):
|
||||
; LENGTH2-NEXT: Accelerator ID 5: Accelerator string events should have length 1 or 2
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t %p/Inputs/tag-accelerators-only-caret.rc 2>&1 | FileCheck %s --check-prefix CARET1
|
||||
; RUN: not llvm-rc /FO %t -- %p/Inputs/tag-accelerators-only-caret.rc 2>&1 | FileCheck %s --check-prefix CARET1
|
||||
|
||||
; CARET1: llvm-rc: Error in ACCELERATORS statement (ID 555):
|
||||
; CARET1-NEXT: Accelerator ID 100: No character following '^' in accelerator event
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t %p/Inputs/tag-accelerators-no-caret.rc 2>&1 | FileCheck %s --check-prefix CARET2
|
||||
; RUN: not llvm-rc /FO %t -- %p/Inputs/tag-accelerators-no-caret.rc 2>&1 | FileCheck %s --check-prefix CARET2
|
||||
|
||||
; CARET2: llvm-rc: Error in ACCELERATORS statement (ID 50):
|
||||
; CARET2-NEXT: Accelerator ID 1: Event string should be one-character, possibly preceded by '^'
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t %p/Inputs/tag-accelerators-long-virtkey.rc 2>&1 | FileCheck %s --check-prefix CARET3
|
||||
; RUN: not llvm-rc /FO %t -- %p/Inputs/tag-accelerators-long-virtkey.rc 2>&1 | FileCheck %s --check-prefix CARET3
|
||||
|
||||
; CARET3: llvm-rc: Error in ACCELERATORS statement (ID 100):
|
||||
; CARET3-NEXT: Accelerator ID 10: VIRTKEY accelerator events can't be preceded by '^'
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t %p/Inputs/tag-accelerators-control-nonalpha.rc 2>&1 | FileCheck %s --check-prefix NONALPHA1
|
||||
; RUN: not llvm-rc /FO %t -- %p/Inputs/tag-accelerators-control-nonalpha.rc 2>&1 | FileCheck %s --check-prefix NONALPHA1
|
||||
|
||||
; NONALPHA1: llvm-rc: Error in ACCELERATORS statement (ID 100):
|
||||
; NONALPHA1-NEXT: Accelerator ID 1: Control character accelerator event should be alphabetic
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t %p/Inputs/tag-accelerators-virtual-nonalpha.rc 2>&1 | FileCheck %s --check-prefix NONALPHA2
|
||||
; RUN: not llvm-rc /FO %t -- %p/Inputs/tag-accelerators-virtual-nonalpha.rc 2>&1 | FileCheck %s --check-prefix NONALPHA2
|
||||
|
||||
; NONALPHA2: llvm-rc: Error in ACCELERATORS statement (ID 42):
|
||||
; NONALPHA2-NEXT: Accelerator ID 1: Non-alphanumeric characters cannot describe virtual keys
|
||||
|
@ -163,7 +163,7 @@
|
||||
; DIALOG-NEXT: )
|
||||
|
||||
|
||||
; RUN: llvm-rc /FO %t %p/Inputs/tag-dialog-headers.rc
|
||||
; RUN: llvm-rc /FO %t -- %p/Inputs/tag-dialog-headers.rc
|
||||
; RUN: llvm-readobj %t | FileCheck %s --check-prefix=HEADERS
|
||||
|
||||
; HEADERS: Resource type (int): 5
|
||||
@ -636,73 +636,73 @@
|
||||
; HEADERS-NEXT: )
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t %p/Inputs/tag-dialog-large-coord.rc 2>&1 | FileCheck %s --check-prefix COORD1
|
||||
; RUN: not llvm-rc /FO %t -- %p/Inputs/tag-dialog-large-coord.rc 2>&1 | FileCheck %s --check-prefix COORD1
|
||||
|
||||
; COORD1: llvm-rc: Error in DIALOGEX statement (ID 1):
|
||||
; COORD1-NEXT: Dialog x-coordinate (50000) does not fit in 16-bit signed integer type.
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t %p/Inputs/tag-dialog-large-coord-neg.rc 2>&1 | FileCheck %s --check-prefix COORD2
|
||||
; RUN: not llvm-rc /FO %t -- %p/Inputs/tag-dialog-large-coord-neg.rc 2>&1 | FileCheck %s --check-prefix COORD2
|
||||
|
||||
; COORD2: llvm-rc: Error in DIALOG statement (ID 1):
|
||||
; COORD2-NEXT: Dialog y-coordinate (-40000) does not fit in 16-bit signed integer type.
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t %p/Inputs/tag-dialog-large-size.rc 2>&1 | FileCheck %s --check-prefix COORD3
|
||||
; RUN: not llvm-rc /FO %t -- %p/Inputs/tag-dialog-large-size.rc 2>&1 | FileCheck %s --check-prefix COORD3
|
||||
|
||||
; COORD3: llvm-rc: Error in DIALOGEX statement (ID 1):
|
||||
; COORD3-NEXT: Dialog height (32768) does not fit in 16-bit signed integer type.
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t %p/Inputs/tag-dialog-negative-size.rc 2>&1 | FileCheck %s --check-prefix COORD4
|
||||
; RUN: not llvm-rc /FO %t -- %p/Inputs/tag-dialog-negative-size.rc 2>&1 | FileCheck %s --check-prefix COORD4
|
||||
|
||||
; COORD4: llvm-rc: Error in DIALOGEX statement (ID 1):
|
||||
; COORD4-NEXT: Dialog width (-50) cannot be negative.
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t %p/Inputs/tag-dialog-ctl-large-coord.rc 2>&1 | FileCheck %s --check-prefix CTL-COORD1
|
||||
; RUN: not llvm-rc /FO %t -- %p/Inputs/tag-dialog-ctl-large-coord.rc 2>&1 | FileCheck %s --check-prefix CTL-COORD1
|
||||
|
||||
; CTL-COORD1: llvm-rc: Error in DIALOGEX statement (ID 1):
|
||||
; CTL-COORD1-NEXT: Error in LTEXT control (ID 1):
|
||||
; CTL-COORD1-NEXT: Dialog control x-coordinate (44444) does not fit in 16-bit signed integer type.
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t %p/Inputs/tag-dialog-ctl-large-coord-neg.rc 2>&1 | FileCheck %s --check-prefix CTL-COORD2
|
||||
; RUN: not llvm-rc /FO %t -- %p/Inputs/tag-dialog-ctl-large-coord-neg.rc 2>&1 | FileCheck %s --check-prefix CTL-COORD2
|
||||
|
||||
; CTL-COORD2: llvm-rc: Error in DIALOG statement (ID 1):
|
||||
; CTL-COORD2-NEXT: Error in LTEXT control (ID 1):
|
||||
; CTL-COORD2-NEXT: Dialog control y-coordinate (-32769) does not fit in 16-bit signed integer type.
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t %p/Inputs/tag-dialog-ctl-large-size.rc 2>&1 | FileCheck %s --check-prefix CTL-COORD3
|
||||
; RUN: not llvm-rc /FO %t -- %p/Inputs/tag-dialog-ctl-large-size.rc 2>&1 | FileCheck %s --check-prefix CTL-COORD3
|
||||
|
||||
; CTL-COORD3: llvm-rc: Error in DIALOGEX statement (ID 1):
|
||||
; CTL-COORD3-NEXT: Error in LTEXT control (ID 1):
|
||||
; CTL-COORD3-NEXT: Dialog control width (40000) does not fit in 16-bit signed integer type.
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t %p/Inputs/tag-dialog-ctl-negative-size.rc 2>&1 | FileCheck %s --check-prefix CTL-COORD4
|
||||
; RUN: not llvm-rc /FO %t -- %p/Inputs/tag-dialog-ctl-negative-size.rc 2>&1 | FileCheck %s --check-prefix CTL-COORD4
|
||||
|
||||
; CTL-COORD4: llvm-rc: Error in DIALOG statement (ID 1):
|
||||
; CTL-COORD4-NEXT: Error in LTEXT control (ID 1):
|
||||
; CTL-COORD4-NEXT: Dialog control height (-700) cannot be negative.
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t %p/Inputs/tag-dialog-ctl-large-id.rc 2>&1 | FileCheck %s --check-prefix CTL-ID
|
||||
; RUN: not llvm-rc /FO %t -- %p/Inputs/tag-dialog-ctl-large-id.rc 2>&1 | FileCheck %s --check-prefix CTL-ID
|
||||
|
||||
; CTL-ID: llvm-rc: Error in DIALOG statement (ID 5):
|
||||
; CTL-ID-NEXT: Error in RTEXT control (ID 100000):
|
||||
; CTL-ID-NEXT: Control ID in simple DIALOG resource (100000) does not fit in 16 bits.
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t %p/Inputs/tag-dialog-ctl-large-ref-id.rc 2>&1 | FileCheck %s --check-prefix CTL-REF-ID
|
||||
; RUN: not llvm-rc /FO %t -- %p/Inputs/tag-dialog-ctl-large-ref-id.rc 2>&1 | FileCheck %s --check-prefix CTL-REF-ID
|
||||
|
||||
; CTL-REF-ID: llvm-rc: Error in DIALOGEX statement (ID 1):
|
||||
; CTL-REF-ID-NEXT: Error in CTEXT control (ID 42):
|
||||
; CTL-REF-ID-NEXT: Control reference ID (65536) does not fit in 16 bits.
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t %p/Inputs/tag-dialog-bad-style.rc 2>&1 | FileCheck %s --check-prefix STYLE
|
||||
; RUN: not llvm-rc /FO %t -- %p/Inputs/tag-dialog-bad-style.rc 2>&1 | FileCheck %s --check-prefix STYLE
|
||||
|
||||
; STYLE: llvm-rc: Error in DIALOG statement (ID 1):
|
||||
; STYLE-NEXT: 16 higher bits of DIALOG resource style cannot be equal to 0xFFFF
|
||||
|
@ -320,12 +320,12 @@
|
||||
; CHECK-NEXT: )
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t/1 %p/Inputs/tag-icon-cursor-nonexistent.rc 2>&1 | FileCheck %s --check-prefix NOFILE
|
||||
; RUN: not llvm-rc /FO %t/1 -- %p/Inputs/tag-icon-cursor-nonexistent.rc 2>&1 | FileCheck %s --check-prefix NOFILE
|
||||
; NOFILE: llvm-rc: Error in CURSOR statement (ID 500):
|
||||
; NOFILE-NEXT: file not found : this-file-does-not-exist.cur
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t/1 %p/Inputs/tag-icon-cursor-nonsense.rc 2>&1 | FileCheck %s --check-prefix NONSENSE
|
||||
; RUN: not llvm-rc /FO %t/1 -- %p/Inputs/tag-icon-cursor-nonsense.rc 2>&1 | FileCheck %s --check-prefix NONSENSE
|
||||
|
||||
; NONSENSE: llvm-rc: Error in ICON statement (ID 1):
|
||||
; NONSENSE-NEXT: Incorrect icon/cursor Reserved field; should be 0.
|
||||
|
@ -74,7 +74,7 @@
|
||||
; MENU-NEXT: )
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t %p/Inputs/tag-menu-bad-menuitem-id.rc 2>&1 | FileCheck %s --check-prefix BADID
|
||||
; RUN: not llvm-rc /FO %t -- %p/Inputs/tag-menu-bad-menuitem-id.rc 2>&1 | FileCheck %s --check-prefix BADID
|
||||
|
||||
; BADID: llvm-rc: Error in MENU statement (ID 1):
|
||||
; BADID-NEXT: MENUITEM action ID (100000) does not fit in 16 bits.
|
||||
|
@ -81,7 +81,7 @@
|
||||
; CHECK-NEXT: )
|
||||
|
||||
|
||||
; RUN: llvm-rc /N /FO %t0 %p/Inputs/tag-stringtable-basic.rc
|
||||
; RUN: llvm-rc /N /FO %t0 -- %p/Inputs/tag-stringtable-basic.rc
|
||||
; RUN: llvm-readobj %t0 | FileCheck %s --check-prefix=NULL
|
||||
|
||||
; NULL: Resource type (int): 6
|
||||
@ -166,5 +166,5 @@
|
||||
; NULL-NEXT: )
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t %p/Inputs/tag-stringtable-same-ids.rc 2>&1 | FileCheck %s --check-prefix SAMEIDS
|
||||
; RUN: not llvm-rc /FO %t -- %p/Inputs/tag-stringtable-same-ids.rc 2>&1 | FileCheck %s --check-prefix SAMEIDS
|
||||
; SAMEIDS: llvm-rc: Multiple STRINGTABLE strings located under ID 1
|
||||
|
@ -56,11 +56,11 @@
|
||||
; CHECK-NEXT: )
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t %p/Inputs/tag-versioninfo-mixed-ints-strings.rc 2>&1 | FileCheck %s --check-prefix STRINT
|
||||
; RUN: not llvm-rc /FO %t -- %p/Inputs/tag-versioninfo-mixed-ints-strings.rc 2>&1 | FileCheck %s --check-prefix STRINT
|
||||
; STRINT: llvm-rc: Error in VERSIONINFO statement (ID 1):
|
||||
; STRINT-NEXT: VALUE "FileDescription" cannot contain both strings and integers
|
||||
|
||||
|
||||
; RUN: not llvm-rc /FO %t %p/Inputs/tag-versioninfo-word-too-large.rc 2>&1 | FileCheck %s --check-prefix WORD
|
||||
; RUN: not llvm-rc /FO %t -- %p/Inputs/tag-versioninfo-word-too-large.rc 2>&1 | FileCheck %s --check-prefix WORD
|
||||
; WORD: llvm-rc: Error in VERSIONINFO statement (ID 1):
|
||||
; WORD-NEXT: VERSIONINFO integer value (65536) does not fit in 16 bits.
|
||||
|
Loading…
Reference in New Issue
Block a user