summaryrefslogtreecommitdiffstats
path: root/test/parser/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/parser/utils.c')
-rw-r--r--test/parser/utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/parser/utils.c b/test/parser/utils.c
index 7ebb411..f693982 100644
--- a/test/parser/utils.c
+++ b/test/parser/utils.c
@@ -239,6 +239,9 @@ void __check_args(struct discover_boot_option *opt, const char *args,
{
int rc;
+ if (!opt->option->boot_args && !args)
+ return;
+
if (!opt->option->boot_args) {
fprintf(stderr, "%s:%d: arg check failed\n", file, line);
fprintf(stderr, " no arguments parsed\n");
OpenPOWER on IntegriCloud