forked from Imagelibrary/rtems
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:
@@ -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
|
||||
|
||||
@@ -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" );
|
||||
|
||||
Reference in New Issue
Block a user