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
[PATCH] Speedup io/through.t and io/crlf_through.t #13544
Comments
From @wolfsageCreated by wolfsage@gmail.comCurrently, io/crlf.t and io/crlf_through.t takes ~10 seconds each They are using sleeps that I'm not convinced are needed. By removing all but the first sleep (incase that's needed for I temporarily reverted the associated fix that came with the tests Patch attached. Thanks, -- Matthew Horsfall (alh) Perl Info
|
From @wolfsage0001-Sleep-only-once-so-tests-finishes-quickly.-2s-instea.patchFrom af63287cda4a3bdbae03f0d80e09ff0bdcabf1ba Mon Sep 17 00:00:00 2001
From: Matthew Horsfall <WolfSage@gmail.com>
Date: Mon, 20 Jan 2014 12:25:26 -0500
Subject: [PATCH] Sleep only once so tests finishes quickly. (~2s instead of
~10s)
---
t/io/through.t | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/io/through.t b/t/io/through.t
index 315de90..8c3a39f 100644
--- a/t/io/through.t
+++ b/t/io/through.t
@@ -112,7 +112,7 @@ sub testfile ($$$$$$) {
}
# shell-neutral and miniperl-enabled autoflush? qq(\x24\x7c) eq '$|'
-open my $fh, '-|', qq[$Perl -we "eval qq(\\x24\\x7c = 1) or die; binmode STDOUT; sleep 1, print for split //, qq(a\nb\n\nc\n\n\n)"] or die "open: $!";
+open my $fh, '-|', qq[$Perl -we "eval qq(\\x24\\x7c = 1) or die; binmode STDOUT; sleep 1; print for split //, qq(a\nb\n\nc\n\n\n)"] or die "open: $!";
ok(1, 'open pipe');
binmode $fh, q(:crlf);
ok(1, 'binmode');
--
1.7.9.5
|
From @tonycozOn Mon Jan 20 09:36:05 2014, alh wrote:
Reverting the substantive parts of 93c2c2e (I didn't revert the comment change) didn't cause the test you modified to fail even without your change. (Win32 and Linux) That said, from reading the original discussion of the problem, I don't think your change preserves the behaviour that was required to reproduce the original problem. The original problem, if I understand it, was the user entering text from the keyboard and perlio's CRLF layer not handling those short reads correctly. With your change, the child process is likely to arrive in a single read() in the parent process, so not matching the behaviour needed to reproduce the original bug. Tony |
The RT System itself - Status changed from 'new' to 'open' |
From @wolfsageOn Tue, Jan 21, 2014 at 10:17 PM, Tony Cook via RT
io/through.t passes for me with or without the application of 93c2c2e. io/crlf_through.t is the one that fails when 93c2c2e is reverted, I've noticed that the test I've changed: # shell-neutral and miniperl-enabled autoflush? qq(\x24\x7c) eq '$|' passes with or without 93c2c2e for both io/through.t and Unfortunately I can't get Perl to build at 93c2c2e to see if perhaps -- Matthew Horsfall (alh) |
From @jkeenanOn Fri, 24 Jan 2014 13:34:43 GMT, alh wrote:
Matt, Tony: Should this ticket remain open? Thank you very much. |
From @wolfsageOn Sun, Feb 26, 2017 at 5:27 PM, James E Keenan via RT
I don't think it's worth it. Feel free to close, thanks. -- Matthew Horsfall (alh) |
From @jkeenanOn Mon, 27 Feb 2017 14:27:38 GMT, alh wrote:
TonyC is listed as Owner, so I'll let him make the final call.
-- |
No response in 5 years; OP says ok to close |
Migrated from rt.perl.org#121042 (status was 'open')
Searchable as RT121042$
The text was updated successfully, but these errors were encountered: