diff mbox series

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

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

Commit Message

Github ODP bot Dec. 14, 2017, 3 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: 6b5cdc77eb9759a2349b10372a964648559bc92c
 ** Merge commit sha: b6dece7bd634cbe00c04cb730888d4600936a592
 **/
 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();