diff --git a/test/birdtest.c b/test/birdtest.c index 722be0fb..f10c1b63 100644 --- a/test/birdtest.c +++ b/test/birdtest.c @@ -102,7 +102,7 @@ bt_init(int argc, char *argv[]) return; usage: - printf("Usage: %s [-l] [-c] [-f] [-t] [-vv] []\n", argv[0]); + printf("Usage: %s [-l] [-c] [-f] [-t] [-vvv] []\n", argv[0]); exit(3); } @@ -204,7 +204,7 @@ get_num_terminal_cols(void) void bt_result(const char *to_right_align_msg, const char *to_left_align_msg, ...) { - if (bt_verbose) + if (bt_verbose >= BT_VERBOSE_TEST_SUITE) { char msg_buf[BT_BUFFER_SIZE]; diff --git a/test/birdtest.h b/test/birdtest.h index 9ab5b0c7..dab5f733 100644 --- a/test/birdtest.h +++ b/test/birdtest.h @@ -18,8 +18,9 @@ extern int bt_test_suite_success; extern int bt_verbose; #define BT_VERBOSE_NOTHING 0 -#define BT_VERBOSE_TEST_CASE 1 -#define BT_VERBOSE_DEBUG 2 +#define BT_VERBOSE_TEST_SUITE 1 +#define BT_VERBOSE_TEST_CASE 2 +#define BT_VERBOSE_DEBUG 3 extern const char *bt_filename; extern const char *bt_test_id; @@ -63,9 +64,6 @@ void bt_result(const char *result, const char *msg, ...); fprintf(stderr, "%s: %s: " format "\n", bt_filename, bt_test_id, ##__VA_ARGS__); \ } while(0) -#define bt_log_test_case(format, ...) \ - do { if (bt_verbose >= BT_VERBOSE_TEST_CASE) bt_log(format, ##__VA_ARGS__); } while (0) - #define bt_debug(format, ...) \ do { if (bt_verbose >= BT_VERBOSE_DEBUG) printf(format, ##__VA_ARGS__); } while (0)