<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2010-06-28)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxtime/psxtime.scn, psxtime/test.c: Add test for passing a null
pointer.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/ChangeLog.diff?r1=text&tr1=1.274&r2=text&tr2=1.275&diff_format=h">M</a></td><td width='1%'>1.275</td><td width='100%'>testsuites/psxtests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxtime/psxtime.scn.diff?r1=text&tr1=1.6&r2=text&tr2=1.7&diff_format=h">M</a></td><td width='1%'>1.7</td><td width='100%'>testsuites/psxtests/psxtime/psxtime.scn</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxtime/test.c.diff?r1=text&tr1=1.16&r2=text&tr2=1.17&diff_format=h">M</a></td><td width='1%'>1.17</td><td width='100%'>testsuites/psxtests/psxtime/test.c</td></tr>
</table>
<pre>
<font color='#006600'>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
</font><font color='#997700'>@@ -1,5 +1,10 @@
</font> 2010-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>
<font color='#000088'>+ * psxtime/psxtime.scn, psxtime/test.c: Add test for passing a null
+ pointer.
+
+2010-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>
+
</font> * configure.ac: Remove reference to RTEMS_OBJECT_FORMAT.
2010-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>
<font color='#006600'>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
</font><font color='#997700'>@@ -1,4 +1,5 @@
</font> *** POSIX TIME OF DAY TEST ***
<font color='#000088'>+gettimeofday( NULL, NULL ) - EFAULT
</font> rtems_clock_set 12:45:00 01/01/1988
adjtime - NULL delta - EINVAL
adjtime - delta out of range - EINVAL
<font color='#006600'>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
</font><font color='#997700'>@@ -66,16 +66,16 @@
</font>
print_time( "rtems_clock_set ", the_tod, "\n" );
status = rtems_clock_set( the_tod );
<font color='#880000'>- rtems_test_assert( !status );
</font><font color='#000088'>+ rtems_test_assert( !status );
</font>
do {
status = rtems_clock_get_tod( &new_tod );
<font color='#880000'>- rtems_test_assert( !status );
</font><font color='#000088'>+ rtems_test_assert( !status );
</font> print_time( "rtems_clock_get_tod ", &new_tod, "\n" );
/* now do the posix time gets */
result = gettimeofday( &tv, 0 );
<font color='#880000'>- rtems_test_assert( result == 0 );
</font><font color='#000088'>+ rtems_test_assert( result == 0 );
</font> a_time_t = tv.tv_sec; /* ctime() takes a time_t */
printf( "gettimeofday: %s", ctime( &a_time_t) );
<font color='#997700'>@@ -109,7 +109,7 @@
</font>
print_time( "rtems_clock_set ", the_tod, "\n" );
status = rtems_clock_set( the_tod );
<font color='#880000'>- rtems_test_assert( !status );
</font><font color='#000088'>+ rtems_test_assert( !status );
</font>
delta.tv_sec = 0;
delta.tv_usec = 0;
<font color='#997700'>@@ -118,62 +118,62 @@
</font>
puts( "adjtime - NULL delta - EINVAL" );
sc = adjtime( NULL, &olddelta );
<font color='#880000'>- rtems_test_assert( sc == -1 );
- rtems_test_assert( errno == EINVAL );
</font><font color='#000088'>+ rtems_test_assert( sc == -1 );
+ rtems_test_assert( errno == EINVAL );
</font>
puts( "adjtime - delta out of range - EINVAL" );
delta.tv_usec = 1000000000; /* 100 seconds worth */
sc = adjtime( &delta, &olddelta );
<font color='#880000'>- rtems_test_assert( sc == -1 );
- rtems_test_assert( errno == EINVAL );
</font><font color='#000088'>+ rtems_test_assert( sc == -1 );
+ rtems_test_assert( errno == EINVAL );
</font>
puts( "adjtime - delta too small - do nothing" );
delta.tv_sec = 0;
delta.tv_usec = 1;
sc = adjtime( &delta, &olddelta );
<font color='#880000'>- rtems_test_assert( sc == 0 );
</font><font color='#000088'>+ rtems_test_assert( sc == 0 );
</font>
puts( "adjtime - delta too small - do nothing, olddelta=NULL" );
sc = adjtime( &delta, NULL );
<font color='#880000'>- rtems_test_assert( sc == 0 );
</font><font color='#000088'>+ rtems_test_assert( sc == 0 );
</font>
puts( "adjtime - delta of one second forward, olddelta=NULL" );
delta.tv_sec = 1;
delta.tv_usec = 0;
sc = adjtime( &delta, NULL );
<font color='#880000'>- rtems_test_assert( sc == 0 );
</font><font color='#000088'>+ rtems_test_assert( sc == 0 );
</font>
puts( "adjtime - delta of one second forward" );
delta.tv_sec = 1;
delta.tv_usec = 0;
sc = adjtime( &delta, &olddelta );
<font color='#880000'>- rtems_test_assert( sc == 0 );
</font><font color='#000088'>+ rtems_test_assert( sc == 0 );
</font>
puts( "adjtime - delta of almost two seconds forward" );
delta.tv_sec = 1;
delta.tv_usec = 1000000 - 1;
sc = adjtime( &delta, &olddelta );
<font color='#880000'>- rtems_test_assert( sc == 0 );
</font><font color='#000088'>+ rtems_test_assert( sc == 0 );
</font>
/*
* spin until over 1/2 of the way to the
*/
ticks = rtems_clock_get_ticks_per_second();
<font color='#880000'>- rtems_test_assert( ticks );
</font><font color='#000088'>+ rtems_test_assert( ticks );
</font> ticks /= 2;
do {
status = rtems_clock_get_tod( &tod );
<font color='#880000'>- rtems_test_assert( !status );
</font><font color='#000088'>+ rtems_test_assert( !status );
</font> } 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 );
<font color='#880000'>- rtems_test_assert( sc == 0 );
</font><font color='#000088'>+ rtems_test_assert( sc == 0 );
</font>
status = rtems_clock_get_tod( &tod );
<font color='#880000'>- rtems_test_assert( !status );
</font><font color='#000088'>+ rtems_test_assert( !status );
</font> print_time( "rtems_clock_get_tod ", &tod, "\n" );
}
<font color='#997700'>@@ -193,9 +193,15 @@
</font> #endif
{
int i;
<font color='#000088'>+ int sc;
</font>
puts( "\n\n*** POSIX TIME OF DAY TEST ***" );
<font color='#000088'>+ puts( "gettimeofday( NULL, NULL ) - EFAULT" );
+ sc = gettimeofday( NULL, NULL );
+ rtems_test_assert( sc == -1 );
+ rtems_test_assert( errno == EFAULT );
+
</font> test_adjtime();
/*
</pre>
<p> </p>
<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>