* psxfile01/test.c: Avoid NULL pointer access.
This commit is contained in:
Sebastian Huber
2010-07-16 09:23:42 +00:00
parent 89b85e5100
commit 320fe72c1f
2 changed files with 7 additions and 3 deletions

View File

@@ -1,3 +1,7 @@
2010-07-16 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* psxfile01/test.c: Avoid NULL pointer access.
2010-07-15 Bharath Suri <bharath.s.jois@gmail.com>
PR 1617/testing

View File

@@ -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" );