From 320fe72c1fabc817c7b6a781f7862ac6bed4dcb6 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 16 Jul 2010 09:23:42 +0000 Subject: [PATCH] 2010-07-16 Sebastian Huber * psxfile01/test.c: Avoid NULL pointer access. --- testsuites/psxtests/ChangeLog | 4 ++++ testsuites/psxtests/psxfile01/test.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/testsuites/psxtests/ChangeLog b/testsuites/psxtests/ChangeLog index 8994a45093..b181221453 100644 --- a/testsuites/psxtests/ChangeLog +++ b/testsuites/psxtests/ChangeLog @@ -1,3 +1,7 @@ +2010-07-16 Sebastian Huber + + * psxfile01/test.c: Avoid NULL pointer access. + 2010-07-15 Bharath Suri PR 1617/testing 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" );