0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2025-01-08 18:11:54 +00:00

Birdtest: Add BT_SUCCESS for success end of test

Add BT_FAILURE for bad end of test
This commit is contained in:
Pavel Tvrdík 2015-03-13 18:30:03 +01:00
parent 0bbfd59dce
commit 4e4ed8dd4e

View File

@ -21,6 +21,9 @@ extern const char *bt_test_id;
void bt_init(int argc, char **argv);
void bt_test_case2(int (*fn)(void), const char *id, const char *dsc, int forked, int timeout);
#define BT_SUCCESS 0
#define BT_FAILURE 1
#define bt_test_case(fn,dsc,f,t) \
bt_test_case2(fn, #fn, dsc, f, t)