diff options
Diffstat (limited to 'testsuites/psxtests/psxchroot01')
-rw-r--r-- | testsuites/psxtests/psxchroot01/test.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxchroot01/test.c b/testsuites/psxtests/psxchroot01/test.c index 27656ef131..e7c8bbe1cf 100644 --- a/testsuites/psxtests/psxchroot01/test.c +++ b/testsuites/psxtests/psxchroot01/test.c @@ -73,6 +73,8 @@ int main( int status; void *opaque; + struct stat st; + /* * This test is the C equivalent of this sequence. #mkdir /one @@ -113,6 +115,10 @@ int main( rtems_test_assert( status == -1 ); rtems_test_assert( errno == ENOTDIR ); + /* Perform deferred global location releases */ + status = stat( ".", &st ); + rtems_test_assert( status == 0 ); + puts( "allocate most of memory - attempt to fail chroot - expect ENOMEM" ); opaque = rtems_heap_greedy_allocate( global_location_size, 1 ); |