+ int a, int b, bool expect_pass,
+ const char *a_str, const char *b_str)
+{
+ char *str;
+ char sa[20], sb[20];
+ char *a_op = " == ", *b_op = " == ";
+ sprintf(sa, "%d", a);
+ sprintf(sb, "%d", b);
+ if (strcmp(sa, a_str) == 0)
+ a_str = a_op = "";
+ if (strcmp(sb, b_str) == 0)
+ b_str = b_op = "";
+ asprintf(&str, "%s%s%d %s %s%s%d", a_str, a_op, a, expect_pass ? "==" : "!=",
+ b_str, b_op, b);
+
+ wvtest_start(file, line, str);
+ free(str);
+
+ bool cond = (a == b);
+ if (!expect_pass)
+ cond = !cond;
+
+ wvtest_check(cond, NULL);
+ return cond;
+}
+
+bool wvtest_start_check_eq_ptr(const char *file, int line,
+ void *a, void *b, bool expect_pass)