diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-03-09 16:12:18 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-03-09 16:12:18 +0000 |
commit | 2dccb17f8f0cf8d5baba816d55bd7b7c3f762e1b (patch) | |
tree | 04fbc7b041b5f49bc5b48e9c2faa328ec6d132af /test/nasa_osal/configuration.xml | |
parent | 0a24a2e42658ec42b7f0217b5e5022877bd0ea0a (diff) | |
download | ChibiOS-2dccb17f8f0cf8d5baba816d55bd7b7c3f762e1b.tar.gz ChibiOS-2dccb17f8f0cf8d5baba816d55bd7b7c3f762e1b.tar.bz2 ChibiOS-2dccb17f8f0cf8d5baba816d55bd7b7c3f762e1b.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9060 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/nasa_osal/configuration.xml')
-rw-r--r-- | test/nasa_osal/configuration.xml | 106 |
1 files changed, 53 insertions, 53 deletions
diff --git a/test/nasa_osal/configuration.xml b/test/nasa_osal/configuration.xml index aae9b72df..69db8c2f8 100644 --- a/test/nasa_osal/configuration.xml +++ b/test/nasa_osal/configuration.xml @@ -38,7 +38,7 @@ THD_WORKING_AREA(wa_test4, TASKS_STACK_SIZE);]]></value> <value>Internal Tests</value>
</type>
<brief>
- <value>Threads Functionality</value>
+ <value>Tasks Functionality</value>
</brief>
<description>
<value>This sequence tests the NASA OSAL over ChibiOS/RT functionalities related to threading.</value>
@@ -46,22 +46,22 @@ THD_WORKING_AREA(wa_test4, TASKS_STACK_SIZE);]]></value> <shared_code>
<value><![CDATA[#include "osapi.h" -static void test_thread1(void) { +static void test_task1(void) { test_emit_token('A'); } -static void test_thread2(void) { +static void test_task2(void) { test_emit_token('B'); } -static void test_thread3(void) { +static void test_task3(void) { test_emit_token('C'); } -static void test_thread4(void) { +static void test_task4(void) { test_emit_token('D'); } @@ -71,7 +71,7 @@ static void delete_handler(void) { test_emit_token('C'); } -static void test_thread_delete(void) { +static void test_task_delete(void) { test_emit_token('A'); (void) OS_TaskInstallDeleteHandler(delete_handler); @@ -115,8 +115,8 @@ static void test_thread_delete(void) { <value><![CDATA[int32 err; err = OS_TaskCreate(NULL, /* Error.*/ - "failing thread", - test_thread1, + "failing task", + test_task1, (uint32 *)wa_test1, sizeof wa_test1, TASKS_BASE_PRIORITY, @@ -138,7 +138,7 @@ uint32 tid; err = OS_TaskCreate(&tid, NULL, /* Error.*/ - test_thread1, + test_task1, (uint32 *)wa_test1, sizeof wa_test1, TASKS_BASE_PRIORITY, @@ -159,8 +159,8 @@ test_assert_sequence("", "task executed");]]></value> uint32 tid; err = OS_TaskCreate(&tid, - "failing thread", - test_thread1, + "failing task", + test_task1, (uint32 *)NULL, /* Error.*/ sizeof wa_test1, TASKS_BASE_PRIORITY, @@ -182,7 +182,7 @@ uint32 tid; err = OS_TaskCreate(&tid, "this is a very very long task name", /* Error.*/ - test_thread1, + test_task1, (uint32 *)wa_test1, sizeof wa_test1, TASKS_BASE_PRIORITY, @@ -203,8 +203,8 @@ test_assert_sequence("", "task executed");]]></value> uint32 tid; err = OS_TaskCreate(&tid, - "failing thread", - test_thread1, + "failing task", + test_task1, (uint32 *)wa_test1, sizeof wa_test1, 0, /* Error.*/ @@ -213,8 +213,8 @@ test_assert(err == OS_ERR_INVALID_PRIORITY, "priority error not detected"); test_assert_sequence("", "task executed"); err = OS_TaskCreate(&tid, - "failing thread", - test_thread1, + "failing task", + test_task1, (uint32 *)wa_test1, sizeof wa_test1, 256, /* Error.*/ @@ -235,8 +235,8 @@ test_assert_sequence("", "task executed");]]></value> uint32 tid; err = OS_TaskCreate(&tid, - "failing thread", - test_thread1, + "failing task", + test_task1, (uint32 *)wa_test1, 16, /* Error.*/ TASKS_BASE_PRIORITY, @@ -257,8 +257,8 @@ test_assert_sequence("", "task executed");]]></value> uint32 tid; err = OS_TaskCreate(&tid, - "running thread", - test_thread1, + "running task", + test_task1, (uint32 *)wa_test1, sizeof wa_test1, TASKS_BASE_PRIORITY, @@ -266,8 +266,8 @@ err = OS_TaskCreate(&tid, test_assert(err == OS_SUCCESS, "task creation failed"); err = OS_TaskCreate(&tid, - "running thread", - test_thread2, + "running task", + test_task2, (uint32 *)wa_test2, sizeof wa_test2, TASKS_BASE_PRIORITY, @@ -275,8 +275,8 @@ err = OS_TaskCreate(&tid, test_assert(err == OS_ERR_NAME_TAKEN, "name conflict not detected"); err = OS_TaskCreate(&tid, - "conflicting thread", - test_thread1, + "conflicting task", + test_task1, (uint32 *)wa_test1, sizeof wa_test1, TASKS_BASE_PRIORITY, @@ -288,8 +288,8 @@ test_assert(err == OS_SUCCESS, "wait failed"); test_assert_sequence("A", "task not executed"); err = OS_TaskCreate(&tid, - "running thread", - test_thread1, + "running task", + test_task1, (uint32 *)wa_test1, sizeof wa_test1, TASKS_BASE_PRIORITY, @@ -337,8 +337,8 @@ test_assert_sequence("A", "task not executed");]]></value> uint32 tid1, tid2, tid3, tid4; err = OS_TaskCreate(&tid4, - "running thread 4", - test_thread4, + "running task 4", + test_task4, (uint32 *)wa_test4, sizeof wa_test4, TASKS_BASE_PRIORITY - 0, @@ -346,8 +346,8 @@ err = OS_TaskCreate(&tid4, test_assert(err == OS_SUCCESS, "task 4 creation failed"); err = OS_TaskCreate(&tid3, - "running thread 3", - test_thread3, + "running task 3", + test_task3, (uint32 *)wa_test3, sizeof wa_test3, TASKS_BASE_PRIORITY - 1, @@ -355,8 +355,8 @@ err = OS_TaskCreate(&tid3, test_assert(err == OS_SUCCESS, "task 3 creation failed"); err = OS_TaskCreate(&tid2, - "running thread 2", - test_thread2, + "running task 2", + test_task2, (uint32 *)wa_test2, sizeof wa_test2, TASKS_BASE_PRIORITY - 2, @@ -364,8 +364,8 @@ err = OS_TaskCreate(&tid2, test_assert(err == OS_SUCCESS, "task 2 creation failed"); err = OS_TaskCreate(&tid1, - "running thread 1", - test_thread1, + "running task 1", + test_task1, (uint32 *)wa_test1, sizeof wa_test1, TASKS_BASE_PRIORITY - 3, @@ -397,8 +397,8 @@ test_assert_sequence("ABCD", "task order violation");]]></value> uint32 tid1, tid2, tid3, tid4; err = OS_TaskCreate(&tid1, - "running thread 1", - test_thread1, + "running task 1", + test_task1, (uint32 *)wa_test1, sizeof wa_test1, TASKS_BASE_PRIORITY - 3, @@ -406,8 +406,8 @@ err = OS_TaskCreate(&tid1, test_assert(err == OS_SUCCESS, "task 1 creation failed"); err = OS_TaskCreate(&tid2, - "running thread 2", - test_thread2, + "running task 2", + test_task2, (uint32 *)wa_test2, sizeof wa_test2, TASKS_BASE_PRIORITY - 2, @@ -415,8 +415,8 @@ err = OS_TaskCreate(&tid2, test_assert(err == OS_SUCCESS, "task 2 creation failed"); err = OS_TaskCreate(&tid3, - "running thread 3", - test_thread3, + "running task 3", + test_task3, (uint32 *)wa_test3, sizeof wa_test3, TASKS_BASE_PRIORITY - 1, @@ -424,8 +424,8 @@ err = OS_TaskCreate(&tid3, test_assert(err == OS_SUCCESS, "task 3 creation failed"); err = OS_TaskCreate(&tid4, - "running thread 4", - test_thread4, + "running task 4", + test_task4, (uint32 *)wa_test4, sizeof wa_test4, TASKS_BASE_PRIORITY - 0, @@ -457,8 +457,8 @@ test_assert_sequence("ABCD", "task order violation");]]></value> uint32 tid1, tid2, tid3, tid4; err = OS_TaskCreate(&tid2, - "running thread 2", - test_thread2, + "running task 2", + test_task2, (uint32 *)wa_test2, sizeof wa_test2, TASKS_BASE_PRIORITY - 2, @@ -466,8 +466,8 @@ err = OS_TaskCreate(&tid2, test_assert(err == OS_SUCCESS, "task 2 creation failed"); err = OS_TaskCreate(&tid1, - "running thread 1", - test_thread1, + "running task 1", + test_task1, (uint32 *)wa_test1, sizeof wa_test1, TASKS_BASE_PRIORITY - 3, @@ -475,8 +475,8 @@ err = OS_TaskCreate(&tid1, test_assert(err == OS_SUCCESS, "task 1 creation failed"); err = OS_TaskCreate(&tid4, - "running thread 4", - test_thread4, + "running task 4", + test_task4, (uint32 *)wa_test4, sizeof wa_test4, TASKS_BASE_PRIORITY - 0, @@ -484,8 +484,8 @@ err = OS_TaskCreate(&tid4, test_assert(err == OS_SUCCESS, "task 4 creation failed"); err = OS_TaskCreate(&tid3, - "running thread 3", - test_thread3, + "running task 3", + test_task3, (uint32 *)wa_test3, sizeof wa_test3, TASKS_BASE_PRIORITY - 1, @@ -578,8 +578,8 @@ test_assert(err == OS_ERR_INVALID_ID, "wrong task id not detected");]]></value> <value><![CDATA[int32 err; err = OS_TaskCreate(&tid, - "deletable thread", - test_thread_delete, + "deletable task", + test_task_delete, (uint32 *)wa_test1, sizeof wa_test1, TASKS_BASE_PRIORITY, @@ -767,7 +767,7 @@ test_assert(err == OS_SUCCESS, "queue deletion failed");]]></value> </condition>
<various_code>
<setup_code>
- <value><![CDATA[qid = 0;
+ <value><![CDATA[qid = 0; tid = 0;]]></value>
</setup_code>
<teardown_code>
|