]> git.ipfire.org Git - thirdparty/lldpd.git/blame - tests/check-compat.h
tests: display tests/test-suite.log on errors
[thirdparty/lldpd.git] / tests / check-compat.h
CommitLineData
a0cd2b9a
VB
1#ifndef _CHECK_COMPAT_H
2#define _CHECK_COMPAT_H
3
4#if (CHECK_MAJOR_VERSION == 0 && (CHECK_MINOR_VERSION < 9 || (CHECK_MINOR_VERSION == 9 && CHECK_MICRO_VERSION < 10)))
5# define ck_assert_ptr_eq(X,Y) do { \
6 void* _ck_x = (X); \
7 void* _ck_y = (Y); \
8 ck_assert_msg(_ck_x == _ck_y, \
9 "Assertion '"#X"=="#Y"' failed: "#X"==%p, "#Y"==%p", \
10 _ck_x, _ck_y); \
11 } while (0)
12#endif
13
14#endif