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