Skip to content

Commit

Permalink
Explicitly fail when COOKIES feature is missing (issue #7)
Browse files Browse the repository at this point in the history
  • Loading branch information
creaktive committed Jan 17, 2014
1 parent 4d578d4 commit 10f6386
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions t/03-cookies.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
use strict;
use warnings;
use lib 'inc';
use Test::More;
use Net::Curl::Easy qw(:constants);

plan tests => 1;

my $easy = Net::Curl::Easy->new();
eval { $easy->setopt(CURLOPT_COOKIEFILE, '') };
ok((not $@), 'checking if libcurl was compiled with COOKIES feature');

0 comments on commit 10f6386

Please sign in to comment.