diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2017-11-01 14:34:15 +0100 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2017-11-01 14:37:01 +0100 |
commit | 591f5d18cf5cb56a14439c3a7af77a418a462984 (patch) | |
tree | ba8127541a311329984cd349d8cdd9ed71a1f537 /tests/libtest/lib556.c | |
parent | 25cb41d35daad7544518dfd43c522355b13d9d79 (diff) | |
download | curl-591f5d18cf5cb56a14439c3a7af77a418a462984.tar.gz |
tests: Fixed torture tests on tests 556 and 650
Test cleanup after OOM wasn't being consistently performed.
Diffstat (limited to 'tests/libtest/lib556.c')
-rw-r--r-- | tests/libtest/lib556.c | 4 |
1 files changed, 2 insertions, 2 deletions
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: |