diff options
Diffstat (limited to 'libglusterfs/src/unittest/unittest.h')
-rw-r--r-- | libglusterfs/src/unittest/unittest.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/libglusterfs/src/unittest/unittest.h b/libglusterfs/src/unittest/unittest.h index 6320217db0d..58b3e28bb6e 100644 --- a/libglusterfs/src/unittest/unittest.h +++ b/libglusterfs/src/unittest/unittest.h @@ -18,8 +18,9 @@ #include <cmocka_pbc.h> #include <cmocka.h> -extern void mock_assert(const int result, const char* const expression, - const char * const file, const int line); +extern void +mock_assert(const int result, const char *const expression, + const char *const file, const int line); // Change GF_CALLOC and GF_FREE to use // cmocka memory allocation versions @@ -30,16 +31,17 @@ extern void mock_assert(const int result, const char* const expression, #define GF_FREE test_free /* Catch intended assert()'s while unit-testing */ -extern void mock_assert(const int result, const char* const expression, - const char * const file, const int line); +extern void +mock_assert(const int result, const char *const expression, + const char *const file, const int line); #undef assert -#define assert(expression) \ - mock_assert((int)(expression), #expression, __FILE__, __LINE__); +#define assert(expression) \ + mock_assert((int)(expression), #expression, __FILE__, __LINE__); #endif #else #define REQUIRE(p) /**/ -#define ENSURE(p) /**/ +#define ENSURE(p) /**/ #endif #endif /* _GF_UNITTEST */ |