TEST_ASSERT_EQUAL
TEST_ASSERT_EQUAL("failed to intersect map: bad nr", perf_cpu_map__nr(c), nr);
TEST_ASSERT_EQUAL("failed to expand default events", ret, 0);
TEST_ASSERT_EQUAL("failed to expand event group", ret, 0);
TEST_ASSERT_EQUAL("failed to expand event group", ret, 0);
TEST_ASSERT_EQUAL("failed to expand metric events", ret, 0);
TEST_ASSERT_EQUAL("union", (int)hashmap__size(ids1), 0);
TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids1, strdup("foo")), 0);
TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids1, strdup("bar")), 0);
TEST_ASSERT_EQUAL("union", (int)hashmap__size(ids1), 2);
TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids2, strdup("foo")), 0);
TEST_ASSERT_EQUAL("union", (int)hashmap__size(ids1), 2);
TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids2, strdup("bar")), 0);
TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids2, strdup("baz")), 0);
TEST_ASSERT_EQUAL("union", (int)hashmap__size(ids1), 3);
TEST_ASSERT_EQUAL("ids_union", test_ids_union(), 0);
TEST_ASSERT_EQUAL("parse_hwmon_filename",
TEST_ASSERT_EQUAL("parse_hwmon_filename type", type, tests[i].type);
TEST_ASSERT_EQUAL("parse_hwmon_filename number", number, tests[i].number);
TEST_ASSERT_EQUAL("parse_hwmon_filename item", item, tests[i].item);
TEST_ASSERT_EQUAL("parse_hwmon_filename alarm", alarm, tests[i].alarm);
TEST_ASSERT_EQUAL(table[i].events,
TEST_ASSERT_EQUAL(table[i].events,
TEST_ASSERT_EQUAL(table[i].events,
TEST_ASSERT_EQUAL(table[i].events,
TEST_ASSERT_EQUAL("krava01 overwritten", (int) val, (15 & 0b11));
TEST_ASSERT_EQUAL("krava11 overwritten", (int) val, (27 | (4 << 1)));
TEST_ASSERT_EQUAL("krava02 overwritten", (int) val, 170);
TEST_ASSERT_EQUAL("krava03 overwritten", (int) val, 1);
TEST_ASSERT_EQUAL("krava13 overwritten", (int) val, 0);
TEST_ASSERT_EQUAL("krava21 not overwritten", (int) val, 13905);
TEST_ASSERT_EQUAL("krava22 not overwritten", (int) val, 11);
TEST_ASSERT_EQUAL("krava23 not overwritten", (int) val, 0);
TEST_ASSERT_EQUAL("cpu", pmu_name_cmp("cpu", "cpu"), 0);
TEST_ASSERT_EQUAL("i915", pmu_name_cmp("i915", "i915"), 0);
TEST_ASSERT_EQUAL("cpum_cf", pmu_name_cmp("cpum_cf", "cpum_cf"), 0);
TEST_ASSERT_EQUAL(msg, perf_pmu__wildcard_match(&test_pmu, to_match), expect)
TEST_ASSERT_EQUAL("pthread_join() failed", pthread_join(threads[i], NULL), 0);
TEST_ASSERT_EQUAL("misfired signal?", ctx.signal_count, 0);
TEST_ASSERT_EQUAL("enable failed", ioctl(fd, PERF_EVENT_IOC_ENABLE, 0), 0);
TEST_ASSERT_EQUAL("disable failed", ioctl(fd, PERF_EVENT_IOC_DISABLE, 0), 0);
TEST_ASSERT_EQUAL("unexpected sigtraps", ctx.signal_count, expected_sigtraps);
TEST_ASSERT_EQUAL("missing signals or incorrectly delivered", ctx.tids_want_signal, 0);
TEST_ASSERT_EQUAL("unexpected si_perf_type", ctx.first_siginfo.si_perf_type,
TEST_ASSERT_EQUAL("unexpected si_perf_data", ctx.first_siginfo.si_perf_data,
TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 4);
TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(other_maps)), 2);
TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 3);
TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 2);
TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 1);
TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(other_maps)), 1);