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:
Jennifer Averett
2010-06-22 17:44:02 +00:00
parent db904606e3
commit 34c062f065
3 changed files with 12 additions and 0 deletions

View File

@@ -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

View File

@@ -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;