Changeset c54e6f5 in rtems


Ignore:
Timestamp:
Oct 14, 2009, 9:34:43 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
614821e
Parents:
dcb1407d
Message:

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

  • psxtimer01/psxtimer.c: It is not necessarily an error for the time remaining to not equal the period.
Location:
testsuites/psxtests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    rdcb1407d rc54e6f5  
     12009-10-14      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * psxtimer01/psxtimer.c: It is not necessarily an error for the time
     4        remaining to not equal the period.
     5
    162009-10-11      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • testsuites/psxtests/psxtimer01/psxtimer.c

    rdcb1407d rc54e6f5  
    202202       rtems_test_exit(0);
    203203     }
     204
     205#if 0
     206     /*
     207      *  It is not an error if they are not equal.  A clock tick could occur
     208      *  and thus they are close but not equal.  Can we test for this?
     209      */
    204210     if ( !_Timespec_Equal_to( &timerdata.it_value, &my_period) ){
    205        perror ("Error in Task B timer_gettime\n");
    206        rtems_test_exit(0);
    207      }
     211       printf( "NOT EQUAL %d:%d != %d:%d\n",
     212          timerdata.it_value.tv_sec,
     213          timerdata.it_value.tv_nsec,
     214          my_period.tv_sec,
     215          my_period.tv_nsec
     216       );
     217       rtems_test_exit(0);
     218     }
     219#endif
    208220
    209221     pthread_mutex_lock (&data.mutex);
Note: See TracChangeset for help on using the changeset viewer.