OSDN Git Service

tests/qtest/test-hmp: Improve the check for verbose mode
authorThomas Huth <thuth@redhat.com>
Mon, 9 Jan 2023 10:13:06 +0000 (11:13 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Mon, 16 Jan 2023 17:36:47 +0000 (18:36 +0100)
commit6eb71c6a1e917f3a6ece71593ff44de6eae8bba9
tree75a1f611e4899c64e68a0f986bf29dd4a305e76a
parenta48f692929828212f75eb6e8d11bbb6cdffad153
tests/qtest/test-hmp: Improve the check for verbose mode

Running the test-hmp with V=2 up to V=9 runs the test in verbose mode,
but running for example with V=10 falls back to non-verbose mode ...
Improve this oddity by properly treating the argument as a number.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230109101306.271444-1-thuth@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
tests/qtest/test-hmp.c