fix config dump
[protos/libecoli.git] / lib / ecoli_test.h
index 64100e3..94cd0b9 100644 (file)
@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: BSD-3-Clause
- * Copyright (c) 2016, Olivier MATZ <zer0@droids-corp.org>
+ * Copyright 2016, Olivier MATZ <zer0@droids-corp.org>
  */
 
 #ifndef ECOLI_TEST_
@@ -10,7 +10,7 @@
 #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);                             \
@@ -62,7 +62,7 @@ int ec_test_check_parse(struct ec_node *node, int expected, ...);
 #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;                                              \
        }                                                               \
@@ -78,7 +78,7 @@ int ec_test_check_parse(struct ec_node *node, int expected, ...);
 })
 
 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);    \