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: convert all tests to register system
[dpdk.git]
/
app
/
test
/
test_spinlock.c
diff --git
a/app/test/test_spinlock.c
b/app/test/test_spinlock.c
index
9b45d8e
..
c95b0c0
100644
(file)
--- a/
app/test/test_spinlock.c
+++ b/
app/test/test_spinlock.c
@@
-225,7
+225,7
@@
test_spinlock_try(__attribute__((unused)) void *arg)
* Test rte_eal_get_lcore_state() in addition to spinlocks
* as we have "waiting" then "running" lcores.
*/
* Test rte_eal_get_lcore_state() in addition to spinlocks
* as we have "waiting" then "running" lcores.
*/
-int
+
static
int
test_spinlock(void)
{
int ret = 0;
test_spinlock(void)
{
int ret = 0;
@@
-333,3
+333,9
@@
test_spinlock(void)
return ret;
}
return ret;
}
+
+static struct test_command spinlock_cmd = {
+ .command = "spinlock_autotest",
+ .callback = test_spinlock,
+};
+REGISTER_TEST_COMMAND(spinlock_cmd);