| 987 | } |
| 988 | |
| 989 | static int expect_failure_with_errno_message(int expected, int got) { |
| 990 | another_failing_failure(); |
| 991 | |
| 992 | if (T.verbosity < 0) |
| 993 | return 1; |
| 994 | if (0 == T.op_ko && T.verbosity < 2) |
| 995 | banner(T.operation); |
| 996 | fprintf(T.fout, "%s", T.op_ko ? " -----\n" : delim); |
| 997 | fprintf(T.fout, " FAILURE in %s(%d):\n", opt_strip_path(T.curr_file), |
| 998 | (int)F->lineno); |
| 999 | fprintf(T.fout, " got errno %s (%d): %s\n", err_const_from_errno(got), |
| 1000 | got, proj_errno_string(got)); |
| 1001 | fprintf(T.fout, " expected %s (%d): %s", |
| 1002 | err_const_from_errno(expected), expected, |
| 1003 | proj_errno_string(expected)); |
| 1004 | fprintf(T.fout, "\n"); |
| 1005 | return 1; |
| 1006 | } |
| 1007 | |
| 1008 | /*****************************************************************************/ |
| 1009 | static int expect(const char *args) { |
no test coverage detected