From e8b4506836b548e5ad6435b13637b620d96cc5c7 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sun, 25 Apr 2010 19:17:52 +0000 Subject: 2010-04-25 Joel Sherrill * 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. --- testsuites/psxtests/psxreaddir/test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'testsuites/psxtests/psxreaddir/test.c') 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" ); -- cgit v1.2.3