diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-03-10 15:34:02 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-03-10 15:34:02 +0000 |
commit | 55d20075bd0f66b24292cb229be355a2369a9a61 (patch) | |
tree | 1b6d3e8aa2d735420bd620dfb87928b9c3bdb862 /test | |
parent | ade53fbc15fcf754ccb29e90f19cb2f921a90288 (diff) | |
download | ChibiOS-55d20075bd0f66b24292cb229be355a2369a9a61.tar.gz ChibiOS-55d20075bd0f66b24292cb229be355a2369a9a61.tar.bz2 ChibiOS-55d20075bd0f66b24292cb229be355a2369a9a61.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9066 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test')
-rw-r--r-- | test/nasa_osal/configuration.xml | 13 | ||||
-rw-r--r-- | test/nasa_osal/source/test/test_sequence_003.c | 13 |
2 files changed, 14 insertions, 12 deletions
diff --git a/test/nasa_osal/configuration.xml b/test/nasa_osal/configuration.xml index eef897b28..ac37ce262 100644 --- a/test/nasa_osal/configuration.xml +++ b/test/nasa_osal/configuration.xml @@ -1157,16 +1157,17 @@ test_assert(err == OS_ERR_INVALID_ID, "wrong timer id not detected");]]></value> </tags>
<code>
<value><![CDATA[int32 err; -uint32 qid1, qid2; +uint32 tmid1, tmid2; +uint32 accuracy; -err = OS_QueueCreate(&qid1, "my queue", 4, 128, 0); -test_assert(err == OS_SUCCESS, "queue creation failed"); +err = OS_TimerCreate(&tmid1, "my timer", &accuracy, tmr_callback); +test_assert(err == OS_SUCCESS, "timer creation failed"); -err = OS_QueueCreate(&qid2, "my queue", 4, 128, 0); +err = OS_TimerCreate(&tmid2, "my timer", &accuracy, tmr_callback); test_assert(err == OS_ERR_NAME_TAKEN, "name conflict not detected"); -err = OS_QueueDelete(qid1); -test_assert(err == OS_SUCCESS, "queue deletion failed");]]></value>
+err = OS_TimerDelete(tmid1); +test_assert(err == OS_SUCCESS, "timer deletion failed");]]></value>
</code>
</step>
</steps>
diff --git a/test/nasa_osal/source/test/test_sequence_003.c b/test/nasa_osal/source/test/test_sequence_003.c index 2d2fc0a69..1dd7a44b5 100644 --- a/test/nasa_osal/source/test/test_sequence_003.c +++ b/test/nasa_osal/source/test/test_sequence_003.c @@ -173,16 +173,17 @@ static void test_003_001_execute(void) { test_set_step(7);
{
int32 err;
- uint32 qid1, qid2;
+ uint32 tmid1, tmid2;
+ uint32 accuracy;
- err = OS_QueueCreate(&qid1, "my queue", 4, 128, 0);
- test_assert(err == OS_SUCCESS, "queue creation failed");
+ err = OS_TimerCreate(&tmid1, "my timer", &accuracy, tmr_callback);
+ test_assert(err == OS_SUCCESS, "timer creation failed");
- err = OS_QueueCreate(&qid2, "my queue", 4, 128, 0);
+ err = OS_TimerCreate(&tmid2, "my timer", &accuracy, tmr_callback);
test_assert(err == OS_ERR_NAME_TAKEN, "name conflict not detected");
- err = OS_QueueDelete(qid1);
- test_assert(err == OS_SUCCESS, "queue deletion failed");
+ err = OS_TimerDelete(tmid1);
+ test_assert(err == OS_SUCCESS, "timer deletion failed");
}
}
|