15 s_is_null(
void **state) {
16 assert_null(pcmk__s(NULL, NULL));
17 assert_string_equal(pcmk__s(NULL,
""),
"");
18 assert_string_equal(pcmk__s(NULL,
"something"),
"something");
22 s_is_not_null(
void **state) {
23 assert_string_equal(pcmk__s(
"something", NULL),
"something");
24 assert_string_equal(pcmk__s(
"something",
"default"),
"something");
28 cmocka_unit_test(s_is_null),
29 cmocka_unit_test(s_is_not_null))
#define PCMK__UNIT_TEST(group_setup, group_teardown,...)