diff mbox

validation: queue: add test for odp_queue_to_u64()

Message ID 1454445879-27668-1-git-send-email-bill.fischofer@linaro.org
State Accepted
Commit 976fd05e8bc92a4736801e8f70cf0fe00e6e8114
Headers show

Commit Message

Bill Fischofer Feb. 2, 2016, 8:44 p.m. UTC
Add missing validation test to resolve bug
https://bugs.linaro.org/show_bug.cgi?id=2017

Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
---
 test/validation/queue/queue.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Maxim Uvarov Feb. 3, 2016, 1:21 p.m. UTC | #1
Merged,
Maxim.

On 02/02/2016 23:44, Bill Fischofer wrote:
> Add missing validation test to resolve bug
> https://bugs.linaro.org/show_bug.cgi?id=2017
>
> Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
> ---
>   test/validation/queue/queue.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/test/validation/queue/queue.c b/test/validation/queue/queue.c
> index 3c1c64a..f05543a 100644
> --- a/test/validation/queue/queue.c
> +++ b/test/validation/queue/queue.c
> @@ -61,6 +61,8 @@ void queue_test_sunnydays(void)
>   	queue_creat_id = odp_queue_create("test_queue",
>   					  ODP_QUEUE_TYPE_POLL, &qparams);
>   	CU_ASSERT(ODP_QUEUE_INVALID != queue_creat_id);
> +	CU_ASSERT(odp_queue_to_u64(queue_creat_id) !=
> +		  odp_queue_to_u64(ODP_QUEUE_INVALID));
>   
>   	CU_ASSERT_EQUAL(ODP_QUEUE_TYPE_POLL,
>   			odp_queue_type(queue_creat_id));
diff mbox

Patch

diff --git a/test/validation/queue/queue.c b/test/validation/queue/queue.c
index 3c1c64a..f05543a 100644
--- a/test/validation/queue/queue.c
+++ b/test/validation/queue/queue.c
@@ -61,6 +61,8 @@  void queue_test_sunnydays(void)
 	queue_creat_id = odp_queue_create("test_queue",
 					  ODP_QUEUE_TYPE_POLL, &qparams);
 	CU_ASSERT(ODP_QUEUE_INVALID != queue_creat_id);
+	CU_ASSERT(odp_queue_to_u64(queue_creat_id) !=
+		  odp_queue_to_u64(ODP_QUEUE_INVALID));
 
 	CU_ASSERT_EQUAL(ODP_QUEUE_TYPE_POLL,
 			odp_queue_type(queue_creat_id));