- tv->st = '.';
- tv->test->fn(tv->in, tv->out, 0); tvec_check(tv, "vanilla");
+ fn(tv->in, tv->out, 0); tvec_check(tv, "vanilla");
+ tvec_resetoutputs(tv);
- tv->test->fn(tv->in, tv->out, 0); tvec_check(tv, "swapped");
+ fn(tv->in, tv->out, 0); tvec_check(tv, "swapped");
static const struct tvec_regdef versioncmp_regs[] = {
{ "v0", RV0, &tvty_string, 0 },
{ "v1", RV1, &tvty_string, 0 },
static const struct tvec_regdef versioncmp_regs[] = {
{ "v0", RV0, &tvty_string, 0 },
{ "v1", RV1, &tvty_string, 0 },
- { "rc", RRC, &tvty_int, 0, { &cmp_range } },
- { 0, 0, 0 }
+ { "rc", RRC, &tvty_ienum, 0, { &tvenum_cmp } },
+ TVEC_ENDREGS
- { "versioncmp", versioncmp_regs, 0, swap_test, test_versioncmp },
- { 0, 0, 0, 0 }
+ { "versioncmp", versioncmp_regs, &swap_testenv, test_versioncmp },
+ TVEC_ENDTESTS
{ tests, NROUT, NREG, sizeof(struct tvec_reg) };
int main(int argc, char *argv[])
{ tests, NROUT, NREG, sizeof(struct tvec_reg) };
int main(int argc, char *argv[])
- { return (tvec_main(argc, argv, &testinfo, 0)); }
+ { return (tvec_main(argc, argv, &testconfig, 0)); }