mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-06 01:43:39 +00:00
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>
This commit is contained in:
parent
a48f692929
commit
6eb71c6a1e
|
@ -151,7 +151,7 @@ int main(int argc, char **argv)
|
|||
{
|
||||
char *v_env = getenv("V");
|
||||
|
||||
if (v_env && *v_env >= '2') {
|
||||
if (v_env && atoi(v_env) >= 2) {
|
||||
verbose = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue