linux/tools/unittests/test_tokenizer.py
Mauro Carvalho Chehab 14b7775ef7 unittests: test_tokenizer: better handle mismatch error
The current logic is too sensitive to how c_lex name is
placed. Also, it doesn't really check the log.

Change it to check if the expected message will be reported
after a call to C tokenizer with an invalid source.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <6e19578bc1ffa96e536dc31997ff658017f60173.1773823995.git.mchehab+huawei@kernel.org>
2026-03-22 15:10:39 -06:00

469 lines
14 KiB
Executable file