3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 09:39:25 +01:00

t-runner: Fixed crash

test-runner would segfault if no verbose option was passed.
This commit is contained in:
James Prestwood 2018-01-31 13:14:23 -08:00 committed by Denis Kenzior
parent 1491ebe877
commit d25e88cd8d

View File

@ -159,6 +159,9 @@ static bool check_verbosity(const char *app)
{
char **apps = verbose_apps;
if (!apps)
return false;
while (*apps) {
if (!strcmp(app, *apps))
return true;
@ -376,7 +379,7 @@ static void start_qemu(void)
"TEST_ACTION=%u TEST_ACTION_PARAMS=\'%s\' "
"TESTARGS=\'%s\' PATH=\'%s\'",
check_verbosity("kernel") ? "ignore_loglevel" : "quiet",
initcmd, cwd, verbose_opt,
initcmd, cwd, verbose_opt ? verbose_opt : "none",
enable_debug ? debug_filter : "",
test_action,
test_action_params ? test_action_params : "",