diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-01-22 14:13:11 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-01-22 15:24:13 +0100 |
commit | 990235d9601be05e2b35e9bd04d47fb20cde76c5 (patch) | |
tree | fc3414b48bc51a04552fb8be7e28068476ca7c17 /testsuites/psxtests/psxchroot01/test.c | |
parent | bsp/gen5200: Use public include path (diff) | |
download | rtems-990235d9601be05e2b35e9bd04d47fb20cde76c5.tar.bz2 |
psxchroot01: Force release of global locations
Free deferred locations before the greedy memory allocation. This test
fails on powerpc/qoriq_e6500_64 otherwise.
Diffstat (limited to '')
-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 ); |