Skip to content

Commit

Permalink
lib-test: Suppress expected error messages
Browse files Browse the repository at this point in the history
Unless pattern is also provided
  • Loading branch information
cmouse authored and Timo Sirainen committed Oct 3, 2017
1 parent 9a19ae4 commit 01b9ed5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib-test/test-common.c
Expand Up @@ -160,6 +160,9 @@ test_error_handler(const struct failure_context *ctx,
i_free_and_null(expected_error_str);
va_end(args2);
} T_END;
else {
suppress = TRUE;
}
expected_errors--;
} else {
test_success = FALSE;
Expand Down

0 comments on commit 01b9ed5

Please sign in to comment.