From b113ca208ec17ac9112ac98a653d48ebf509bdae Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Mon, 21 Oct 2019 17:11:43 +0300 Subject: test: rin_fixme is now covered. Signed-off-by: Gediminas Jakutis --- test/diagnostic.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'test/diagnostic.c') diff --git a/test/diagnostic.c b/test/diagnostic.c index dbd583a..9245d21 100644 --- a/test/diagnostic.c +++ b/test/diagnostic.c @@ -101,7 +101,19 @@ static int warn_test(void) static int fixme_test(void) { - return 77; + size_t i; + int usearg; + int ret; + + static const char *in[] = {"", "test", "test number is %zu", "%zu tests ran"}; + static const char *expected[] = {"fixme:\n", "fixme:test\n", "fixme:test number is 3\n", "fixme:4 tests ran\n"}; + + for (i = 0; i < arrlen(in); ++i) { + usearg = i < (arrlen(in) / 2) ? 0 : 1; + ret = test_default_channels(in[i], expected[i], i, usearg, rin_fixme); + } + + return ret; } static int info_test(void) -- cgit v1.2.3