app/test: rework command registration
[dpdk.git] / app / test / test_errno.c
index f221eac..388decb 100644 (file)
@@ -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);