rtos signal test program

Dependencies:   RTOS-errstr mbed-rtos mbed

Files at this revision

API Documentation at this revision

Comitter:
YasuhiroKawai
Date:
Tue Jul 25 04:38:49 2017 +0000
Parent:
2:6f6d2139353c
Commit message:
Add more test cases.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 6f6d2139353c -r 1b9c07fe623b main.cpp
--- a/main.cpp	Sun Jul 23 02:40:42 2017 +0000
+++ b/main.cpp	Tue Jul 25 04:38:49 2017 +0000
@@ -26,9 +26,11 @@
     { 0x0000,  0x0080, },
     { 0x0000, 0x10000, },
     { 0x0001,  0x0001, },
-    { 0x0003,  0x0003, },
     { 0x0003,  0x0001, },
     { 0x0003,  0x0002, },
+    { 0x0001,  0x0003, },
+    { 0x0002,  0x0000, },
+    
 };
 
 void
@@ -48,7 +50,8 @@
         //thread.signal_clr(signal);
         i++;
         if (i >= sizeof(tbl) / sizeof(sig_table_t)) {
-            i = 0;
+            //i = 0;
+            MBED_ASSERT(false);
         }
     }
 }