diff mbox series

[v4,2/4] linux-gen:test: shmem pass args to cunit

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

Commit Message

Github ODP bot Nov. 27, 2017, 2 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: 5329e5211c447b9b823149baf76112eedfeb07fb
 ** Merge commit sha: ff9199054bf3859c068a6c7702c0dfae9dd7c629
 **/
 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();