- # If it is a broken symbolic link, just skip the file, as it
- # is probably just a build problem; certainly not a file that
- # we would want to check the pod of. Otherwise fail it here
- # and no reason to process it further.
- ok(0, "Can't open '$filename': $!") if ! -l $filename;
+ # If a transitory file was found earlier, the open could fail
+ # legitimately and we just skip the file; also skip it if it is a
+ # broken symbolic link, as it is probably just a build problem;
+ # certainly not a file that we would want to check the pod of.
+ # Otherwise fail it here and no reason to process it further.
+ # (But the test count will be off too)
+ ok(0, "Can't open '$filename': $!")
+ if -e $filename && ! -l $filename;