17 getenv_returns_invalid(
void **state)
26 assert_string_equal(
result,
"/tmp");
31 assert_string_equal(
result,
"/tmp");
36 assert_string_equal(
result,
"/tmp");
42 getenv_returns_valid(
void **state)
51 assert_string_equal(
result,
"/var/tmp");
56 assert_string_equal(
result,
"/");
61 assert_string_equal(
result,
"/tmp/abcd.1234");
67 cmocka_unit_test(getenv_returns_invalid),
68 cmocka_unit_test(getenv_returns_valid))
#define PCMK__UNIT_TEST(group_setup, group_teardown,...)
const char * pcmk__get_tmpdir(void)
pcmk__action_result_t result
char * __wrap_getenv(const char *name)