Changeset f132a3d8 in rtems


Ignore:
Timestamp:
Aug 19, 2008, 2:46:52 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
8d7fe622
Parents:
e77c7238
Message:

2008-08-19 Tim FitzGeorge? <tim.fitzgeorge@…>

PR 1296/cpukit.

  • psxtimer01/psxtimer.c, psxtimer01/psxtimer01.scn: POSIX timers use incorrect repeat interval. This patch fixes the following problems in the test. (1) Adds test for value of it_interval.tv_nsec. (2) Corrects test for absolute timer in past. (3) Modifies test to use different initial and repeat periods. (4) Updates psxtimer01.scn to match results.
Location:
testsuites/psxtests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    re77c7238 rf132a3d8  
     12008-08-19      Tim FitzGeorge <tim.fitzgeorge@astrium.eads.net>
     2
     3        PR 1296/cpukit.
     4        * psxtimer01/psxtimer.c, psxtimer01/psxtimer01.scn: POSIX timers use
     5        incorrect repeat interval. This patch fixes the following problems in
     6        the test.
     7          (1) Adds test for value of it_interval.tv_nsec.
     8          (2) Corrects test for absolute timer in past.
     9          (3) Modifies test to use different initial and repeat periods.
     10          (4) Updates psxtimer01.scn to match results.
     11
    1122008-08-15      Joel Sherrill <joel.sherrill@OARcorp.com>
    213
  • testsuites/psxtests/psxtimer01/psxtimer.c

    re77c7238 rf132a3d8  
    9898   timerdata.it_interval = my_period;
    9999   timerdata.it_value    = my_period;
     100   timerdata.it_value.tv_sec *= 2;
    100101   if (timer_settime(timer_id,POSIX_TIMER_RELATIVE,&timerdata,&timergetdata) == -1) {
    101102     perror ("Error in timer setting\n");
     
    187188     pthread_mutex_lock (&data.mutex);
    188189     clock = time(NULL);
    189      printf("Executing task B with count = %2i %s\n",
     190     printf("Executing task B with count = %2i %s",
    190191       params->count, ctime(&clock)
    191192     );
     
    235236   timerdata.it_interval = my_period;
    236237   timerdata.it_value    = my_period;
     238   timerdata.it_value.tv_sec *= 2;
    237239   if (timer_settime(timer_id,POSIX_TIMER_RELATIVE,&timerdata,NULL) == -1) {
    238240     perror ("Error in timer setting\n");
     
    258260     }
    259261     clock = time(NULL);
    260      printf("Executing task C with count = %2i %s\n",
     262     printf("Executing task C with count = %2i %s",
    261263       params->count, ctime(&clock)
    262264     );
  • testsuites/psxtests/psxtimer01/psxtimer01.scn

    re77c7238 rf132a3d8  
    11*** POSIX Timers Test 01 ***
    22task A: timer_settime - value=0:0 interval=0:0
    3 Executing task A Fri Jan  1 00:00:01 1988
    4 Executing task B with x = 1 Fri Jan  1 00:00:02 1988
    5 Executing task A Fri Jan  1 00:00:02 1988
    6 Executing task C with x = 1 Fri Jan  1 00:00:03 1988
    7 Executing task A Fri Jan  1 00:00:03 1988
    8 Executing task B with x = 2 Fri Jan  1 00:00:04 1988
    9 Executing task A Fri Jan  1 00:00:04 1988
    10 Executing task A Fri Jan  1 00:00:05 1988
    11 Executing task B with x = 3 Fri Jan  1 00:00:06 1988
    12 Executing task C with x = 3 Fri Jan  1 00:00:06 1988
    13 Executing task A Fri Jan  1 00:00:06 1988
    14 Executing task A Fri Jan  1 00:00:07 1988
    15 Executing task B with x = 4 Fri Jan  1 00:00:08 1988
    16 Executing task A Fri Jan  1 00:00:08 1988
    17 Executing task C with x = 4 Fri Jan  1 00:00:09 1988
    18 Executing task A Fri Jan  1 00:00:09 1988
    19 Executing task B with x = 5 Fri Jan  1 00:00:10 1988
    20 Executing task A Fri Jan  1 00:00:10 1988
    21 Executing task A Fri Jan  1 00:00:11 1988
    22 Executing task B with x = 6 Fri Jan  1 00:00:12 1988
    23 Executing task C with x = 6 Fri Jan  1 00:00:12 1988
    24 Executing task A Fri Jan  1 00:00:12 1988
    25 Executing task A Fri Jan  1 00:00:13 1988
    26 Executing task B with x = 7 Fri Jan  1 00:00:14 1988
    27 Executing task A Fri Jan  1 00:00:14 1988
    28 Executing task C with x = 7 Fri Jan  1 00:00:15 1988
    29 Executing task A Fri Jan  1 00:00:15 1988
    30 Executing task B with x = 8 Fri Jan  1 00:00:16 1988
    31 Executing task A Fri Jan  1 00:00:16 1988
    32 Executing task A Fri Jan  1 00:00:17 1988
    33 Executing task B with x = 9 Fri Jan  1 00:00:18 1988
    34 Executing task C with x = 9 Fri Jan  1 00:00:18 1988
    35 Executing task A Fri Jan  1 00:00:18 1988
     3Executing task B with count = 10 Fri Jan  1 00:00:02 1988
     4Executing task A with count = 20 Fri Jan  1 00:00:02 1988
     5Executing task A with count = 19 Fri Jan  1 00:00:03 1988
     6Executing task B with count =  9 Fri Jan  1 00:00:04 1988
     7Executing task A with count = 18 Fri Jan  1 00:00:04 1988
     8Executing task A with count = 17 Fri Jan  1 00:00:05 1988
     9Executing task B with count =  8 Fri Jan  1 00:00:06 1988
     10Executing task C with count =  6 Fri Jan  1 00:00:06 1988
     11Executing task A with count = 16 Fri Jan  1 00:00:06 1988
     12Executing task A with count = 15 Fri Jan  1 00:00:07 1988
     13Executing task B with count =  7 Fri Jan  1 00:00:08 1988
     14Executing task A with count = 14 Fri Jan  1 00:00:08 1988
     15Executing task C with count =  5 Fri Jan  1 00:00:09 1988
     16Executing task A with count = 13 Fri Jan  1 00:00:09 1988
     17Executing task B with count =  6 Fri Jan  1 00:00:10 1988
     18Executing task A with count = 12 Fri Jan  1 00:00:10 1988
     19Executing task A with count = 11 Fri Jan  1 00:00:11 1988
     20Executing task B with count =  5 Fri Jan  1 00:00:12 1988
     21Executing task C with count =  4 Fri Jan  1 00:00:12 1988
     22Executing task A with count = 10 Fri Jan  1 00:00:12 1988
     23Executing task A with count =  9 Fri Jan  1 00:00:13 1988
     24Executing task B with count =  4 Fri Jan  1 00:00:14 1988
     25Executing task A with count =  8 Fri Jan  1 00:00:14 1988
     26Executing task C with count =  3 Fri Jan  1 00:00:15 1988
     27Executing task A with count =  7 Fri Jan  1 00:00:15 1988
     28Executing task B with count =  3 Fri Jan  1 00:00:16 1988
     29Executing task A with count =  6 Fri Jan  1 00:00:16 1988
     30Executing task A with count =  5 Fri Jan  1 00:00:17 1988
     31Executing task B with count =  2 Fri Jan  1 00:00:18 1988
     32Executing task C with count =  2 Fri Jan  1 00:00:18 1988
     33Executing task A with count =  4 Fri Jan  1 00:00:18 1988
     34Executing task A with count =  3 Fri Jan  1 00:00:19 1988
     35Executing task B with count =  1 Fri Jan  1 00:00:20 1988
     36Executing task A with count =  2 Fri Jan  1 00:00:20 1988
     37Executing task C with count =  1 Fri Jan  1 00:00:21 1988
     38Executing task A with count =  1 Fri Jan  1 00:00:21 1988
    3639task C: timer_getoverrun - overruns=0
    3740task C: timer_gettime - 2:0 remaining from 3:0
    38 Executing task A Fri Jan  1 00:00:19 1988
    39 Executing task B with x = 10 Fri Jan  1 00:00:20 1988
    4041*** END OF POSIX Timers Test 01 ***
Note: See TracChangeset for help on using the changeset viewer.