MCPcopy Create free account
hub / github.com/OSGeo/PROJ / expect_failure_with_errno_message

Function expect_failure_with_errno_message

src/apps/gie.cpp:989–1006  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

987}
988
989static 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/*****************************************************************************/
1009static int expect(const char *args) {

Callers 1

expectFunction · 0.85

Calls 5

another_failing_failureFunction · 0.85
bannerFunction · 0.85
opt_strip_pathFunction · 0.85
err_const_from_errnoFunction · 0.85
proj_errno_stringFunction · 0.85

Tested by

no test coverage detected