Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Wim Lewis
nettle
Commits
af1d0e1c
Commit
af1d0e1c
authored
Oct 03, 2011
by
Niels Möller
Browse files
(ASSERT): Write message to stderr.
Rev: nettle/testsuite/testutils.h:1.9
parent
03943985
Changes
1
Hide whitespace changes
Inline
Side-by-side
testsuite/testutils.h
View file @
af1d0e1c
...
...
@@ -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 */
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment