Lines Matching refs:load
897 double load[3]; in TEST() local
900 ASSERT_EQ(-1, getloadavg(load, -1)); in TEST()
901 ASSERT_EQ(-1, getloadavg(load, INT_MIN)); in TEST()
904 ASSERT_EQ(0, getloadavg(load, 0)); in TEST()
907 ASSERT_EQ(1, getloadavg(load, 1)); in TEST()
908 ASSERT_EQ(2, getloadavg(load, 2)); in TEST()
909 ASSERT_EQ(3, getloadavg(load, 3)); in TEST()
910 ASSERT_EQ(3, getloadavg(load, 4)); in TEST()
911 ASSERT_EQ(3, getloadavg(load, INT_MAX)); in TEST()
917 load[0] = load[1] = load[2] = nan(""); in TEST()
918 ASSERT_EQ(3, getloadavg(load, 3)); in TEST()
921 ASSERT_FALSE(isnan(load[0])); in TEST()
922 ASSERT_FALSE(isnan(load[1])); in TEST()
923 ASSERT_FALSE(isnan(load[2])); in TEST()
925 ASSERT_TRUE(fabs(expected[0] - load[0]) < 0.5) << expected[0] << ' ' << load[0]; in TEST()
926 ASSERT_TRUE(fabs(expected[1] - load[1]) < 0.5) << expected[1] << ' ' << load[1]; in TEST()
927 ASSERT_TRUE(fabs(expected[2] - load[2]) < 0.5) << expected[2] << ' ' << load[2]; in TEST()