and skip("somehow, the files exist", 4);
ok(!link($tmpfile1, $tmpfile2),
"Cannot link to unknown file");
- warn $!;
is(0+$!, &Errno::ENOENT, "check errno is ENOENT");
open my $fh, ">", $tmpfile1
or skip("Cannot create test link src", 2);
close $fh;
ok(!link($tmpfile1, $tmpfile2),
"Cannot link to existing file");
- warn $!;
is(0+$!, &Errno::EEXIST, "check for EEXIST");
}