diff options
author | HyungKyu Song <hk76.song@samsung.com> | 2013-02-16 00:50:34 +0900 |
---|---|---|
committer | HyungKyu Song <hk76.song@samsung.com> | 2013-02-16 00:50:34 +0900 |
commit | 8ff7b1b92fdd50ce06331c821209f632f5a96bb7 (patch) | |
tree | 6b318e64217938d6cd8ca074214778d2db99de84 /t/new/04abort.t | |
parent | 3555375b5b187f5eb25bc6673e2479d54f20ada3 (diff) | |
download | perl-WWW-Curl-tizen_2.0.tar.gz perl-WWW-Curl-tizen_2.0.tar.bz2 perl-WWW-Curl-tizen_2.0.zip |
Diffstat (limited to 't/new/04abort.t')
-rw-r--r-- | t/new/04abort.t | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/t/new/04abort.t b/t/new/04abort.t new file mode 100644 index 0000000..77b21c1 --- /dev/null +++ b/t/new/04abort.t @@ -0,0 +1,17 @@ +use strict; +use Test::More tests => 1; +use WWW::Curl::Easy; + +sub body_callback { + my ( $chunk, $handle ) = @_; + return -1; +} + +SKIP: { + skip 'You need to set CURL_TEST_URL', 1 unless $ENV{CURL_TEST_URL}; + my $curl = new WWW::Curl::Easy; + $curl->setopt( CURLOPT_URL, $ENV{CURL_TEST_URL} ); + $curl->setopt( CURLOPT_WRITEFUNCTION, \&body_callback ); + my $code = $curl->perform; + ok($code); +} |