@@ -1905,19 +1905,31 @@ def test(self):
19051905 # thread.
19061906 self .gdb .threads ()
19071907
1908- bp = self .gdb .b ("prvQueueReceiveTask" )
1908+ # fake 'Current Execution' thread is created.
1909+ threads = self .gdb .threads ()
1910+ assertEqual (len (threads ), 1 )
1911+ assertIn ("Current Execution" , threads [0 ])
19091912
1913+ bp = self .gdb .b ("vTaskStartScheduler" )
19101914 self .gdb .c ()
19111915 self .gdb .command (f"delete { bp } " )
1916+ # 'Current Execution' is still there before the scheduler has been started.
1917+ # Now there are 3 threads: Current Execution, Rx, Tx.
1918+ threads = self .gdb .threads ()
1919+ assertEqual (len (threads ), 3 )
19121920
1913- bp = self .gdb .b ("prvQueueSendTask " )
1921+ bp = self .gdb .b ("prvQueueReceiveTask " )
19141922 self .gdb .c ()
19151923 self .gdb .command (f"delete { bp } " )
19161924
1917- # Now we know for sure at least 2 threads have executed.
1925+ bp = self .gdb .b ("prvQueueSendTask" )
1926+ self .gdb .c ()
1927+ self .gdb .command (f"delete { bp } " )
19181928
1929+ # no more fake 'Current Execution' thread.
1930+ # Now there are 4 threads: Rx, Tx, IDLE, Tmr Svc.
19191931 threads = self .gdb .threads ()
1920- assertGreater (len (threads ), 1 )
1932+ assertEqual (len (threads ), 4 )
19211933
19221934 values = {}
19231935 for thread in threads :
0 commit comments