diff mbox series

[v8,2/5] linux-gen:test: shmem pass args to cunit

Message ID 1513022420-22227-3-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series [v8,1/5] test: build: enable cunit output to xml | expand

Commit Message

Github ODP bot Dec. 11, 2017, 8 p.m. UTC
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: 9af6bae56adfa7e06e06d13bb60a5964fcf40977
 **/
 platform/linux-generic/test/validation/api/shmem/shmem_odp1.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
diff mbox series

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();