change log for rtems (2010-04-25)
rtems-vc at rtems.org
rtems-vc at rtems.org
Sun Apr 25 20:11:30 UTC 2010
*joel*:
2010-04-25 Joel Sherrill <joel.sherrilL at OARcorp.com>
* bspcmdline01/init.c: Fix assert conditional.
M 1.173 testsuites/libtests/ChangeLog
M 1.7 testsuites/libtests/bspcmdline01/init.c
diff -u rtems/testsuites/libtests/ChangeLog:1.172 rtems/testsuites/libtests/ChangeLog:1.173
--- rtems/testsuites/libtests/ChangeLog:1.172 Sun Apr 11 11:44:52 2010
+++ rtems/testsuites/libtests/ChangeLog Sun Apr 25 14:12:22 2010
@@ -1,3 +1,7 @@
+2010-04-25 Joel Sherrill <joel.sherrilL at OARcorp.com>
+
+ * bspcmdline01/init.c: Fix assert conditional.
+
2010-04-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* POSIX/flockfile.c, POSIX/funlockfile.c, POSIX/ftrylockfile.c: New.
diff -u rtems/testsuites/libtests/bspcmdline01/init.c:1.6 rtems/testsuites/libtests/bspcmdline01/init.c:1.7
--- rtems/testsuites/libtests/bspcmdline01/init.c:1.6 Mon Dec 28 10:42:08 2009
+++ rtems/testsuites/libtests/bspcmdline01/init.c Sun Apr 25 14:12:22 2010
@@ -51,7 +51,7 @@
bsp_boot_cmdline = "edit";
puts ( "rtems_bsp_cmdline_get_param - bsp_boot_cmdline = edit name = edit -no error" );
p = rtems_bsp_cmdline_get_param("edit", result, 5);
- rtems_test_assert( p == NULL );
+ rtems_test_assert( p != NULL );
}
void test_search(
*joel*:
2010-04-25 Joel Sherrill <joel.sherrilL at OARcorp.com>
* psxreaddir/psxreaddir.scn, psxreaddir/test.c: Do not test for
rewinddir(NULL) since we are now using newlib's implementation and it
does not check for NULL. This causes a fault on some targets.
M 1.258 testsuites/psxtests/ChangeLog
M 1.5 testsuites/psxtests/psxreaddir/psxreaddir.scn
M 1.18 testsuites/psxtests/psxreaddir/test.c
diff -u rtems/testsuites/psxtests/ChangeLog:1.257 rtems/testsuites/psxtests/ChangeLog:1.258
--- rtems/testsuites/psxtests/ChangeLog:1.257 Sat Apr 3 01:07:34 2010
+++ rtems/testsuites/psxtests/ChangeLog Sun Apr 25 14:17:52 2010
@@ -1,3 +1,9 @@
+2010-04-25 Joel Sherrill <joel.sherrilL at OARcorp.com>
+
+ * psxreaddir/psxreaddir.scn, psxreaddir/test.c: Do not test for
+ rewinddir(NULL) since we are now using newlib's implementation and it
+ does not check for NULL. This causes a fault on some targets.
+
2010-04-03 Joel Sherrill <joel.sherrill at oarcorp.com>
* psx07/init.c, psx09/init.c, psx12/init.c, psxhdrs/pthread11.c,
diff -u rtems/testsuites/psxtests/psxreaddir/psxreaddir.scn:1.4 rtems/testsuites/psxtests/psxreaddir/psxreaddir.scn:1.5
--- rtems/testsuites/psxtests/psxreaddir/psxreaddir.scn:1.4 Fri Nov 17 13:06:40 2000
+++ rtems/testsuites/psxtests/psxreaddir/psxreaddir.scn Sun Apr 25 14:17:52 2010
@@ -170,7 +170,6 @@
e 9 1340 268 0x010c
f 10 1608 268 0x010c
many 16 1876 268 0x010c
-Send rewinddir a NULL pointer
Seek directory
telldir() should report only sizeof(struct dirent) increments
in position. Sizeof(struct dirent): 268
diff -u rtems/testsuites/psxtests/psxreaddir/test.c:1.17 rtems/testsuites/psxtests/psxreaddir/test.c:1.18
--- rtems/testsuites/psxtests/psxreaddir/test.c:1.17 Tue Dec 8 11:52:53 2009
+++ rtems/testsuites/psxtests/psxreaddir/test.c Sun Apr 25 14:17:52 2010
@@ -409,9 +409,11 @@
rewinddir( directory );
printdir(directory);
-/* Don't know how to check this one automatically. */
+#if 0
+ /* Newlib's implementation does not check for NULL */
printf( "Send rewinddir a NULL pointer\n");
rewinddir( NULL );
+#endif
printf( "\nSeek directory\n" );
printf( "telldir() should report only sizeof(struct dirent) increments \n" );
*joel*:
2010-04-25 Joel Sherrill <joel.sherrill at oarcorp.com>
* psx07/init.c, psx07/task.c: Introduce enough of a delay so the Init()
thread can reliably reach the pthread_join() call.
M 1.259 testsuites/psxtests/ChangeLog
M 1.33 testsuites/psxtests/psx07/init.c
M 1.10 testsuites/psxtests/psx07/task.c
diff -u rtems/testsuites/psxtests/ChangeLog:1.258 rtems/testsuites/psxtests/ChangeLog:1.259
--- rtems/testsuites/psxtests/ChangeLog:1.258 Sun Apr 25 14:17:52 2010
+++ rtems/testsuites/psxtests/ChangeLog Sun Apr 25 14:40:12 2010
@@ -1,3 +1,8 @@
+2010-04-25 Joel Sherrill <joel.sherrill at oarcorp.com>
+
+ * psx07/init.c, psx07/task.c: Introduce enough of a delay so the Init()
+ thread can reliably reach the pthread_join() call.
+
2010-04-25 Joel Sherrill <joel.sherrilL at OARcorp.com>
* psxreaddir/psxreaddir.scn, psxreaddir/test.c: Do not test for
diff -u rtems/testsuites/psxtests/psx07/init.c:1.32 rtems/testsuites/psxtests/psx07/init.c:1.33
--- rtems/testsuites/psxtests/psx07/init.c:1.32 Sat Apr 3 01:07:23 2010
+++ rtems/testsuites/psxtests/psx07/init.c Sun Apr 25 14:40:12 2010
@@ -583,7 +583,7 @@
puts( "Init - pthread_attr_setinheritsched - EXPLICIT - SUCCESSFUL" );
status = pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED );
- rtems_test_assert( !status );
+ rtems_test_assert( !status );
schedparam.sched_ss_repl_period.tv_sec = 3;
schedparam.sched_ss_repl_period.tv_nsec = 3;
diff -u rtems/testsuites/psxtests/psx07/task.c:1.9 rtems/testsuites/psxtests/psx07/task.c:1.10
--- rtems/testsuites/psxtests/psx07/task.c:1.9 Sun Nov 29 21:33:23 2009
+++ rtems/testsuites/psxtests/psx07/task.c Sun Apr 25 14:40:12 2010
@@ -40,6 +40,11 @@
time_t now, start;
/*
+ * sleep long enough to let the init thread join with us.
+ */
+ usleep(10000);
+
+ /*
* Change our priority so we are running at a logically higher
* priority than our "ss_high_priority". This should result in
* our replenishment period not touching our priority.
*joel*:
2010-04-25 Joel Sherrill <joel.sherrill at oarcorp.com>
* libcsupport/src/readv.c: Check for < 0 on iov_len, not <= 0. A
readv() with all iov_len equal to 0 should have no effect.
M 1.2267 cpukit/ChangeLog
M 1.4 cpukit/libcsupport/src/readv.c
diff -u rtems/cpukit/ChangeLog:1.2266 rtems/cpukit/ChangeLog:1.2267
--- rtems/cpukit/ChangeLog:1.2266 Wed Apr 14 07:43:21 2010
+++ rtems/cpukit/ChangeLog Sun Apr 25 14:50:04 2010
@@ -1,3 +1,8 @@
+2010-04-25 Joel Sherrill <joel.sherrill at oarcorp.com>
+
+ * libcsupport/src/readv.c: Check for < 0 on iov_len, not <= 0. A
+ readv() with all iov_len equal to 0 should have no effect.
+
2010-04-14 Ralf Corsépius <ralf.corsepius at rtems.org>
* libnetworking/sys/mbuf.h: Use uintptr_t instead of u_long
diff -u rtems/cpukit/libcsupport/src/readv.c:1.3 rtems/cpukit/libcsupport/src/readv.c:1.4
--- rtems/cpukit/libcsupport/src/readv.c:1.3 Sun Nov 29 07:35:32 2009
+++ rtems/cpukit/libcsupport/src/readv.c Sun Apr 25 14:50:05 2010
@@ -74,7 +74,7 @@
if ( !iov[v].iov_base )
rtems_set_errno_and_return_minus_one( EINVAL );
- if ( iov[v].iov_len <= 0 )
+ if ( iov[v].iov_len < 0 )
rtems_set_errno_and_return_minus_one( EINVAL );
/* check for wrap */
*joel*:
2010-04-25 Joel Sherrill <joel.sherrill at oarcorp.com>
* posix/src/pthread.c: Make default pthread_attr_t match the
conditionals in the version in newlib. This way it will always be
right.
M 1.2268 cpukit/ChangeLog
M 1.80 cpukit/posix/src/pthread.c
diff -u rtems/cpukit/ChangeLog:1.2267 rtems/cpukit/ChangeLog:1.2268
--- rtems/cpukit/ChangeLog:1.2267 Sun Apr 25 14:50:04 2010
+++ rtems/cpukit/ChangeLog Sun Apr 25 14:51:11 2010
@@ -1,5 +1,11 @@
2010-04-25 Joel Sherrill <joel.sherrill at oarcorp.com>
+ * posix/src/pthread.c: Make default pthread_attr_t match the
+ conditionals in the version in newlib. This way it will always be
+ right.
+
+2010-04-25 Joel Sherrill <joel.sherrill at oarcorp.com>
+
* libcsupport/src/readv.c: Check for < 0 on iov_len, not <= 0. A
readv() with all iov_len equal to 0 should have no effect.
diff -u rtems/cpukit/posix/src/pthread.c:1.79 rtems/cpukit/posix/src/pthread.c:1.80
--- rtems/cpukit/posix/src/pthread.c:1.79 Sat Apr 3 00:55:59 2010
+++ rtems/cpukit/posix/src/pthread.c Sun Apr 25 14:51:12 2010
@@ -48,12 +48,17 @@
SCHED_FIFO, /* schedpolicy */
{ /* schedparam */
2, /* sched_priority */
- 0, /* sched_ss_low_priority */
- { 0L, 0 }, /* sched_ss_repl_period */
- { 0L, 0 } /* sched_ss_init_budget */
+ #if defined(_POSIX_SPORADIC_SERVER) || \
+ defined(_POSIX_THREAD_SPORADIC_SERVER)
+ 0, /* sched_ss_low_priority */
+ { 0L, 0 }, /* sched_ss_repl_period */
+ { 0L, 0 } /* sched_ss_init_budget */
+ #endif
},
+ #if defined(_POSIX_THREAD_CPUTIME)
+ 1, /* cputime_clock_allowed */
+ #endif
PTHREAD_CREATE_JOINABLE, /* detachstate */
- 1 /* cputime_clock_allowed */
};
/*
*joel*:
2010-04-25 Joel Sherrill <joel.sherrill at oarcorp.com>
* psxrdwrv/test.c: Use SIZE_MAX not SSIZE_MAX.
M 1.260 testsuites/psxtests/ChangeLog
M 1.4 testsuites/psxtests/psxrdwrv/test.c
diff -u rtems/testsuites/psxtests/ChangeLog:1.259 rtems/testsuites/psxtests/ChangeLog:1.260
--- rtems/testsuites/psxtests/ChangeLog:1.259 Sun Apr 25 14:40:12 2010
+++ rtems/testsuites/psxtests/ChangeLog Sun Apr 25 14:53:38 2010
@@ -1,5 +1,9 @@
2010-04-25 Joel Sherrill <joel.sherrill at oarcorp.com>
+ * psxrdwrv/test.c: Use SIZE_MAX not SSIZE_MAX.
+
+2010-04-25 Joel Sherrill <joel.sherrill at oarcorp.com>
+
* psx07/init.c, psx07/task.c: Introduce enough of a delay so the Init()
thread can reliably reach the pthread_join() call.
diff -u rtems/testsuites/psxtests/psxrdwrv/test.c:1.3 rtems/testsuites/psxtests/psxrdwrv/test.c:1.4
--- rtems/testsuites/psxtests/psxrdwrv/test.c:1.3 Mon Dec 28 10:43:10 2009
+++ rtems/testsuites/psxtests/psxrdwrv/test.c Sun Apr 25 14:53:38 2010
@@ -316,11 +316,11 @@
/* writev -- iov_len total overflows */
vec[0].iov_base = vec;
- vec[0].iov_len = SSIZE_MAX;
+ vec[0].iov_len = SIZE_MAX;
vec[1].iov_base = vec;
- vec[1].iov_len = SSIZE_MAX;
+ vec[1].iov_len = SIZE_MAX;
vec[2].iov_base = vec;
- vec[2].iov_len = SSIZE_MAX;
+ vec[2].iov_len = SIZE_MAX;
puts("writev iov_len total overflows -- EINVAL");
rc = writev(fd, vec, 3);
if ( (rc != -1) || (errno != EINVAL) ) {
@@ -331,9 +331,9 @@
/* readv -- iov_len total overflows */
vec[0].iov_base = vec;
- vec[0].iov_len = SSIZE_MAX;
+ vec[0].iov_len = SIZE_MAX;
vec[1].iov_base = vec;
- vec[1].iov_len = SSIZE_MAX;
+ vec[1].iov_len = SIZE_MAX;
puts("readv iov_len total overflows -- EINVAL");
rc = readv(fd, vec, 2);
if ( (rc != -1) || (errno != EINVAL) ) {
--
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/20100425/9b612a3b/attachment-0001.html>
More information about the vc
mailing list