diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-07-16 09:23:42 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-07-16 09:23:42 +0000 |
commit | 320fe72c1fabc817c7b6a781f7862ac6bed4dcb6 (patch) | |
tree | 3553a0f8e0ce236d099b44f445fd8fdc0189bf35 /testsuites/psxtests/psxfile01/test.c | |
parent | 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-320fe72c1fabc817c7b6a781f7862ac6bed4dcb6.tar.bz2 |
2010-07-16 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* psxfile01/test.c: Avoid NULL pointer access.
Diffstat (limited to 'testsuites/psxtests/psxfile01/test.c')
-rw-r--r-- | testsuites/psxtests/psxfile01/test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuites/psxtests/psxfile01/test.c b/testsuites/psxtests/psxfile01/test.c index e376b8fe05..8d6183560b 100644 --- a/testsuites/psxtests/psxfile01/test.c +++ b/testsuites/psxtests/psxfile01/test.c @@ -339,10 +339,10 @@ int main( rtems_test_assert( fd == -1 ); rtems_test_assert( errno == EINVAL ); - puts( "Exercise the reentrant version _link_r -- Expect EFAULT" ); - status = _link_r( NULL, NULL, NULL ); + puts( "Exercise the reentrant version _link_r -- Expect EEXIST" ); + status = _link_r( NULL, "", "" ); rtems_test_assert( status == -1 ); - rtems_test_assert( errno == EFAULT ); + rtems_test_assert( errno == EEXIST ); puts( "Unlink /tmp/bha using the reentrant version -- OK" ); status = _unlink_r( NULL, "/tmp/bha" ); |