libcamera: test: Add a failing test for the log level parser
Log level parsing doesn't always work as expected. Add a failing test for that. Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
c19047dfdf
commit
8ea3ef083f
2 changed files with 41 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
log_test = [
|
||||
{'name': 'log_api', 'sources': ['log_api.cpp']},
|
||||
{'name': 'log_api', 'sources': ['log_api.cpp'], 'should_fail': true},
|
||||
{'name': 'log_process', 'sources': ['log_process.cpp']},
|
||||
]
|
||||
|
||||
|
@ -11,5 +11,6 @@ foreach test : log_test
|
|||
link_with : test_libraries,
|
||||
include_directories : test_includes_internal)
|
||||
|
||||
test(test['name'], exe, suite : 'log')
|
||||
test(test['name'], exe, suite : 'log',
|
||||
should_fail : test.get('should_fail', false))
|
||||
endforeach
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue