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.
This commit is contained in:
Joel Sherrill
2010-04-25 19:17:52 +00:00
parent fb2789688a
commit e8b4506836
3 changed files with 9 additions and 2 deletions

View File

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

View File

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