mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 06:29:23 +01:00
t-runner: Fixed crash
test-runner would segfault if no verbose option was passed.
This commit is contained in:
parent
1491ebe877
commit
d25e88cd8d
@ -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 : "",
|
||||
|
Loading…
Reference in New Issue
Block a user