diff --git a/testsuites/psxtests/ChangeLog b/testsuites/psxtests/ChangeLog index bec7c04105..59b802e006 100644 --- a/testsuites/psxtests/ChangeLog +++ b/testsuites/psxtests/ChangeLog @@ -1,3 +1,7 @@ +2010-07-16 Sebastian Huber + + * psxstat/test.c: Avoid NULL pointer access. + 2010-07-12 Bharath Suri PR 1613/testing diff --git a/testsuites/psxtests/psxstat/test.c b/testsuites/psxtests/psxstat/test.c index 90f1431dfc..58633b9c2c 100644 --- a/testsuites/psxtests/psxstat/test.c +++ b/testsuites/psxtests/psxstat/test.c @@ -780,10 +780,10 @@ void test_statvfs( void ) int status = 0; struct statvfs stat; - puts( "statvfs, with invalid path - expect EFAULT" ); - status = statvfs( NULL , &stat ); + puts( "statvfs, with invalid path - expect ENOTSUP" ); + status = statvfs( "" , &stat ); rtems_test_assert( status == -1 ); - rtems_test_assert( errno == EFAULT ); + rtems_test_assert( errno == ENOTSUP ); puts( "create /tmp -- OK" ); status = mkdir( "/tmp", 0777 );