Skip to content

Commit

Permalink
test: return error code
Browse files Browse the repository at this point in the history
The test misses to return an error code. Thus propagate the error
if config_dump() fails.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
  • Loading branch information
igaw committed Aug 1, 2024
1 parent 854a6dc commit a277a04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/config/config-dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ static bool config_dump(const char *file)

int main(int argc, char *argv[])
{
bool pass = true;
bool pass;

config_dump(argv[1]);
pass = config_dump(argv[1]);
fflush(stdout);

exit(pass ? EXIT_SUCCESS : EXIT_FAILURE);
Expand Down

0 comments on commit a277a04

Please sign in to comment.