~piotr-sikora/libmemcached/connect-fix

« back to all changes in this revision

Viewing changes to libtest/test.h

  • Committer: Brian Aker
  • Date: 2011-05-24 20:43:14 UTC
  • mfrom: (929.1.110 libmemcached-build)
  • Revision ID: brian@tangent.org-20110524204314-9ag1kkk4c1a6b3z3
Merge in local trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
222
222
{ \
223
223
  if ((A) != (B)) \
224
224
  { \
225
 
    fprintf(stderr, "\n%s:%d: Expected %lu == %lu\n", __FILE__, __LINE__, (unsigned long)(A), (unsigned long)(B)); \
 
225
    fprintf(stderr, "\n%s:%d: Expected %s, got %lu\n", __FILE__, __LINE__, #A, (unsigned long)(B)); \
 
226
    create_core(); \
 
227
    return TEST_FAILURE; \
 
228
  } \
 
229
} while (0)
 
230
 
 
231
#define test_compare_got(A,B,C) \
 
232
do \
 
233
{ \
 
234
  if ((A) != (B)) \
 
235
  { \
 
236
    fprintf(stderr, "\n%s:%d: Expected %s, got %s\n", __FILE__, __LINE__, #A, (C)); \
226
237
    create_core(); \
227
238
    return TEST_FAILURE; \
228
239
  } \