Skip to content

Commit

Permalink
tests: Abort sys-xlat if config file cannot be parsed
Browse files Browse the repository at this point in the history
Signed-off-by: Petr Tesarik <ptesarik@suse.com>
  • Loading branch information
ptesarik committed Oct 2, 2020
1 parent 488587c commit 04a94fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/sys-xlat.c
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,8 @@ int main(int argc, char *argv[])
}
data.sys = read_config(cfg);
fclose(cfg);
if (!data.sys)
return TEST_ERR;

for (i = optind; i < argc; ++i) {
rc = translate(&data, argv[i]);
Expand Down

0 comments on commit 04a94fa

Please sign in to comment.