[rtems commit] psxchroot01: Force release of global locations
Sebastian Huber
sebh at rtems.org
Mon Jan 22 14:24:41 UTC 2018
Module: rtems
Branch: master
Commit: 990235d9601be05e2b35e9bd04d47fb20cde76c5
Changeset: http://git.rtems.org/rtems/commit/?id=990235d9601be05e2b35e9bd04d47fb20cde76c5
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Jan 22 14:13:11 2018 +0100
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 27656ef..e7c8bbe 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 );
More information about the vc
mailing list