X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest-bbdev%2Fmain.h;h=23b4d58a538b51dfe14a96b7cc05cc1b103f9ba9;hb=d5c06b1b10ae;hp=2bbe1b8226072f0d5e9d0d227b0a33bd3c088bed;hpb=55878866eb2b6d4e00ff5624259a92f13e10b481;p=dpdk.git diff --git a/app/test-bbdev/main.h b/app/test-bbdev/main.h index 2bbe1b8226..23b4d58a53 100644 --- a/app/test-bbdev/main.h +++ b/app/test-bbdev/main.h @@ -20,6 +20,7 @@ #define DEFAULT_BURST 32U #define DEFAULT_OPS 64U + #define TEST_ASSERT(cond, msg, ...) do { \ if (!(cond)) { \ printf("TestCase %s() line %d failed: " \ @@ -103,7 +104,8 @@ void add_test_command(struct test_command *t); .command = RTE_STR(name), \ .callback = test_func_##name, \ }; \ - RTE_INIT(test_register_##name) \ + static void __attribute__((constructor, used)) \ + test_register_##name(void) \ { \ add_test_command(&test_struct_##name); \ } @@ -116,4 +118,6 @@ unsigned int get_burst_sz(void); unsigned int get_num_lcores(void); +bool get_init_device(void); + #endif