Skip to content

Commit

Permalink
Unit tests: fix compilation with check < 0.9.9
Browse files Browse the repository at this point in the history
Relates NEMO#701
  • Loading branch information
martyone committed Oct 11, 2013
1 parent c9a6bd4 commit 3071149
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/ut/common.h
@@ -1,12 +1,18 @@
#ifndef MCE_TESTS_UT_COMMON_H
#define MCE_TESTS_UT_COMMON_H

#include <check.h>
#include <glib/gprintf.h>
#include <sys/cdefs.h>
#include <sys/mman.h>
#include <stdint.h>
#include <unistd.h>

#if CHECK_MAJOR_VERSION < 0 || CHECK_MINOR_VERSION < 9 || CHECK_MICRO_VERSION < 9
#define _ck_assert_msg ck_assert_msg
#define ck_assert_int_lt(X, Y) ck_assert((X) < (Y))
#endif

/* ------------------------------------------------------------------------- *
* UTILITIES FOR WRITING FUNCTION STUBS
* ------------------------------------------------------------------------- */
Expand Down

0 comments on commit 3071149

Please sign in to comment.