Stefan Liebler 3bad2358d6 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.
2018-08-30 08:44:32 +02:00
..
2018-02-26 18:17:47 +00:00
2016-10-25 17:05:47 -02:00
2018-03-04 17:27:58 +01:00
2018-08-13 14:05:01 +02:00
2018-02-04 14:02:36 +01:00
2014-12-29 23:14:38 -05:00
2016-10-25 17:05:47 -02:00
2018-07-24 07:55:47 -07:00