Lines Matching refs:parse_loadavg_fixed_point
857 TEST(parse_loadavg_fixed_point) { in TEST() argument
860 assert_se(parse_loadavg_fixed_point("1.23", &fp) == 0); in TEST()
864 assert_se(parse_loadavg_fixed_point("1.80", &fp) == 0); in TEST()
868 assert_se(parse_loadavg_fixed_point("0.07", &fp) == 0); in TEST()
872 assert_se(parse_loadavg_fixed_point("0.00", &fp) == 0); in TEST()
876 assert_se(parse_loadavg_fixed_point("4096.57", &fp) == 0); in TEST()
881 assert_se(parse_loadavg_fixed_point("1.100", &fp) == -ERANGE); in TEST()
883 assert_se(parse_loadavg_fixed_point("4096.4096", &fp) == -ERANGE); in TEST()
884 assert_se(parse_loadavg_fixed_point("-4000.5", &fp) == -ERANGE); in TEST()
885 assert_se(parse_loadavg_fixed_point("18446744073709551615.5", &fp) == -ERANGE); in TEST()
886 assert_se(parse_loadavg_fixed_point("foobar", &fp) == -EINVAL); in TEST()
887 assert_se(parse_loadavg_fixed_point("3333", &fp) == -EINVAL); in TEST()
888 assert_se(parse_loadavg_fixed_point("1.2.3", &fp) == -EINVAL); in TEST()
889 assert_se(parse_loadavg_fixed_point(".", &fp) == -EINVAL); in TEST()
890 assert_se(parse_loadavg_fixed_point("", &fp) == -EINVAL); in TEST()