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

/systemd/src/test/
H A Dtest-conf-parser.c101 static void test_config_parse_nsec_one(const char *rvalue, nsec_t expected) { function
208 test_config_parse_nsec_one("1", 1);
209 test_config_parse_nsec_one("1s", 1 * NSEC_PER_SEC);
210 test_config_parse_nsec_one("100ms", 100 * NSEC_PER_MSEC);
211 test_config_parse_nsec_one("5min 20s", 5 * 60 * NSEC_PER_SEC + 20 * NSEC_PER_SEC);
213 test_config_parse_nsec_one("-1", 0);
214 test_config_parse_nsec_one("10foo", 0);
215 test_config_parse_nsec_one("garbage", 0);

Completed in 9 milliseconds