Changeset f91b1860 in rtems


Ignore:
Timestamp:
Mar 11, 2011, 8:36:45 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
9e6c68c
Parents:
95fc0a6
Message:

2011-03-11 Joel Sherrill <joel.sherrilL@…>

  • sp58/init.c, sp58/sp58.scn: Account for case where left hand side seconds field is less than.
Location:
testsuites/sptests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    r95fc0a6 rf91b1860  
     12011-03-11      Joel Sherrill <joel.sherrilL@OARcorp.com>
     2
     3        * sp58/init.c, sp58/sp58.scn: Account for case where left hand side
     4        seconds field is less than.
     5
    162011-03-11      Joel Sherrill <joel.sherrilL@OARcorp.com>
    27
  • testsuites/sptests/sp58/init.c

    r95fc0a6 rf91b1860  
    4040  rtems_test_assert( ival_percentage == 0 );
    4141  rtems_test_assert( fval_percentage == 0 );
     42}
    4243
     44void timespec_greater_than_lhs_sec_less(void)
     45{
     46  struct timespec   lhs;
     47  struct timespec   rhs;
     48  bool              rc;
     49
     50  lhs.tv_sec  = 100;
     51  lhs.tv_nsec = 0;
     52
     53  rhs.tv_sec  = 101;
     54  rhs.tv_nsec = 0;
     55
     56  puts( "Init - _Timespec_Greater_than - lhs seconds less" );
     57  rc = _Timespec_Greater_than( &lhs, &rhs );
     58  rtems_test_assert( rc == false );
    4359}
    4460
     
    5066
    5167  timespec_divide_by_zero();
     68  timespec_greater_than_lhs_sec_less();
    5269
    5370  puts( "*** END OF TEST 58 ***" );
  • testsuites/sptests/sp58/sp58.scn

    r95fc0a6 rf91b1860  
    11*** TEST 58 ***
    22Init - _Timespec_Divide - by zero
     3Init - _Timespec_Greater_than - lhs seconds less
    34*** END OF TEST 58 ***
Note: See TracChangeset for help on using the changeset viewer.