summary refs log tree commit diff stats
path: root/tests/unit/test-string-input-visitor.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2023-07-25 10:56:52 +0100
committerPeter Maydell <peter.maydell@linaro.org>2023-07-25 10:56:52 +0100
commit78cc90346ec680a7f1bb9f138bf7c9654cf526d5 (patch)
tree6a0de9ebf97c38f31a81d89c15e1f0619c5560ac /tests/unit/test-string-input-visitor.c
parent9b579543d7b01666218d8ae01561a96757678eb1 (diff)
downloadfocaccia-qemu-78cc90346ec680a7f1bb9f138bf7c9654cf526d5.tar.gz
focaccia-qemu-78cc90346ec680a7f1bb9f138bf7c9654cf526d5.zip
tests/decode: Suppress "error: " string for expected-failure tests
The "expected failure" tests for decodetree result in the
error messages from decodetree ending up in logs and in
V=1 output:

>>> MALLOC_PERTURB_=226 /mnt/nvmedisk/linaro/qemu-from-laptop/qemu/build/x86/pyvenv/bin/python3 /mnt/nvmedisk/linaro/qemu-from-laptop/qemu/scripts/decodetree.py --output-null --test-for-error /mnt/nvmedisk/linaro/qemu-from-laptop/qemu/build/x86/../../tests/decode/err_argset1.decode
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀  ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
/mnt/nvmedisk/linaro/qemu-from-laptop/qemu/build/x86/../../tests/decode/err_argset1.decode:5: error: duplicate argument "a"
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
 1/44 qemu:decodetree / err_argset1                OK              0.05s

This then produces false positives when scanning the
logfiles for strings like "error: ".

For the expected-failure tests, make decodetree print
"detected:" instead of "error:".

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20230720131521.1325905-1-peter.maydell@linaro.org
Diffstat (limited to 'tests/unit/test-string-input-visitor.c')
0 files changed, 0 insertions, 0 deletions