From 865dbfe682bb6aed500592bc88800a7e89ed6c0b Mon Sep 17 00:00:00 2001 From: Moritz Grimm Date: Wed, 20 May 2015 00:34:26 +0200 Subject: [PATCH] Test error branch w/o triggering a Valgrind error --- tests/check_cfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/check_cfg.c b/tests/check_cfg.c index 84d5d72..74e7e56 100644 --- a/tests/check_cfg.c +++ b/tests/check_cfg.c @@ -149,7 +149,7 @@ END_TEST START_TEST(test_file_check) { - ck_assert_int_eq(cfg_file_check(NULL), -1); + ck_assert_int_eq(cfg_file_check(""), -1); ck_assert_int_eq(cfg_file_check(SRCDIR "/check_cfg.c"), 0); } END_TEST