psxtests: Relax shared memory tests

There is currently no proper mmap() implementation.

Update #2859.
This commit is contained in:
Sebastian Huber
2017-01-25 11:46:51 +01:00
parent 090bdc7e94
commit 7cb7454f93
2 changed files with 22 additions and 16 deletions
+11 -8
View File
@@ -65,16 +65,19 @@ void *POSIX_Init(
fd,
0
);
rtems_test_assert( p != MAP_FAILED );
puts( "Init: write to mapped region" );
p->len = MAX_LEN;
if ( p != MAP_FAILED ) {
puts( "Init: write to mapped region" );
p->len = MAX_LEN;
puts( "Init: munmap" );
err = munmap( p, sizeof( struct region ) );
if ( err == -1 ) {
printf ( "Error: %s\n", strerror(errno) );
rtems_test_assert( err != -1 );
puts( "Init: munmap" );
err = munmap( p, sizeof( struct region ) );
if ( err == -1 ) {
printf ( "Error: %s\n", strerror(errno) );
rtems_test_assert( err != -1 );
}
} else {
puts( "Init: FIXME: mmap() not supported" );
}
puts( "Init: close" );
+11 -8
View File
@@ -65,16 +65,19 @@ void *POSIX_Init(
fd,
0
);
rtems_test_assert( p != MAP_FAILED );
puts( "Init: write to mapped region" );
p->len = MAX_LEN;
if( p != MAP_FAILED ) {
puts( "Init: write to mapped region" );
p->len = MAX_LEN;
puts( "Init: munmap" );
err = munmap( p, sizeof( struct region ) );
if ( err == -1 ) {
printf ( "Error: %s\n", strerror(errno) );
rtems_test_assert( err != -1 );
puts( "Init: munmap" );
err = munmap( p, sizeof( struct region ) );
if ( err == -1 ) {
printf ( "Error: %s\n", strerror(errno) );
rtems_test_assert( err != -1 );
}
} else {
puts( "Init: FIXME: mmap() not supported" );
}
puts( "Init: close" );