From 990235d9601be05e2b35e9bd04d47fb20cde76c5 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 22 Jan 2018 14:13:11 +0100 Subject: psxchroot01: Force release of global locations Free deferred locations before the greedy memory allocation. This test fails on powerpc/qoriq_e6500_64 otherwise. --- testsuites/psxtests/psxchroot01/test.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 ); -- cgit v1.2.3