Changeset 1c78f6a in rtems


Ignore:
Timestamp:
Oct 10, 2009, 3:09:36 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
58a8a47
Parents:
c257fb9e
Message:

2009-10-10 Joel Sherrill <joel.sherrill@…>

  • psxtimer01/psxtimer.c: Modify so it passes in a NULL to timer_settime() for previous value. We are not using the value in this particular case and this path must be exercised.
  • psxtimer01/psxtimer01.scn: Update so it matches output on sis.
Location:
testsuites/psxtests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    rc257fb9e r1c78f6a  
     12009-10-10      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * psxtimer01/psxtimer.c: Modify so it passes in a NULL to
     4        timer_settime() for previous value. We are not using the
     5        value in this particular case and this path must be exercised.
     6        * psxtimer01/psxtimer01.scn: Update so it matches output on sis.
     7
    182009-09-28      Joel Sherrill <joel.sherrill@OARcorp.com>
    29
  • testsuites/psxtests/psxtimer01/psxtimer.c

    rc257fb9e r1c78f6a  
    6464)
    6565{
    66    struct   itimerspec prev;
    67 
     66   /*
     67    *  We do not care about the old value.  And this is a path
     68    *  that needs to be exercised anyway.
     69    */
    6870   timerdata->it_value.tv_sec  = 0;
    6971   timerdata->it_value.tv_nsec  = 0;
    70    if (timer_settime(timer_id,POSIX_TIMER_RELATIVE,timerdata,&prev) == -1) {
     72   if (timer_settime(timer_id,POSIX_TIMER_RELATIVE,timerdata,NULL) == -1) {
    7173     perror ("Error in timer setting\n");
    7274     pthread_exit ((void *) -1);
  • testsuites/psxtests/psxtimer01/psxtimer01.scn

    rc257fb9e r1c78f6a  
    11*** POSIX Timers Test 01 ***
    22task A: timer_settime - value=0:0 interval=0:0
    3 Executing task B with count = 10 Fri Jan  1 00:00:02 1988
     3Executing task B with count = 10 Fri Jan  1 00:00:01 1988
    44Executing task A with count = 20 Fri Jan  1 00:00:02 1988
    55Executing task A with count = 19 Fri Jan  1 00:00:03 1988
    6 Executing task B with count =  9 Fri Jan  1 00:00:04 1988
     6Executing task B with count =  9 Fri Jan  1 00:00:03 1988
    77Executing task A with count = 18 Fri Jan  1 00:00:04 1988
    88Executing task A with count = 17 Fri Jan  1 00:00:05 1988
    9 Executing task B with count =  8 Fri Jan  1 00:00:06 1988
     9Executing task B with count =  8 Fri Jan  1 00:00:05 1988
    1010Executing task C with count =  6 Fri Jan  1 00:00:06 1988
    1111Executing task A with count = 16 Fri Jan  1 00:00:06 1988
    1212Executing task A with count = 15 Fri Jan  1 00:00:07 1988
    13 Executing task B with count =  7 Fri Jan  1 00:00:08 1988
     13Executing task B with count =  7 Fri Jan  1 00:00:07 1988
    1414Executing task A with count = 14 Fri Jan  1 00:00:08 1988
    1515Executing task C with count =  5 Fri Jan  1 00:00:09 1988
    1616Executing task A with count = 13 Fri Jan  1 00:00:09 1988
    17 Executing task B with count =  6 Fri Jan  1 00:00:10 1988
     17Executing task B with count =  6 Fri Jan  1 00:00:09 1988
    1818Executing task A with count = 12 Fri Jan  1 00:00:10 1988
    1919Executing task A with count = 11 Fri Jan  1 00:00:11 1988
    20 Executing task B with count =  5 Fri Jan  1 00:00:12 1988
     20Executing task B with count =  5 Fri Jan  1 00:00:11 1988
    2121Executing task C with count =  4 Fri Jan  1 00:00:12 1988
    2222Executing task A with count = 10 Fri Jan  1 00:00:12 1988
    2323Executing task A with count =  9 Fri Jan  1 00:00:13 1988
    24 Executing task B with count =  4 Fri Jan  1 00:00:14 1988
     24Executing task B with count =  4 Fri Jan  1 00:00:13 1988
    2525Executing task A with count =  8 Fri Jan  1 00:00:14 1988
    2626Executing task C with count =  3 Fri Jan  1 00:00:15 1988
    2727Executing task A with count =  7 Fri Jan  1 00:00:15 1988
    28 Executing task B with count =  3 Fri Jan  1 00:00:16 1988
     28Executing task B with count =  3 Fri Jan  1 00:00:15 1988
    2929Executing task A with count =  6 Fri Jan  1 00:00:16 1988
    3030Executing task A with count =  5 Fri Jan  1 00:00:17 1988
    31 Executing task B with count =  2 Fri Jan  1 00:00:18 1988
     31Executing task B with count =  2 Fri Jan  1 00:00:17 1988
    3232Executing task C with count =  2 Fri Jan  1 00:00:18 1988
    3333Executing task A with count =  4 Fri Jan  1 00:00:18 1988
    3434Executing task A with count =  3 Fri Jan  1 00:00:19 1988
    35 Executing task B with count =  1 Fri Jan  1 00:00:20 1988
     35Executing task B with count =  1 Fri Jan  1 00:00:19 1988
    3636Executing task A with count =  2 Fri Jan  1 00:00:20 1988
    3737Executing task C with count =  1 Fri Jan  1 00:00:21 1988
     
    3939task C: timer_getoverrun - overruns=0
    4040task C: timer_gettime - 2:0 remaining from 3:0
     41starting C again with 0.5 second periodicity
     42Executing task C with count =  6 Fri Jan  1 00:00:25 1988
     43Executing task C with count =  5 Fri Jan  1 00:00:26 1988
     44Executing task C with count =  4 Fri Jan  1 00:00:26 1988
     45Executing task C with count =  3 Fri Jan  1 00:00:27 1988
     46Executing task C with count =  2 Fri Jan  1 00:00:27 1988
     47Executing task C with count =  1 Fri Jan  1 00:00:28 1988
     48task C: timer_getoverrun - overruns=0
     49task C: timer_gettime - 0:500000000 remaining from 0:500000000
     50Executing task C with count =  0 Fri Jan  1 00:00:29 1988
    4151*** END OF POSIX Timers Test 01 ***
Note: See TracChangeset for help on using the changeset viewer.