~ubuntu-branches/ubuntu/raring/curl/raring-updates

« back to all changes in this revision

Viewing changes to tests/libtest/lib504.c

  • Committer: Package Import Robot
  • Author(s): Alessandro Ghedini
  • Date: 2011-11-13 21:07:32 UTC
  • mto: (3.6.1 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 55.
  • Revision ID: package-import@ubuntu.com-20111113210732-bk5n25x2tu7aplur
Tags: upstream-7.22.0
ImportĀ upstreamĀ versionĀ 7.22.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 ***************************************************************************/
22
22
#include "test.h"
23
23
 
24
 
#include <sys/types.h>
25
 
 
26
24
#include "testutil.h"
27
25
#include "warnless.h"
28
26
#include "memdebug.h"
106
104
 
107
105
    fprintf(stderr, "curl_multi_perform()\n");
108
106
 
109
 
    ret = CURLM_CALL_MULTI_PERFORM;
110
 
 
111
 
    while (ret == CURLM_CALL_MULTI_PERFORM) {
112
 
      ret = curl_multi_perform(m, &running);
113
 
      if (tutil_tvdiff(tutil_tvnow(), mp_start) >
114
 
          MULTI_PERFORM_HANG_TIMEOUT) {
115
 
        mp_timedout = TRUE;
116
 
        break;
117
 
      }
 
107
    ret = curl_multi_perform(m, &running);
 
108
    if (tutil_tvdiff(tutil_tvnow(), mp_start) >
 
109
        MULTI_PERFORM_HANG_TIMEOUT) {
 
110
      mp_timedout = TRUE;
 
111
      break;
118
112
    }
119
113
    if (mp_timedout)
120
114
      break;