diff mbox

odp_init_test.c: Add odp_term_global test case

Message ID 1413914389-41685-1-git-send-email-mike.holmes@linaro.org
State Accepted
Commit ad311020f5e419838e3aad9e35f4ae4a73e9d26a
Headers show

Commit Message

Mike Holmes Oct. 21, 2014, 5:59 p.m. UTC
Add a new test case for the new ODP API odp_term_global

Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
---
 test/cunit/odp_init_test.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Maxim Uvarov Oct. 23, 2014, 11:47 a.m. UTC | #1
Merged,
Maxim.

On 10/21/2014 09:59 PM, Mike Holmes wrote:
> Add a new test case for the new ODP API odp_term_global
>
> Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
> ---
>   test/cunit/odp_init_test.c | 3 +++
>   1 file changed, 3 insertions(+)
>
> diff --git a/test/cunit/odp_init_test.c b/test/cunit/odp_init_test.c
> index 4ca1e2c..a612109 100644
> --- a/test/cunit/odp_init_test.c
> +++ b/test/cunit/odp_init_test.c
> @@ -15,6 +15,9 @@ static void test_odp_init_global(void)
>   	int status;
>   	status = odp_init_global(NULL, NULL);
>   	CU_ASSERT(status == 0);
> +
> +	status = odp_term_global();
> +	CU_ASSERT(status == 0);
>   }
>   
>   static int init(void)
diff mbox

Patch

diff --git a/test/cunit/odp_init_test.c b/test/cunit/odp_init_test.c
index 4ca1e2c..a612109 100644
--- a/test/cunit/odp_init_test.c
+++ b/test/cunit/odp_init_test.c
@@ -15,6 +15,9 @@  static void test_odp_init_global(void)
 	int status;
 	status = odp_init_global(NULL, NULL);
 	CU_ASSERT(status == 0);
+
+	status = odp_term_global();
+	CU_ASSERT(status == 0);
 }
 
 static int init(void)