15 bad_input(
void **state) {
30 good_input(
void **state) {
71 overflow(
void **state) {
72 assert_int_equal(
crm_get_msec(
"9223372036854775807s"), LLONG_MAX);
76 cmocka_unit_test(bad_input),
77 cmocka_unit_test(good_input),
78 cmocka_unit_test(overflow))
long long crm_get_msec(const char *input)
Parse a time+units string and return milliseconds equivalent.
#define PCMK__UNIT_TEST(group_setup, group_teardown,...)
#define PCMK__PARSE_INT_DEFAULT