END_TEST /******************************************************************************* * test return_... functions */ START_TEST(test_return_functions) { ck_assert(return_null() == NULL); ck_assert(return_null("asdf", 5, NULL, 1, "qwer") == NULL); ck_assert(return_true() == TRUE); ck_assert(return_true("asdf", 5, NULL, 1, "qwer") == TRUE); ck_assert(return_false() == FALSE); ck_assert(return_false("asdf", 5, NULL, 1, "qwer") == FALSE); ck_assert(return_failed() == FAILED); ck_assert(return_failed("asdf", 5, NULL, 1, "qwer") == FAILED); ck_assert(return_success() == SUCCESS); ck_assert(return_success("asdf", 5, NULL, 1, "qwer") == SUCCESS); /* just make sure this works */ nop(); nop("asdf", 5, NULL, 1, "qwer"); }
int main() { char *pph; pph = return_null(); if (pph == NULL) { printf("null\n"); } }