~ubuntu-branches/ubuntu/natty/curl/natty

« back to all changes in this revision

Viewing changes to tests/libtest/lib500.c

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2010-06-20 13:56:28 UTC
  • mfrom: (3.4.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100620135628-e30tp9jldq6hq985
Tags: 7.21.0-1ubuntu1
* Merge from debian unstable.  Remaining changes: LP: #596334
  - Keep build deps in main:
    - Drop build dependencies: stunnel, libssh2-1-dev
    - Add build-dependency on openssh-server
    - Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *                            | (__| |_| |  _ <| |___
6
6
 *                             \___|\___/|_| \_\_____|
7
7
 *
8
 
 * $Id: lib500.c,v 1.9 2008-09-20 04:26:56 yangtse Exp $
9
8
 */
10
9
 
11
10
#include "test.h"
29
28
    return TEST_ERR_MAJOR_BAD;
30
29
  }
31
30
 
32
 
  curl_easy_setopt(curl, CURLOPT_URL, URL);
33
 
  curl_easy_setopt(curl, CURLOPT_HEADER, 1L);
 
31
  test_setopt(curl, CURLOPT_URL, URL);
 
32
  test_setopt(curl, CURLOPT_HEADER, 1L);
34
33
 
35
34
  res = curl_easy_perform(curl);
36
35
 
44
43
    }
45
44
  }
46
45
 
 
46
test_cleanup:
 
47
 
47
48
  curl_easy_cleanup(curl);
48
49
  curl_global_cleanup();
49
50