ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/t/81_hosts.t
(Generate patch)

Comparing AnyEvent/t/81_hosts.t (file contents):
Revision 1.1 by root, Wed Aug 21 08:40:28 2013 UTC vs.
Revision 1.2 by root, Sun Aug 25 17:42:29 2013 UTC

1use File::Temp qw(tempfile); 1use File::Temp qw(tempfile);
2use Test::More tests => 2; 2use Test::More tests => 2;
3 3
4my $test_host = 'test.invalid.tld'; 4my $test_host = 'test.invalid.tld.';
5my $test_addr = '127.9.9.9'; 5my $test_addr = '127.9.9.9';
6 6
7my ($hosts_fh, $hosts_file) = tempfile UNLINK => 1; 7my ($hosts_fh, $hosts_file) = tempfile UNLINK => 1;
8print $hosts_fh "$test_addr $test_host\n"; 8print $hosts_fh "$test_addr $test_host\n";
9close $hosts_fh; 9close $hosts_fh;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines