Minor fixups
This commit is contained in:
parent
35eeb893ef
commit
9682ef135f
|
@ -161,6 +161,11 @@ typedef void (*hb_test_fixture_func_t) (void);
|
|||
#define g_test_fail() g_error("Test failed")
|
||||
#endif
|
||||
|
||||
#ifndef g_assert_cmpmem
|
||||
#define g_assert_cmpmem(m1, l1, m2, l2) g_assert_true (l1 == l2 && memcmp (m1, m2, l1) == 0)
|
||||
#endif
|
||||
|
||||
|
||||
static inline void
|
||||
hb_test_add_func (const char *test_path,
|
||||
hb_test_func_t test_func)
|
||||
|
|
|
@ -28,10 +28,6 @@
|
|||
|
||||
#include "hb-test.h"
|
||||
|
||||
#ifndef g_assert_cmpmem
|
||||
#define g_assert_cmpmem(m1, l1, m2, l2) g_assert_true (l1 == l2 && memcmp (m1, m2, l1) == 0)
|
||||
#endif
|
||||
|
||||
static char *
|
||||
read_file (const char *path,
|
||||
size_t *length)
|
||||
|
|
|
@ -26,10 +26,6 @@
|
|||
|
||||
#include "hb-test.h"
|
||||
|
||||
#ifndef g_assert_cmpmem
|
||||
#define g_assert_cmpmem(m1, l1, m2, l2) g_assert_true (l1 == l2 && memcmp (m1, m2, l1) == 0)
|
||||
#endif
|
||||
|
||||
/* Unit tests for hb-subset.h */
|
||||
|
||||
static const char test_data[] = { 0, 1, 0, 0, /* sfntVersion */
|
||||
|
|
Loading…
Reference in New Issue