From 4a105192af84bd728a95e892ec59347a7f99a5c0 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 3 Jul 2009 20:08:22 +0000 Subject: 2009-07-03 Joel Sherrill * psxenosys/init.c, psxenosys/psxenosys.scn: Add test of vfork stub. --- testsuites/psxtests/psxenosys/init.c | 7 +++++++ testsuites/psxtests/psxenosys/psxenosys.scn | 1 + 2 files changed, 8 insertions(+) (limited to 'testsuites/psxtests/psxenosys') diff --git a/testsuites/psxtests/psxenosys/init.c b/testsuites/psxtests/psxenosys/init.c index 6918e5316d..c20ac146e2 100644 --- a/testsuites/psxtests/psxenosys/init.c +++ b/testsuites/psxtests/psxenosys/init.c @@ -177,6 +177,13 @@ void *POSIX_Init( sc = mprotect( NULL, 0, 0 ); posix_service_failed( sc, "mprotect" ); + puts( "vfork -- stub implementation - OK" ); + sc = vfork(); + if ( sc != -1 ) { + puts( "vfork did not return -1" ); + rtems_test_exit( 0 ); + } + puts( "*** END OF POSIX TEST ENOSYS ***" ); rtems_test_exit( 0 ); diff --git a/testsuites/psxtests/psxenosys/psxenosys.scn b/testsuites/psxtests/psxenosys/psxenosys.scn index 4225c3e202..76aa946761 100644 --- a/testsuites/psxtests/psxenosys/psxenosys.scn +++ b/testsuites/psxtests/psxenosys/psxenosys.scn @@ -30,4 +30,5 @@ sched_getscheduler -- ENOSYS wait -- ENOSYS waitpid -- ENOSYS mprotect -- stub implementation - OK +vfork -- stub implementation - OK *** END OF POSIX TEST ENOSYS *** -- cgit v1.2.3