From 591f5d18cf5cb56a14439c3a7af77a418a462984 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Wed, 1 Nov 2017 14:34:15 +0100 Subject: tests: Fixed torture tests on tests 556 and 650 Test cleanup after OOM wasn't being consistently performed. --- tests/libtest/lib556.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/libtest/lib556.c') diff --git a/tests/libtest/lib556.c b/tests/libtest/lib556.c index f06c5299c..acb0f63d1 100644 --- a/tests/libtest/lib556.c +++ b/tests/libtest/lib556.c @@ -95,8 +95,8 @@ int test(char *URL) } while((res == CURLE_OK && iolen != 0) || (res == CURLE_AGAIN)); } - if(res != CURLE_OK || iolen != 0) - return TEST_ERR_FAILURE; + if(iolen != 0) + res = TEST_ERR_FAILURE; } test_cleanup: -- cgit v1.2.3