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

« back to all changes in this revision

Viewing changes to tests/libtest/lib566.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: lib566.c,v 1.2 2009-10-31 18:51:51 bagder Exp $
9
8
 */
10
9
 
11
10
#include "test.h"
30
29
    return TEST_ERR_MAJOR_BAD;
31
30
  }
32
31
 
33
 
  curl_easy_setopt(curl, CURLOPT_URL, URL);
34
 
  curl_easy_setopt(curl, CURLOPT_HEADER, 1L);
 
32
  test_setopt(curl, CURLOPT_URL, URL);
 
33
  test_setopt(curl, CURLOPT_HEADER, 1L);
35
34
 
36
35
  res = curl_easy_perform(curl);
37
36
 
46
45
    }
47
46
  }
48
47
 
 
48
test_cleanup:
 
49
 
49
50
  curl_easy_cleanup(curl);
50
51
  curl_global_cleanup();
51
52