X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=app%2Ftest%2Ftest_interrupts.c;h=371101f0885ef9dadd7b2819983602f736e98495;hb=e0ceeba6472ffb7ca6096bf62787cf06dcfdc21d;hp=6e3dec31a0de7be9b808fc69716e87b2f56c1054;hpb=97f17497d162afdb82c8704bf097f0fee3724b2e;p=deb_dpdk.git diff --git a/app/test/test_interrupts.c b/app/test/test_interrupts.c index 6e3dec31..371101f0 100644 --- a/app/test/test_interrupts.c +++ b/app/test/test_interrupts.c @@ -41,7 +41,7 @@ #include "test.h" -#define TEST_INTERRUPT_CHECK_INTERVAL 1000 /* ms */ +#define TEST_INTERRUPT_CHECK_INTERVAL 100 /* ms */ /* predefined interrupt handle types */ enum test_interrupt_handle_type { @@ -372,7 +372,7 @@ test_interrupt_full_path_check(enum test_interrupt_handle_type intr_type) if (test_interrupt_trigger_interrupt() < 0) return -1; - /* check flag in 3 seconds */ + /* check flag */ for (count = 0; flag == 0 && count < 3; count++) rte_delay_ms(TEST_INTERRUPT_CHECK_INTERVAL); @@ -548,8 +548,4 @@ out: return ret; } -static struct test_command interrupt_cmd = { - .command = "interrupt_autotest", - .callback = test_interrupt, -}; -REGISTER_TEST_COMMAND(interrupt_cmd); +REGISTER_TEST_COMMAND(interrupt_autotest, test_interrupt);