diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-04-25 19:17:52 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-04-25 19:17:52 +0000 |
commit | e8b4506836b548e5ad6435b13637b620d96cc5c7 (patch) | |
tree | 6cd1916fa23a54cfb19fb4722219026385e4c0bc /testsuites/psxtests | |
parent | 2010-04-25 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff) | |
download | rtems-e8b4506836b548e5ad6435b13637b620d96cc5c7.tar.bz2 |
2010-04-25 Joel Sherrill <joel.sherrilL@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.
Diffstat (limited to 'testsuites/psxtests')
-rw-r--r-- | testsuites/psxtests/ChangeLog | 6 | ||||
-rw-r--r-- | testsuites/psxtests/psxreaddir/psxreaddir.scn | 1 | ||||
-rw-r--r-- | testsuites/psxtests/psxreaddir/test.c | 4 |
3 files changed, 9 insertions, 2 deletions
diff --git a/testsuites/psxtests/ChangeLog b/testsuites/psxtests/ChangeLog index ec0b1a8c22..d706173fa5 100644 --- a/testsuites/psxtests/ChangeLog +++ b/testsuites/psxtests/ChangeLog @@ -1,3 +1,9 @@ +2010-04-25 Joel Sherrill <joel.sherrilL@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@oarcorp.com> * psx07/init.c, psx09/init.c, psx12/init.c, psxhdrs/pthread11.c, diff --git a/testsuites/psxtests/psxreaddir/psxreaddir.scn b/testsuites/psxtests/psxreaddir/psxreaddir.scn index 5259773924..114c06421c 100644 --- a/testsuites/psxtests/psxreaddir/psxreaddir.scn +++ b/testsuites/psxtests/psxreaddir/psxreaddir.scn @@ -170,7 +170,6 @@ d 8 1072 268 0x010c 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 --git a/testsuites/psxtests/psxreaddir/test.c b/testsuites/psxtests/psxreaddir/test.c index f139003ba6..b224c2f9d5 100644 --- a/testsuites/psxtests/psxreaddir/test.c +++ b/testsuites/psxtests/psxreaddir/test.c @@ -409,9 +409,11 @@ int main( 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" ); |