Improve clar messages#4130
Conversation
`snprintf` requires a _format_ but does not require _arguments_ to the
format. eg: `snprintf(buf, 42, "hi")` is perfectly legal. Expand the
macro to match.
Without this, `p_sprintf(buf, 42, "hi")` errors with:
```
error: expected expression
p_snprintf(msg, 42, "hi");
^
src/unix/posix.h:53:34: note: expanded from macro 'p_snprintf'
^
/usr/include/secure/_stdio.h:57:73: note: expanded from macro 'snprintf'
__builtin___snprintf_chk (str, len, 0, __darwin_obsz(str),
__VA_ARGS__)
```
|
The goal here is to see more information about why some tests fail in appveyor. We expect certificate failures, but are getting a generic |
|
Very nice. You forgot to modfiy all existing callsites of What do you think about using |
Provide more detailed messages when conditions pass or fail unexpectedly. In particular, this provides the error messages when a test fails with a different error code than was expected.
fb2ef7b to
c52480f
Compare
|
I did forget win32! Oops! I had this as |
|
Thanks, looks good to me. |
Provide more detailed messages when conditions pass or fail unexpectedly. In particular, this provides the error messages when a test fails with a different error code than was expected.
cl_git_passfailures look unchanged:cl_git_failmessages now:cl_git_fail_withmessages now:/cc @pks-t