forked from Imagelibrary/rtems
2010-06-22 Jennifer Averett <Jennifer.Averett@OARcorp.com>
* psxtime/psxtime.scn, psxtime/test.c: Add a normal case with second parameter to adjtime NULL.
This commit is contained in:
@@ -4,6 +4,7 @@ adjtime - NULL delta - EINVAL
|
||||
adjtime - delta out of range - EINVAL
|
||||
adjtime - delta too small - do nothing
|
||||
adjtime - delta too small - do nothing, olddelta=NULL
|
||||
adjtime - delta of one second forward, olddelta=NULL
|
||||
adjtime - delta of one second forward
|
||||
adjtime - delta of almost two seconds forward
|
||||
adjtime - delta of almost one second forward which bumps second
|
||||
|
||||
@@ -137,6 +137,12 @@ void test_adjtime(void)
|
||||
sc = adjtime( &delta, NULL );
|
||||
rtems_test_assert( sc == 0 );
|
||||
|
||||
puts( "adjtime - delta of one second forward, olddelta=NULL" );
|
||||
delta.tv_sec = 1;
|
||||
delta.tv_usec = 0;
|
||||
sc = adjtime( &delta, NULL );
|
||||
rtems_test_assert( sc == 0 );
|
||||
|
||||
puts( "adjtime - delta of one second forward" );
|
||||
delta.tv_sec = 1;
|
||||
delta.tv_usec = 0;
|
||||
|
||||
Reference in New Issue
Block a user