Commit b36a6056 authored by Niels Möller's avatar Niels Möller

(ASSERT): Write message to stderr.

Rev: nettle/testsuite/testutils.h:1.9
parent c311c46f
......@@ -221,6 +221,12 @@ test_dsa_key(struct dsa_public_key *pub,
#define SKIP() exit(77)
#define SUCCESS() return EXIT_SUCCESS
#define ASSERT(x) do { if (!(x)) FAIL(); } while(0)
#define ASSERT(x) do { \
if (!(x)) \
{ \
fprintf(stderr, "Assert failed %d: %s\n", __LINE__, #x); \
FAIL(); \
} \
} while(0)
#endif /* NETTLE_TESTUTILS_H_INCLUDED */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment