X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/e63124bc579bfd97cfe2f620ddd84df9f20477d8..db2bf4111cde36048ac66bbac58547d105bc7e80:/utils/t/versioncmp-test.c diff --git a/utils/t/versioncmp-test.c b/utils/t/versioncmp-test.c index 0fb344c..5e13e15 100644 --- a/utils/t/versioncmp-test.c +++ b/utils/t/versioncmp-test.c @@ -54,18 +54,18 @@ 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, 0 } + TVEC_ENDREGS }; static const struct tvec_test tests[] = { { "versioncmp", versioncmp_regs, &swap_testenv, test_versioncmp }, - { 0, 0, 0, 0 } + TVEC_ENDTESTS }; -static const struct tvec_info testinfo = +static const struct tvec_config testconfig = { 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)); } /*----- That's all, folks -------------------------------------------------*/