Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the IO-CaptureOutput CPAN distribution.

Report information
The Basics
Id: 45023
Status: resolved
Priority: 0/
Queue: IO-CaptureOutput

People
Owner: Nobody in particular
Requestors: RURBAN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: skip on windows "Can't make temp files read-only to test error handling"
A windows user with administrative rights has no reliable -w test. So skip the -w check in "Can't make temp files read-only to test error handling". -- Reini Urban
Subject: IO-CaptureOutput-1.1101.patch
diffbk IO-CaptureOutput-1.1101 diff -u IO-CaptureOutput-1.1101/t/capture_file.t~ IO-CaptureOutput-1.1101/t/capture_file.t --- IO-CaptureOutput-1.1101/t/capture_file.t~ 2009-03-04 05:47:29.000000000 +0100 +++ IO-CaptureOutput-1.1101/t/capture_file.t 2009-04-14 09:15:05.562500000 +0200 @@ -86,7 +86,7 @@ SKIP: { skip "Can't make temp files read-only to test error handling", 2 - if ( -w $saved_out || -w $saved_err ); + if ( -w $saved_out || -w $saved_err || $^O =~ /cygwin|MSWin32/); eval { capture sub {print __FILE__; print STDERR __PACKAGE__}, \$out, \$err, $saved_out
Subject: Re: [rt.cpan.org #45023] skip on windows "Can't make temp files read-only to test error handling"
Date: Tue, 14 Apr 2009 12:56:48 -0400
To: bug-IO-CaptureOutput [...] rt.cpan.org
From: David Golden <dagolden [...] cpan.org>
On Tue, Apr 14, 2009 at 3:19 AM, Reini Urban via RT <bug-IO-CaptureOutput@rt.cpan.org> wrote: Show quoted text
> A windows user with administrative rights has no reliable -w test. > So skip the -w check in "Can't make temp files read-only to test error > handling".
I think that's what the skip is already doing, right? After a chmod 044, if files are still considered writable, then it skips. Was the test failing for you? Could you give me an example? (I think I've tested this on windows with admin rights before. In fact, I think that's why I wrote the skip in the first place.) -- David