diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-07-15 12:15:56 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-07-15 12:15:56 +0000 |
commit | d0ef58ad74ceed01e1909b8950536eb6b2e90bd7 (patch) | |
tree | bf0f7e7934d1970d3111031424cb6043a422e702 /testsuites/psxtests/psxstat/test.c | |
parent | 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-d0ef58ad74ceed01e1909b8950536eb6b2e90bd7.tar.bz2 |
2010-07-16 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* psxstat/test.c: Avoid NULL pointer access.
Diffstat (limited to '')
-rw-r--r-- | testsuites/psxtests/psxstat/test.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 ); |