diff --git a/src/common/test_util.h b/src/common/test_util.h index 0e009c33a49e38af79f6e8cd1e222ee07b02c207..61103878786d45db0121aa39344b0e88c24514b6 100644 --- a/src/common/test_util.h +++ b/src/common/test_util.h @@ -164,10 +164,13 @@ void _strfail(const char *a, const char *e, int len); } \ } while (0) -#define CHECK_CALL(call) \ - do { \ - const char *r = (call); \ - if (r != NULL) return r; \ +#define CHECK_CALL(call) \ + do { \ + const char *r = (call); \ + if (r != NULL) { \ + fprintf(stderr, "... %s:%d in %s\n", __FILE__, __LINE__, __func__); \ + return r; \ + } \ } while (0) #ifndef MG_ENABLE_POLL_UNTIL