* psxstat/test.c: Avoid NULL pointer access.
This commit is contained in:
Sebastian Huber
2010-07-15 12:15:56 +00:00
parent f4dea06bab
commit d0ef58ad74
2 changed files with 7 additions and 3 deletions

View File

@@ -1,3 +1,7 @@
2010-07-16 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* psxstat/test.c: Avoid NULL pointer access.
2010-07-12 Bharath Suri <bharath.s.jois@gmail.com> 2010-07-12 Bharath Suri <bharath.s.jois@gmail.com>
PR 1613/testing PR 1613/testing

View File

@@ -780,10 +780,10 @@ void test_statvfs( void )
int status = 0; int status = 0;
struct statvfs stat; struct statvfs stat;
puts( "statvfs, with invalid path - expect EFAULT" ); puts( "statvfs, with invalid path - expect ENOTSUP" );
status = statvfs( NULL , &stat ); status = statvfs( "" , &stat );
rtems_test_assert( status == -1 ); rtems_test_assert( status == -1 );
rtems_test_assert( errno == EFAULT ); rtems_test_assert( errno == ENOTSUP );
puts( "create /tmp -- OK" ); puts( "create /tmp -- OK" );
status = mkdir( "/tmp", 0777 ); status = mkdir( "/tmp", 0777 );