Lines Matching refs:TEST_ASSERT_VAL
21 TEST_ASSERT_VAL("ids__new", ids1); in test_ids_union()
23 TEST_ASSERT_VAL("ids__new", ids2); in test_ids_union()
30 TEST_ASSERT_VAL("ids__new", ids2); in test_ids_union()
40 TEST_ASSERT_VAL("ids__new", ids2); in test_ids_union()
48 TEST_ASSERT_VAL("ids__new", ids2); in test_ids_union()
65 TEST_ASSERT_VAL("parse test failed", 0); in test()
66 TEST_ASSERT_VAL("unexpected value", val == val2); in test()
83 TEST_ASSERT_VAL("get_cpuid", cpuid); in test__expr()
89 TEST_ASSERT_VAL("expr__ctx_new", ctx); in test__expr()
127 TEST_ASSERT_VAL("division by zero", ret == 0); in test__expr()
128 TEST_ASSERT_VAL("division by zero", isnan(val)); in test__expr()
132 TEST_ASSERT_VAL("missing operand", ret == -1); in test__expr()
135 TEST_ASSERT_VAL("find ids", in test__expr()
138 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 3); in test__expr()
139 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "BAR", &val_ptr)); in test__expr()
140 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "BAZ", &val_ptr)); in test__expr()
141 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "BOZO", &val_ptr)); in test__expr()
145 TEST_ASSERT_VAL("find ids", in test__expr()
148 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 2); in test__expr()
149 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "EVENT1,param=3@", &val_ptr)); in test__expr()
150 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "EVENT2,param=3@", &val_ptr)); in test__expr()
153 TEST_ASSERT_VAL("find ids", in test__expr()
156 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 2); in test__expr()
157 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "dash-event1", &val_ptr)); in test__expr()
158 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "dash-event2", &val_ptr)); in test__expr()
167 TEST_ASSERT_VAL("find ids", in test__expr()
170 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 1); in test__expr()
171 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, in test__expr()
176 TEST_ASSERT_VAL("find ids", in test__expr()
179 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 1); in test__expr()
180 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, in test__expr()
187 TEST_ASSERT_VAL("find ids", in test__expr()
190 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 0); in test__expr()
194 TEST_ASSERT_VAL("find ids", in test__expr()
196 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 0); in test__expr()
198 TEST_ASSERT_VAL("find ids", in test__expr()
200 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 0); in test__expr()
202 TEST_ASSERT_VAL("find ids", in test__expr()
204 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 1); in test__expr()
205 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "EVENT1", &val_ptr)); in test__expr()
207 TEST_ASSERT_VAL("find ids", in test__expr()
209 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 1); in test__expr()
210 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "EVENT1", &val_ptr)); in test__expr()
214 TEST_ASSERT_VAL("find ids", in test__expr()
216 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 0); in test__expr()
218 TEST_ASSERT_VAL("find ids", in test__expr()
220 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 0); in test__expr()
222 TEST_ASSERT_VAL("find ids", in test__expr()
224 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 1); in test__expr()
225 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "EVENT1", &val_ptr)); in test__expr()
227 TEST_ASSERT_VAL("find ids", in test__expr()
229 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 1); in test__expr()
230 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "EVENT1", &val_ptr)); in test__expr()
234 TEST_ASSERT_VAL("#num_cpus_online", in test__expr()
236 TEST_ASSERT_VAL("#num_cpus", expr__parse(&num_cpus, ctx, "#num_cpus") == 0); in test__expr()
237 TEST_ASSERT_VAL("#num_cpus >= #num_cpus_online", num_cpus >= num_cpus_online); in test__expr()
238 TEST_ASSERT_VAL("#num_cores", expr__parse(&num_cores, ctx, "#num_cores") == 0); in test__expr()
239 TEST_ASSERT_VAL("#num_cpus >= #num_cores", num_cpus >= num_cores); in test__expr()
240 TEST_ASSERT_VAL("#num_dies", expr__parse(&num_dies, ctx, "#num_dies") == 0); in test__expr()
241 TEST_ASSERT_VAL("#num_cores >= #num_dies", num_cores >= num_dies); in test__expr()
242 TEST_ASSERT_VAL("#num_packages", expr__parse(&num_packages, ctx, "#num_packages") == 0); in test__expr()
245 TEST_ASSERT_VAL("#num_dies >= #num_packages", num_dies >= num_packages); in test__expr()
247 TEST_ASSERT_VAL("#system_tsc_freq", expr__parse(&val, ctx, "#system_tsc_freq") == 0); in test__expr()
249 TEST_ASSERT_VAL("#system_tsc_freq > 0", val > 0); in test__expr()
251 TEST_ASSERT_VAL("#system_tsc_freq == 0", fpclassify(val) == FP_ZERO); in test__expr()
258 TEST_ASSERT_VAL("source count", in test__expr()
261 TEST_ASSERT_VAL("source count", hashmap__size(ctx->ids) == 1); in test__expr()
262 TEST_ASSERT_VAL("source count", hashmap__find(ctx->ids, "EVENT1", &val_ptr)); in test__expr()