Message ID | 1463761851-37121-4-git-send-email-christophe.milard@linaro.org |
---|---|
State | Accepted |
Commit | 17f4fe54af412f871436ee393af5321292888418 |
Headers | show |
diff --git a/test/validation/shmem/shmem.c b/test/validation/shmem/shmem.c index 0bf38d2..b4c6847 100644 --- a/test/validation/shmem/shmem.c +++ b/test/validation/shmem/shmem.c @@ -91,9 +91,15 @@ odp_suiteinfo_t shmem_suites[] = { ODP_SUITE_INFO_NULL, }; -int shmem_main(void) +int shmem_main(int argc, char *argv[]) { - int ret = odp_cunit_register(shmem_suites); + int ret; + + /* parse common options: */ + if (odp_cunit_parse_options(argc, argv)) + return -1; + + ret = odp_cunit_register(shmem_suites); if (ret == 0) ret = odp_cunit_run(); diff --git a/test/validation/shmem/shmem.h b/test/validation/shmem/shmem.h index d60cf64..a5893d9 100644 --- a/test/validation/shmem/shmem.h +++ b/test/validation/shmem/shmem.h @@ -19,6 +19,6 @@ extern odp_testinfo_t shmem_suite[]; extern odp_suiteinfo_t shmem_suites[]; /* main test program: */ -int shmem_main(void); +int shmem_main(int argc, char *argv[]); #endif diff --git a/test/validation/shmem/shmem_main.c b/test/validation/shmem/shmem_main.c index 445fbf1..4c69130 100644 --- a/test/validation/shmem/shmem_main.c +++ b/test/validation/shmem/shmem_main.c @@ -6,7 +6,7 @@ #include "shmem.h" -int main(void) +int main(int argc, char *argv[]) { - return shmem_main(); + return shmem_main(argc, argv); }
As the test itself does not have specific args, it just calls the cunit_common parsing function to pick up cunit_common and helpers arguments. Signed-off-by: Christophe Milard <christophe.milard@linaro.org> --- test/validation/shmem/shmem.c | 10 ++++++++-- test/validation/shmem/shmem.h | 2 +- test/validation/shmem/shmem_main.c | 4 ++-- 3 files changed, 11 insertions(+), 5 deletions(-)