]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/commitdiff
Fixed copy-paste errors. Done, the test-suite is compiling, now to test.
authorCarlos Jenkins <carlos@jenkins.co.cr>
Sun, 9 Jun 2013 22:25:04 +0000 (00:25 +0200)
committerCarlos Jenkins <carlos@jenkins.co.cr>
Sun, 9 Jun 2013 22:25:04 +0000 (00:25 +0200)
apps/rpp-test-suite/src/ain.c
apps/rpp-test-suite/src/aout.c
apps/rpp-test-suite/src/din.c
apps/rpp-test-suite/src/hbr.c
apps/rpp-test-suite/src/lout.c
apps/rpp-test-suite/src/sdr.c

index 144c5497bcfb6ccd48224a02e43c59b518d9f0f1..fb1f36e6a996dde0d2151adaa23e9ac264451f34 100644 (file)
@@ -83,9 +83,13 @@ void test_ain(void)
 {
     xTaskHandle test_task_handle;
 
-    if(xTaskCreate(ain_test_task, (const signed char*)"ain_test_task",
-                   TEST_TASK_TASK, NULL, TEST_TASK_PRIORITY,
-                   &test_task_handle) != pdPASS) {
+    portBASE_TYPE task_created = xTaskCreate(ain_test_task,
+                    (const signed char*)"ain_test_task",
+                    TEST_TASK_TASK, NULL, TEST_TASK_PRIORITY,
+                    &test_task_handle
+            );
+
+    if(task_created != pdPASS) {
 
         rpp_sci_printf((const char*)
                 "ERROR: Problem spawning the test task. "
index 578d326c8f1054db104c9ead6ac0a6d2ce90b320..76ee03148f3237bd04696e72f4655d8cdf5d6e49 100644 (file)
@@ -116,9 +116,13 @@ void test_aout(void)
 {
     xTaskHandle test_task_handle;
 
-    if(xTaskCreate(aout_test_task, (const signed char*)"aout_test_task",
-                   TEST_TASK_TASK, NULL, TEST_TASK_PRIORITY,
-                   &test_task_handle) != pdPASS) {
+    portBASE_TYPE task_created = xTaskCreate(aout_test_task,
+                    (const signed char*)"aout_test_task",
+                    TEST_TASK_TASK, NULL, TEST_TASK_PRIORITY,
+                    &test_task_handle
+            );
+
+    if(task_created != pdPASS) {
 
         rpp_sci_printf((const char*)
                 "ERROR: Problem spawning the test task. "
index cd1023a21fda9cb97877ac98d5e9bf1cf7175a5e..706eb8f9278e7cd8aa5e8dc263be930ccdab6055 100644 (file)
@@ -94,9 +94,13 @@ void test_din(void)
 {
     xTaskHandle test_task_handle;
 
-    if(xTaskCreate(din_test_task, (const signed char*)"din_test_task",
-                   TEST_TASK_TASK, NULL, TEST_TASK_PRIORITY,
-                   &test_task_handle) != pdPASS) {
+    portBASE_TYPE task_created = xTaskCreate(din_test_task,
+                    (const signed char*)"din_test_task",
+                    TEST_TASK_TASK, NULL, TEST_TASK_PRIORITY,
+                    &test_task_handle
+            );
+
+    if(task_created != pdPASS) {
 
         rpp_sci_printf((const char*)
                 "ERROR: Problem spawning the test task. "
index 38390110e7caf74263dcd67c3b6a1b6647a36f05..a7d09b784e96e704f686e6ec43c659c8d8e65a3c 100644 (file)
@@ -98,9 +98,13 @@ void test_hbr(void)
 {
     xTaskHandle test_task_handle;
 
-    if(xTaskCreate(hbr_test_task, (const signed char*)"hbr_test_task",
-                   TEST_TASK_TASK, NULL, TEST_TASK_PRIORITY,
-                   &test_task_handle) != pdPASS) {
+    portBASE_TYPE task_created = xTaskCreate(hbr_test_task,
+                    (const signed char*)"hbr_test_task",
+                    TEST_TASK_TASK, NULL, TEST_TASK_PRIORITY,
+                    &test_task_handle
+            );
+
+    if(task_created != pdPASS) {
 
         rpp_sci_printf((const char*)
                 "ERROR: Problem spawning the test task. "
index e12fee2948c383eaea355e9590d060ec6398fdf5..ed1326015e829edef0a582960f3a837ecd4f96ba 100644 (file)
@@ -81,9 +81,13 @@ void test_lout(void)
 {
     xTaskHandle test_task_handle;
 
-    if(xTaskCreate(lout_test_task, (const signed char*)"lout_test_task",
-                   TEST_TASK_TASK, NULL, TEST_TASK_PRIORITY,
-                   &test_task_handle) != pdPASS) {
+    portBASE_TYPE task_created = xTaskCreate(lout_test_task,
+                    (const signed char*)"lout_test_task",
+                    TEST_TASK_TASK, NULL, TEST_TASK_PRIORITY,
+                    &test_task_handle
+            );
+
+    if(task_created != pdPASS) {
 
         rpp_sci_printf((const char*)
                 "ERROR: Problem spawning the test task. "
index 2ac41867dcdce738746b89cdedf6567ff67ce80f..0f3e2d5b6d491042b9073de9e1910632b9b143e1 100644 (file)
@@ -75,9 +75,13 @@ void test_sdr(void)
     // command processor (which output messages to the SCI), and that inmediatly
     // after the noise task could not be created, forcing to close the just
     // opened command processor.
-    if(xTaskCreate(sdr_test_task, (const signed char*)"sdr_test_task",
-                   TEST_TASK_TASK, NULL, TEST_TASK_PRIORITY,
-                   &test_task_handle) != pdPASS) {
+    portBASE_TYPE task_created = xTaskCreate(sdr_test_task,
+                    (const signed char*)"sdr_test_task",
+                    TEST_TASK_TASK, NULL, TEST_TASK_PRIORITY,
+                    &test_task_handle
+            );
+
+    if(task_created != pdPASS) {
 
         rpp_sci_printf((const char*)
                 "ERROR: Problem spawning the test task. "