tile: fix build
[dpdk.git] / app / test / test_errno.c
index c903b19..388decb 100644 (file)
@@ -58,7 +58,7 @@ test_errno(void)
        /* use a small selection of standard errors for testing */
        int std_errs[] = {EAGAIN, EBADF, EACCES, EINTR, EINVAL};
        /* test ALL registered RTE error codes for overlap */
-       int rte_errs[] = {E_RTE_SECONDARY, E_RTE_NO_CONFIG, E_RTE_NO_TAILQ};
+       int rte_errs[] = {E_RTE_SECONDARY, E_RTE_NO_CONFIG};
        unsigned i;
 
        rte_errno = 0;
@@ -113,8 +113,4 @@ test_errno(void)
        return 0;
 }
 
-static struct test_command errno_cmd = {
-       .command = "errno_autotest",
-       .callback = test_errno,
-};
-REGISTER_TEST_COMMAND(errno_cmd);
+REGISTER_TEST_COMMAND(errno_autotest, test_errno);