unicorn/test/unit/unicorn_test.h

22 lines
481 B
C
Raw Normal View History

2015-09-07 21:05:55 +02:00
#ifndef UNICORN_TEST_H
#define UNICORN_TEST_H
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
#include <unicorn/unicorn.h>
2015-09-07 22:07:48 +02:00
#define uc_assert_success(err) \
do { \
uc_err __err = err; \
if (__err != UC_ERR_OK) { \
fail_msg("%s", uc_strerror(__err)); \
} \
} while (0)
2015-09-07 21:05:55 +02:00
#endif /* UNICORN_TEST_H */