[v9,2/6] linux-gen:test: shmem pass args to cunit

Message ID 1513029623-29970-3-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series
  • [v9,1/6] test: build: enable cunit output to xml
Related show

Commit Message

Github ODP bot Dec. 11, 2017, 10 p.m.
From: Maxim Uvarov <maxim.uvarov@linaro.org>


Pass args to cunit to make code commong with other tests.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>

---
/** Email created from pull request 309 (muvarov:devel/master_shippable2)
 ** https://github.com/Linaro/odp/pull/309
 ** Patch: https://github.com/Linaro/odp/pull/309.patch
 ** Base sha: 6881620135a179911a5839d4be97423a8d80e5ab
 ** Merge commit sha: 512c8ed3c8a8e6317575378fbccc1620392cca8a
 **/
 platform/linux-generic/test/validation/api/shmem/shmem_odp1.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

Patch

diff --git a/platform/linux-generic/test/validation/api/shmem/shmem_odp1.c b/platform/linux-generic/test/validation/api/shmem/shmem_odp1.c
index 8cd89c8f7..d3b951ef7 100644
--- a/platform/linux-generic/test/validation/api/shmem/shmem_odp1.c
+++ b/platform/linux-generic/test/validation/api/shmem/shmem_odp1.c
@@ -76,9 +76,15 @@  odp_suiteinfo_t shmem_suites[] = {
 	ODP_SUITE_INFO_NULL,
 };
 
-int main(void)
+int 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();