START_TEST(cacheremove_when_empty)
{
- ck_assert_int_eq(cacheremove("does_not_exist"), NULL);
+ ck_assert(cacheremove("does_not_exist")==NULL);
}
END_TEST
debug = 1;
intsignal = 0;
disable_logprints();
- ck_assert_int_ne(signal(SIGINT, sighandler), SIG_ERR);
- ck_assert_int_ne(signal(SIGHUP, sighandler), SIG_ERR);
- ck_assert_int_ne(signal(SIGTERM, sighandler), SIG_ERR);
+ ck_assert(signal(SIGINT, sighandler)!=SIG_ERR);
+ ck_assert(signal(SIGHUP, sighandler)!=SIG_ERR);
+ ck_assert(signal(SIGTERM, sighandler)!=SIG_ERR);
ck_assert_int_eq(kill(getpid(), SIGINT), 0);
ck_assert_int_eq(intsignal, SIGINT);