Skip to content

Commit a277a04

Browse files
dwsuseigaw
authored andcommitted
test: return error code
The test misses to return an error code. Thus propagate the error if config_dump() fails. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 854a6dc commit a277a04

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/config/config-dump.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ static bool config_dump(const char *file)
4444

4545
int main(int argc, char *argv[])
4646
{
47-
bool pass = true;
47+
bool pass;
4848

49-
config_dump(argv[1]);
49+
pass = config_dump(argv[1]);
5050
fflush(stdout);
5151

5252
exit(pass ? EXIT_SUCCESS : EXIT_FAILURE);

0 commit comments

Comments
 (0)