Searched refs:test_config_parse_sec_one (Results 1 - 1 of 1) sorted by relevance

/systemd/src/test/
H A Dtest-conf-parser.c94 static void test_config_parse_sec_one(const char *rvalue, usec_t expected) { function
197 test_config_parse_sec_one("1", 1 * USEC_PER_SEC);
198 test_config_parse_sec_one("1s", 1 * USEC_PER_SEC);
199 test_config_parse_sec_one("100ms", 100 * USEC_PER_MSEC);
200 test_config_parse_sec_one("5min 20s", 5 * 60 * USEC_PER_SEC + 20 * USEC_PER_SEC);
202 test_config_parse_sec_one("-1", 0);
203 test_config_parse_sec_one("10foo", 0);
204 test_config_parse_sec_one("garbage", 0);

Completed in 6 milliseconds