logo

utils-std

Collection of commonly available Unix tools
commit: 38a895b9b5a24bc3414a2e70cd61c746d3f1ec89
parent 931d36451ec524951e32f2ac14bf116bd283fd03
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon,  8 Apr 2024 01:18:43 +0200

test-lib/strtodur.c: Remove NULL pointer test case

Meant a bunch of useless coredumps, test case would make more sense if the error would be handled

Diffstat:

Mtest-lib/strtodur.c12------------
1 file changed, 0 insertions(+), 12 deletions(-)

diff --git a/test-lib/strtodur.c b/test-lib/strtodur.c @@ -35,17 +35,6 @@ ATF_TC_BODY(null_str, tc) ATF_CHECK_EQ(0, dur.tv_nsec); } -ATF_TC(null_dur); -ATF_TC_HEAD(null_dur, tc) -{ - atf_tc_set_md_var(tc, "descr", "NULL *dur"); -} -ATF_TC_BODY(null_dur, tc) -{ - atf_tc_expect_signal(SIGABRT, "Abort on receiving a NULL pointer on *dur argument"); - ATF_CHECK_EQ(1, strtodur("1", NULL)); -} - ATF_TC(one); ATF_TC_HEAD(one, tc) { @@ -117,7 +106,6 @@ ATF_TP_ADD_TCS(tp) { ATF_TP_ADD_TC(tp, empty); ATF_TP_ADD_TC(tp, null_str); - ATF_TP_ADD_TC(tp, null_dur); ATF_TP_ADD_TC(tp, one); ATF_TP_ADD_TC(tp, pointone); ATF_TP_ADD_TC(tp, onepoint);