New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not OK: perl v5.7.2 +DEVEL14368 on cygwin-multi-64int 1.3.6(0.4732) (UNINSTALLED) #4901
Comments
From @ysthThis is a build failure report for perl from sthoenna@efn.org, Haven't figured this one out yet, but here are the pieces: t/cmd/mod...........................ok and hangs there. The culprit is the new test there: -cut- First of all, this is wrong. The end block is invoked before the But for cygwin here, the "1 while unlink 'dbmtest';" seems to loop forever. Apologies if I'm missing the obvious, I've never done a cygwin build before. Anyway, the following bypasses the problem. Perhaps someone could verify Inline Patch--- t/run/fresh_perl.t.orig Fri Jan 18 20:02:26 2002
+++ t/run/fresh_perl.t Tue Jan 22 16:46:00 2002
@@ -780,15 +780,12 @@
sub DESTROY {
my $self = shift;
dbmclose(%{$self->{'LT'}});
+ print "ok\n";
+ 1 while unlink 'dbmtest';
+ 1 while unlink <dbmtest.*>;
return 1;
}
package main;
$test = Foo->new(); # must be package var
-END
-{
- 1 while unlink 'dbmtest';
- 1 while unlink <dbmtest.*>;
- print "ok\n";
-}
EXPECT
ok
Flags: Site configuration information for perl v5.7.2: Configured by sthoenna at Tue Jan 22 10:28:37 2002. Summary of my perl5 (revision 5.0 version 7 subversion 2 patch 14368) configuration: Locally applied patches: @INC for perl v5.7.2: Environment for perl v5.7.2: |
From @jhi
This is true...
....but this is slightly irrelevant: the whole "ok" printing could
Unapplied #14106, and tested with the suggested change, worked, -- |
From @ysthI wrote:
cygwin does indeed do a deferred unlink for open files, in one of two ways: This is a big problem since we recommend the '1 while unlink' syntax in
|
From @ysthFilehandle leak fixed that was holding the file open. |
@ysth - Status changed from 'open' to 'resolved' |
From @ysthSorry, wrong comment. Test was fixed to work correctly. |
Migrated from rt.perl.org#8320 (status was 'resolved')
Searchable as RT8320$
The text was updated successfully, but these errors were encountered: