X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_spinlock.c;fp=app%2Ftest%2Ftest_spinlock.c;h=c95b0c07a1155a936a38e4fd937a453d2829344f;hb=942405f9e2f2c22aa817be374ccfe939a72df2ce;hp=9b45d8ed972d605889eef99446da935c8c227a31;hpb=727909c5923147d0c7c0091a0f791432fa954431;p=dpdk.git diff --git a/app/test/test_spinlock.c b/app/test/test_spinlock.c index 9b45d8ed97..c95b0c07a1 100644 --- 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. */ -int +static int test_spinlock(void) { int ret = 0; @@ -333,3 +333,9 @@ test_spinlock(void) return ret; } + +static struct test_command spinlock_cmd = { + .command = "spinlock_autotest", + .callback = test_spinlock, +}; +REGISTER_TEST_COMMAND(spinlock_cmd);