mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
962e0146a4
In TestRunner.py, D78589 extracts a `_parseKeywords` function from `parseIntegratedTestScript`, which then expects `_parseKeywords` to always return a list of keyword/value pairs. However, the extracted code sometimes returns an unresolved `lit.Test.Result` on a keyword parsing error, which then produces a stack dump instead of the expected diagnostic. This patch fixes that, makes the style of those diagnostics more consistent, and extends the lit test suite to cover them. Reviewed By: ldionne Differential Revision: https://reviews.llvm.org/D81665
16 lines
572 B
Python
16 lines
572 B
Python
# RUN: not %{lit} -j 1 -vv %{inputs}/shtest-keyword-parse-errors > %t.out
|
|
# RUN: FileCheck -input-file %t.out %s
|
|
#
|
|
# END.
|
|
|
|
# CHECK: Testing: 3 tests
|
|
|
|
# CHECK-LABEL: UNRESOLVED: shtest-keyword-parse-errors :: empty.txt
|
|
# CHECK: {{^}}Test has no 'RUN:' line{{$}}
|
|
|
|
# CHECK-LABEL: UNRESOLVED: shtest-keyword-parse-errors :: multiple-allow-retries.txt
|
|
# CHECK: {{^}}Test has more than one ALLOW_RETRIES lines{{$}}
|
|
|
|
# CHECK-LABEL: UNRESOLVED: shtest-keyword-parse-errors :: unterminated-run.txt
|
|
# CHECK: {{^}}Test has unterminated 'RUN:' lines (with '\'){{$}}
|