Lines Matching refs:rp

15         ResourcePressure rp;  in TEST()  local
22 … assert_se(read_resource_pressure("/verylikelynonexistentpath", PRESSURE_TYPE_SOME, &rp) < 0); in TEST()
23 assert_se(read_resource_pressure(path, PRESSURE_TYPE_SOME, &rp) < 0); in TEST()
26 assert_se(read_resource_pressure(path, PRESSURE_TYPE_SOME, &rp) < 0); in TEST()
31 assert_se(read_resource_pressure(path, PRESSURE_TYPE_SOME, &rp) < 0); in TEST()
36 assert_se(read_resource_pressure(path, PRESSURE_TYPE_SOME, &rp) < 0); in TEST()
40 assert_se(read_resource_pressure(path, PRESSURE_TYPE_SOME, &rp) == 0); in TEST()
41 assert_se(LOADAVG_INT_SIDE(rp.avg10) == 0); in TEST()
42 assert_se(LOADAVG_DECIMAL_SIDE(rp.avg10) == 22); in TEST()
43 assert_se(LOADAVG_INT_SIDE(rp.avg60) == 0); in TEST()
44 assert_se(LOADAVG_DECIMAL_SIDE(rp.avg60) == 17); in TEST()
45 assert_se(LOADAVG_INT_SIDE(rp.avg300) == 1); in TEST()
46 assert_se(LOADAVG_DECIMAL_SIDE(rp.avg300) == 11); in TEST()
47 assert_se(rp.total == 58761459); in TEST()
48 assert_se(read_resource_pressure(path, PRESSURE_TYPE_FULL, &rp) == 0); in TEST()
49 assert_se(LOADAVG_INT_SIDE(rp.avg10) == 0); in TEST()
50 assert_se(LOADAVG_DECIMAL_SIDE(rp.avg10) == 23); in TEST()
51 assert_se(LOADAVG_INT_SIDE(rp.avg60) == 0); in TEST()
52 assert_se(LOADAVG_DECIMAL_SIDE(rp.avg60) == 16); in TEST()
53 assert_se(LOADAVG_INT_SIDE(rp.avg300) == 1); in TEST()
54 assert_se(LOADAVG_DECIMAL_SIDE(rp.avg300) == 8); in TEST()
55 assert_se(rp.total == 58464525); in TEST()
60 assert_se(read_resource_pressure(path, PRESSURE_TYPE_SOME, &rp) == 0); in TEST()
61 assert_se(LOADAVG_INT_SIDE(rp.avg10) == 0); in TEST()
62 assert_se(LOADAVG_DECIMAL_SIDE(rp.avg10) == 22); in TEST()
63 assert_se(LOADAVG_INT_SIDE(rp.avg60) == 0); in TEST()
64 assert_se(LOADAVG_DECIMAL_SIDE(rp.avg60) == 17); in TEST()
65 assert_se(LOADAVG_INT_SIDE(rp.avg300) == 1); in TEST()
66 assert_se(LOADAVG_DECIMAL_SIDE(rp.avg300) == 11); in TEST()
67 assert_se(rp.total == 58761459); in TEST()
68 assert_se(read_resource_pressure(path, PRESSURE_TYPE_FULL, &rp) == 0); in TEST()
69 assert_se(LOADAVG_INT_SIDE(rp.avg10) == 0); in TEST()
70 assert_se(LOADAVG_DECIMAL_SIDE(rp.avg10) == 23); in TEST()
71 assert_se(LOADAVG_INT_SIDE(rp.avg60) == 0); in TEST()
72 assert_se(LOADAVG_DECIMAL_SIDE(rp.avg60) == 16); in TEST()
73 assert_se(LOADAVG_INT_SIDE(rp.avg300) == 1); in TEST()
74 assert_se(LOADAVG_DECIMAL_SIDE(rp.avg300) == 8); in TEST()
75 assert_se(rp.total == 58464525); in TEST()