From 8571262799655e8e3ac63d90321ef0e6a12820be Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 23 Jan 2008 15:35:41 +0000 Subject: 2008-01-23 Joel Sherrill * psxenosys/init.c, psxenosys/psxenosys.scn: Add test for stub implementation mprotect(). --- testsuites/psxtests/psxenosys/init.c | 5 +++++ testsuites/psxtests/psxenosys/psxenosys.scn | 1 + 2 files changed, 6 insertions(+) (limited to 'testsuites/psxtests/psxenosys') diff --git a/testsuites/psxtests/psxenosys/init.c b/testsuites/psxtests/psxenosys/init.c index 6a0ed24c22..8d95a2be1f 100644 --- a/testsuites/psxtests/psxenosys/init.c +++ b/testsuites/psxtests/psxenosys/init.c @@ -11,6 +11,7 @@ #define CONFIGURE_INIT #include "system.h" +#include "tmacros.h" #include #include @@ -170,6 +171,10 @@ void *POSIX_Init( sc = waitpid( 0, NULL, 0 ); check_enosys( sc ); + puts( "mprotect -- stub implementation - OK" ); + sc = mprotect( NULL, 0, 0 ); + posix_service_failed( sc, "mprotect" ); + 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 1c9b8b17eb..4225c3e202 100644 --- a/testsuites/psxtests/psxenosys/psxenosys.scn +++ b/testsuites/psxtests/psxenosys/psxenosys.scn @@ -29,4 +29,5 @@ sched_setscheduler -- ENOSYS sched_getscheduler -- ENOSYS wait -- ENOSYS waitpid -- ENOSYS +mprotect -- stub implementation - OK *** END OF POSIX TEST ENOSYS *** -- cgit v1.2.3