git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
app/test: remove unneeded casts
[dpdk.git]
/
app
/
test
/
test_table.c
diff --git
a/app/test/test_table.c
b/app/test/test_table.c
index
970d15c
..
c3093cc
100644
(file)
--- a/
app/test/test_table.c
+++ b/
app/test/test_table.c
@@
-31,19
+31,6
@@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-
-#ifndef RTE_LIBRTE_TABLE
-
-#include "test.h"
-
-int
-test_table(void)
-{
- return 0;
-}
-
-#else
-
#include <rte_byteorder.h>
#include <rte_hexdump.h>
#include <rte_string_fns.h>
#include <rte_byteorder.h>
#include <rte_hexdump.h>
#include <rte_string_fns.h>
@@
-156,7
+143,7
@@
app_init_rings(void)
}
}
-int
+
static
int
test_table(void)
{
int status, failures;
test_table(void)
{
int status, failures;
@@
-217,4
+204,8
@@
test_table(void)
return 0;
}
return 0;
}
-#endif
+static struct test_command table_cmd = {
+ .command = "table_autotest",
+ .callback = test_table,
+};
+REGISTER_TEST_COMMAND(table_cmd);