forked from Imagelibrary/rtems
2010-07-16 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* psxstat/test.c: Avoid NULL pointer access.
This commit is contained in:
@@ -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>
|
||||
|
||||
PR 1613/testing
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user