change log for rtems (2010-06-28)
rtems-vc at rtems.org
rtems-vc at rtems.org
Mon Jun 28 21:12:03 UTC 2010
*joel*:
2010-06-28 Joel Sherrill <joel.sherrill at oarcorp.com>
* psxtime/psxtime.scn, psxtime/test.c: Add test for passing a null
pointer.
M 1.275 testsuites/psxtests/ChangeLog
M 1.7 testsuites/psxtests/psxtime/psxtime.scn
M 1.17 testsuites/psxtests/psxtime/test.c
diff -u rtems/testsuites/psxtests/ChangeLog:1.274 rtems/testsuites/psxtests/ChangeLog:1.275
--- rtems/testsuites/psxtests/ChangeLog:1.274 Mon Jun 28 14:53:00 2010
+++ rtems/testsuites/psxtests/ChangeLog Mon Jun 28 16:00:15 2010
@@ -1,5 +1,10 @@
2010-06-28 Joel Sherrill <joel.sherrill at oarcorp.com>
+ * psxtime/psxtime.scn, psxtime/test.c: Add test for passing a null
+ pointer.
+
+2010-06-28 Joel Sherrill <joel.sherrill at oarcorp.com>
+
* configure.ac: Remove reference to RTEMS_OBJECT_FORMAT.
2010-06-28 Joel Sherrill <joel.sherrill at oarcorp.com>
diff -u rtems/testsuites/psxtests/psxtime/psxtime.scn:1.6 rtems/testsuites/psxtests/psxtime/psxtime.scn:1.7
--- rtems/testsuites/psxtests/psxtime/psxtime.scn:1.6 Tue Jun 22 12:44:02 2010
+++ rtems/testsuites/psxtests/psxtime/psxtime.scn Mon Jun 28 16:00:15 2010
@@ -1,4 +1,5 @@
*** POSIX TIME OF DAY TEST ***
+gettimeofday( NULL, NULL ) - EFAULT
rtems_clock_set 12:45:00 01/01/1988
adjtime - NULL delta - EINVAL
adjtime - delta out of range - EINVAL
diff -u rtems/testsuites/psxtests/psxtime/test.c:1.16 rtems/testsuites/psxtests/psxtime/test.c:1.17
--- rtems/testsuites/psxtests/psxtime/test.c:1.16 Tue Jun 22 12:44:02 2010
+++ rtems/testsuites/psxtests/psxtime/test.c Mon Jun 28 16:00:15 2010
@@ -66,16 +66,16 @@
print_time( "rtems_clock_set ", the_tod, "\n" );
status = rtems_clock_set( the_tod );
- rtems_test_assert( !status );
+ rtems_test_assert( !status );
do {
status = rtems_clock_get_tod( &new_tod );
- rtems_test_assert( !status );
+ rtems_test_assert( !status );
print_time( "rtems_clock_get_tod ", &new_tod, "\n" );
/* now do the posix time gets */
result = gettimeofday( &tv, 0 );
- rtems_test_assert( result == 0 );
+ rtems_test_assert( result == 0 );
a_time_t = tv.tv_sec; /* ctime() takes a time_t */
printf( "gettimeofday: %s", ctime( &a_time_t) );
@@ -109,7 +109,7 @@
print_time( "rtems_clock_set ", the_tod, "\n" );
status = rtems_clock_set( the_tod );
- rtems_test_assert( !status );
+ rtems_test_assert( !status );
delta.tv_sec = 0;
delta.tv_usec = 0;
@@ -118,62 +118,62 @@
puts( "adjtime - NULL delta - EINVAL" );
sc = adjtime( NULL, &olddelta );
- rtems_test_assert( sc == -1 );
- rtems_test_assert( errno == EINVAL );
+ rtems_test_assert( sc == -1 );
+ rtems_test_assert( errno == EINVAL );
puts( "adjtime - delta out of range - EINVAL" );
delta.tv_usec = 1000000000; /* 100 seconds worth */
sc = adjtime( &delta, &olddelta );
- rtems_test_assert( sc == -1 );
- rtems_test_assert( errno == EINVAL );
+ rtems_test_assert( sc == -1 );
+ rtems_test_assert( errno == EINVAL );
puts( "adjtime - delta too small - do nothing" );
delta.tv_sec = 0;
delta.tv_usec = 1;
sc = adjtime( &delta, &olddelta );
- rtems_test_assert( sc == 0 );
+ rtems_test_assert( sc == 0 );
puts( "adjtime - delta too small - do nothing, olddelta=NULL" );
sc = adjtime( &delta, NULL );
- rtems_test_assert( sc == 0 );
+ 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 );
+ rtems_test_assert( sc == 0 );
puts( "adjtime - delta of one second forward" );
delta.tv_sec = 1;
delta.tv_usec = 0;
sc = adjtime( &delta, &olddelta );
- rtems_test_assert( sc == 0 );
+ rtems_test_assert( sc == 0 );
puts( "adjtime - delta of almost two seconds forward" );
delta.tv_sec = 1;
delta.tv_usec = 1000000 - 1;
sc = adjtime( &delta, &olddelta );
- rtems_test_assert( sc == 0 );
+ rtems_test_assert( sc == 0 );
/*
* spin until over 1/2 of the way to the
*/
ticks = rtems_clock_get_ticks_per_second();
- rtems_test_assert( ticks );
+ rtems_test_assert( ticks );
ticks /= 2;
do {
status = rtems_clock_get_tod( &tod );
- rtems_test_assert( !status );
+ rtems_test_assert( !status );
} while ( tod.ticks <= ticks );
puts( "adjtime - delta of almost one second forward which bumps second" );
delta.tv_sec = 0;
delta.tv_usec = 1000000 - 1;
sc = adjtime( &delta, &olddelta );
- rtems_test_assert( sc == 0 );
+ rtems_test_assert( sc == 0 );
status = rtems_clock_get_tod( &tod );
- rtems_test_assert( !status );
+ rtems_test_assert( !status );
print_time( "rtems_clock_get_tod ", &tod, "\n" );
}
@@ -193,9 +193,15 @@
#endif
{
int i;
+ int sc;
puts( "\n\n*** POSIX TIME OF DAY TEST ***" );
+ puts( "gettimeofday( NULL, NULL ) - EFAULT" );
+ sc = gettimeofday( NULL, NULL );
+ rtems_test_assert( sc == -1 );
+ rtems_test_assert( errno == EFAULT );
+
test_adjtime();
/*
--
Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20100628/f21070a7/attachment-0001.html>
More information about the vc
mailing list