Test stdlib/test-bz22786 exits now with unsupported if malloc fails.
authorStefan Liebler <stli@linux.ibm.com>
Thu, 30 Aug 2018 06:44:32 +0000 (08:44 +0200)
committerStefan Liebler <stli@linux.ibm.com>
Thu, 30 Aug 2018 06:44:32 +0000 (08:44 +0200)
commit3bad2358d67d371497079bba4f8eca9c0096f4e2
tree5444ba60c308776f6442e1a5fc5eff2682c8c5c9
parent09c12efcafd1e08c290e63e2095c772ce35117be
Test stdlib/test-bz22786 exits now with unsupported if malloc fails.

The test tries to allocate more than 2^31 bytes which will always fail on s390
as it has maximum 2^31bit of memory.
Before commit 6c3a8a9d868a8deddf0d6dcc785b6d120de90523, this test returned
unsupported if malloc fails.  This patch re enables this behaviour.

Furthermore support_delete_temp_files() failed to remove the temp directory
in this case as it is not empty due to the created symlink.
Thus the creation of the symlink is moved behind malloc.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
ChangeLog:

* stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
if malloc fails.
ChangeLog
stdlib/test-bz22786.c