#include <ecoli_log.h>
struct ec_node;
-enum ec_completed_type;
+enum ec_comp_type;
#define EC_TEST_REGISTER(t) \
static void ec_test_init_##t(void); \
#define EC_TEST_CHECK(cond, fmt, ...) ({ \
int ret_ = 0; \
if (!(cond)) { \
- EC_TEST_ERR("(" #cond ") is wrong. " \
+ EC_TEST_ERR("(" #cond ") is wrong. " fmt \
##__VA_ARGS__); \
ret_ = -1; \
} \
})
int ec_test_check_complete(struct ec_node *node,
- enum ec_completed_type type, ...);
+ enum ec_comp_type type, ...);
#define EC_TEST_CHECK_COMPLETE(node, args...) ({ \
int ret_ = ec_test_check_complete(node, EC_COMP_FULL, args); \