[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

failing tests



Geoffroy Montel <g_montel at yahoo.com> wrote:
> Hello!
>
> I installed egcs-1.0.3 and tools, and tried the tests. I'm running 
> rtems-980527 with BSP = 68340 (mine).
> All the tests run successfully except of the 4th and the 13th ones.
> I used polled I/O.
>
> *** TEST 4 ***
> TA1 - 09:15:00   12/31/1988
> TA1 - rtems_task_suspend - on Task 2
> TA1 - rtems_task_suspend - on Task 3
> TA1 - killing time
> TA1 - rtems_task_resume - on Task 2
> TA1 - rtems_task_resume TA2 - 09:15:03   12/31/1988
> TA1 - 09:15:03   12/31/1988
> -88
> Task 3
> TA2 - 09:15:04   12/31/1988
> TA3 - 09:15:05   12/31/1988
> TA1 - 09:15:05   12/31/1988
> TA2 - 09:15:05   12/31/1988
>
> Then it loops...

Yep, I get the same thing with the gen68360 BSP.

Polled I/O:
*** TEST 4 ***
TA1 - 09:15:00   12/31/1988
TA1 - rtems_task_suspend - on Task 2
TA1 - rtems_task_suspend - on Task 3
TA1 - killing time
TA1 - rtems_task_resume - on Task 2
TA1 - rtems_taTA2 - 09:15:03   12/31/1988
TA1 - 09:15:03   12/31/1988
s  12/31/1988
 Task 3
TA2 - 09:15:04   12/31/1988
TA3 - 09:15:05   12/31/1988
TA1 - 09:15:05   12/31/1988
TA2 - 09:15:05   12/31/1988
	Then it loops here forever
	
Interrupt I/O:
*** TEST 4 ***
TA1 - 09:15:00   12/31/1988
TA1 - rtems_tasTA2 - 09:15:00   12/31/1988
TA3 - 09:15:00   12/31/1988
TA1 - 09:15:00   12/31/1988
TA2 - 09:15:00   12/31/1988
TA3 - 09:15:00   12/31/1988
	Then it loops here forever


>
>
> *** TEST 13 ***
> TA1 - rtems_message_queue_ident - qid => 18010001
> and then a bus error !

This test works for me with polled I/O:
*** TEST 13 ***
TA1 - rtems_message_queue_ident - qid => 18010001
TA1 - rtems_message_queue_send - BUFFER 1 TO Q 1
TA1 - rtems_message_queue_send - BUFFER 2 TO Q 1
TA1 - rtems_task_wake_after - sleep 5 seconds
TA2 - rtems_message_queue_receive - receive from queue 1 - RTEMS_NO_WAIT
TA2 - buffer received:  BUFFER 1 TO Q 1
TA2 - rtems_message_queue_receive - receive from queue 1 -  
RTEMS_WAIT FOREVER
TA2 - buffer received:  BUFFER 2 TO Q 1
TA2 - rtems_message_queue_receive - receive from queue 1 -  
RTEMS_WAIT FOREVER
TA3 - rtems_message_queue_receive - receive from queue 2 -  
RTEMS_WAIT FOREVER
TA1 - rtems_message_queue_send - BUFFER 3 TO Q 1
TA1 - rtems_task_wake_after - sleep 5 seconds
TA2 - buffer received:  BUFFER 3 TO Q 1
TA2 - rtems_task_set_priority - make self highest priority task
TA2 - rtems_message_queue_receive - receive from queue 2 -  
RTEMS_WAIT FOREVER
<pause>
TA1 - rtems_message_queue_send - BUFFER 1 TO Q 2
TA2 - buffer received:  BUFFER 1 TO Q 2
TA2 - rtems_message_queue_send - BUFFER 2 TO Q 2
TA2 - rtems_message_queue_receive - receive from queue 1 - 10 second  
timeout
TA1 - rtems_message_queue_receive - receive from queue 1 - 10 second  
timeout
TA3 - buffer received:  BUFFER 2 TO Q 2
TA3 - rtems_message_queue_broadcast - BUFFER 3 TO Q 1
TA2 - buffer received:  BUFFER 3 TO Q 1
TA2 - rtems_message_queue_receive - receive from queue 3 -  
RTEMS_WAIT FOREVER
TA3 - number of tasks awakened = 02
TA3 - rtems_message_queue_receive - receive from queue 3 -  
RTEMS_WAIT FOREVER
TA1 - buffer received:  BUFFER 3 TO Q 1
TA1 - rtems_task_delete - delete TA2
TA1 - rtems_message_queue_send - BUFFER 1 TO Q 3
TA1 - rtems_task_wake_after - sleep 5 seconds
TA3 - buffer received:  BUFFER 1 TO Q 3
TA3 - rtems_task_delete - delete self
<pause>
TA1 - rtems_message_queue_send - BUFFER 2 TO Q 3
TA1 - rtems_message_queue_send - BUFFER 3 TO Q 3
TA1 - rtems_message_queue_send - BUFFER 4 TO Q 3
TA1 - rtems_message_queue_urgent - BUFFER 5 TO Q 3
TA1 - rtems_message_queue_receive - receive from queue 3 -  
RTEMS_WAIT FOREVER
TA1 - buffer received:  BUFFER 5 TO Q 3
TA1 - rtems_message_queue_receive - receive from queue 3 -  
RTEMS_WAIT FOREVER
TA1 - buffer received:  BUFFER 2 TO Q 3
TA1 - rtems_message_queue_receive - receive from queue 3 -  
RTEMS_WAIT FOREVER
TA1 - buffer received:  BUFFER 3 TO Q 3
TA1 - rtems_message_queue_receive - receive from queue 3 -  
RTEMS_WAIT FOREVER
TA1 - buffer received:  BUFFER 4 TO Q 3
TA1 - rtems_message_queue_urgent - BUFFER 3 TO Q 2
TA1 - rtems_message_queue_receive - receive from queue 2 -  
RTEMS_WAIT FOREVER
TA1 - buffer received:  BUFFER 3 TO Q 2
<pause>
TA1 - rtems_message_queue_delete - delete queue 1
TA1 - rtems_message_queue_urgent - BUFFER 3 TO Q 2
TA1 - rtems_message_queue_delete - delete queue 2
TA1 - rtems_message_queue_get_number_pending - SUCCESSFUL

TA1 - 0 messages are pending on Q 3
TA1 - rtems_message_queue_flush - empty Q 3
TA1 - 0 messages were flushed from Q 3
TA1 - rtems_message_queue_send - BUFFER 1 TO Q 3
TA1 - rtems_message_queue_send - BUFFER 2 TO Q 3
TA1 - rtems_message_queue_get_number_pending - SUCCESSFUL

TA1 - 2 messages are pending on Q 3
TA1 - rtems_message_queue_send - BUFFER 3 TO Q 3
TA1 - rtems_message_queue_flush - Q 3
TA1 - 3 messages were flushed from Q 3
TA1 - rtems_message_queue_send until all message buffers consumed
TA1 - all message buffers consumed
TA1 - rtems_message_queue_flush - Q 3
TA1 - 100 messages were flushed from Q 3
<pause>
TA1 - create message queue of 20 bytes on queue 1
TA1 - rtems_message_queue_delete - delete queue 1
<pause>
TA1 - rtems_message_queue_create - variable sizes
TA1 - rtems_message_queue_create and send - variable sizes
*** END OF TEST 13 ***

But with interrupt I/O the receive fails with RTEMS_UNSATISFIED:
*** TEST 13 ***
TA1 - rtems_message_queue_ident - qid => 18010001
TA2 - rtems_message_queue_receive - receive from queue 1 - RTEMS_NO_WAIT
TA3 - rtems_message_queue_receive - receive from queue 2 -  
RTEMS_WAIT FOREVER
TA1 - rtems_message_queue_send - BUFFER 1 TO Q 1

TA1 - rtems_message_queue_send - BUFFER 2 TO Q 1
rtems_message_queue_receive FAILED -- expected (0) got (13)
TA1 - rtems_task_wake_after - sleep 5 seconds


Looks like there are a lot of problems that have to be dealt with.
Any ideas?
Chris, could the interrupt handler changes have had any effect on this?

---
Eric Norum                                 eric at skatter.usask.ca
Saskatchewan Accelerator Laboratory        Phone: (306) 966-6308
University of Saskatchewan                 FAX:   (306) 966-6058
Saskatoon, Canada.