From 8795d6011446bb4d12968c7e155e047a8467e3db Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Wed, 9 Mar 2016 14:35:51 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9057 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- test/nasa_osal/configuration.xml | 139 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 135 insertions(+), 4 deletions(-) (limited to 'test/nasa_osal/configuration.xml') diff --git a/test/nasa_osal/configuration.xml b/test/nasa_osal/configuration.xml index 732f80946..e13b79ffa 100644 --- a/test/nasa_osal/configuration.xml +++ b/test/nasa_osal/configuration.xml @@ -592,13 +592,144 @@ test_assert(err == OS_SUCCESS, "deletable task creation failed");]]> + + + + + + + + + + + Internal Tests + + + Queues Functionality. + + + This sequence tests the NASA OSAL over ChibiOS/RT functionalities related to queues + + + + + + + + OS_QueueCreate() and OS_QueueDelete() errors + + + Parameters checking in OS_QueueCreate() and OS_QueueDelete() is tested. + + + + + + + + + + + + + + + + + + + OS_QueueCreate() is invoked with queue_id set to NULL, an error is expected. + + + + + + + + + + + OS_QueueCreate() is invoked with task_name set to NULL, an error is expected. + + + + +err = OS_QueueCreate(&qid, + NULL, /* Error.*/ + 4, + 128, + 0); +test_assert(err == OS_INVALID_POINTER, "NULL not detected");]]> + + + + + OS_QueueCreate() is invoked with a very long task name, an error is expected. + + + + + + + + + + + OS_QueueDelete() is invoked with queue_id set to -1, an error is expected. + + + + + + + + + + + OS_QueueCreate() is invoked twice with duplicated name, an error is expected, then the queue is deleted using OS_DeleteQueue(). + + + + + + -- cgit v1.2.3