summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxenosys
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-01-23 15:35:41 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-01-23 15:35:41 +0000
commit8571262799655e8e3ac63d90321ef0e6a12820be (patch)
tree6b96417ab9f98eeedc5ab490827d4ec53ab138bf /testsuites/psxtests/psxenosys
parent2008-01-23 Jennifer Averett <jennifer.averett@OARcorp.com> (diff)
downloadrtems-8571262799655e8e3ac63d90321ef0e6a12820be.tar.bz2
2008-01-23 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxenosys/init.c, psxenosys/psxenosys.scn: Add test for stub implementation mprotect().
Diffstat (limited to 'testsuites/psxtests/psxenosys')
-rw-r--r--testsuites/psxtests/psxenosys/init.c5
-rw-r--r--testsuites/psxtests/psxenosys/psxenosys.scn1
2 files changed, 6 insertions, 0 deletions
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 <aio.h>
#include <sys/types.h>
@@ -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 ***