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>
|
2010-07-12 Bharath Suri <bharath.s.jois@gmail.com>
|
||||||
|
|
||||||
PR 1613/testing
|
PR 1613/testing
|
||||||
|
|||||||
@@ -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 );
|
||||||
|
|||||||
Reference in New Issue
Block a user