diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-01-23 15:35:41 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-01-23 15:35:41 +0000 |
commit | 8571262799655e8e3ac63d90321ef0e6a12820be (patch) | |
tree | 6b96417ab9f98eeedc5ab490827d4ec53ab138bf /testsuites/psxtests/psxenosys/init.c | |
parent | 2008-01-23 Jennifer Averett <jennifer.averett@OARcorp.com> (diff) | |
download | rtems-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/init.c')
-rw-r--r-- | testsuites/psxtests/psxenosys/init.c | 5 |
1 files changed, 5 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 ); |