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
skip count is wrong for timeout in dist/Tie-File/t/29_downcopy.t #12677
Comments
From @nwc10On Tue, Dec 25, 2012 at 06:22:00PM -0500, George Greer wrote:
I infer that the "bad plan" is because the skip count is wrong if the sub try { ... if ($err) { ... if (defined $len) { Hence if try() is called with a $len defined and timeout hits, it prints out Nicholas Clark |
From @jkeenanOn Sun Dec 30 03:04:36 2012, nicholas wrote:
Would this be fixed simply by printing 'not ok' two more times? |
The RT System itself - Status changed from 'new' to 'open' |
From @dcollinsnOn Sun Dec 15 13:56:26 2013, jkeenan wrote:
I think this is the necessary patch, to print 2 fails if the timeout happens in the recursive call, or 4 fails if it happens in the parent. -- |
From @dcollinsn0001-RT-115980-Fail-the-right-number-of-tests-on-timeout.patchFrom 7b2ef8c50216b493a4de1405e6a90a516a0f333e Mon Sep 17 00:00:00 2001
From: Dan Collins <dcollinsn@gmail.com>
Date: Thu, 29 Sep 2016 11:23:00 -0400
Subject: [PATCH] RT #115980: Fail the right number of tests on timeout
---
dist/Tie-File/t/29_downcopy.t | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dist/Tie-File/t/29_downcopy.t b/dist/Tie-File/t/29_downcopy.t
index d75806d..72943ad 100644
--- a/dist/Tie-File/t/29_downcopy.t
+++ b/dist/Tie-File/t/29_downcopy.t
@@ -279,6 +279,11 @@ sub try {
print "# Timeout\n";
print "not ok $N\n"; $N++;
print "not ok $N\n"; $N++;
+ if ($defined $len) {
+ # Fail the tests in the recursive call as well
+ print "not ok $N\n"; $N++;
+ print "not ok $N\n"; $N++;
+ }
return;
} else {
$@ = $err;
--
2.9.3
|
From [Unknown Contact. See original ticket]On Sun Dec 15 13:56:26 2013, jkeenan wrote:
I think this is the necessary patch, to print 2 fails if the timeout happens in the recursive call, or 4 fails if it happens in the parent. -- |
From @jkeenanOn Thu Sep 29 08:27:52 2016, dcollinsn@gmail.com wrote:
Had to correct one syntax error in patch ($defined) and reference to incorrect RT number in commit message. Pushed to blead in commit 5654fe3. Will monitor for no more than 7 days, then close ticket. Thank you very much. -- |
From @jkeenanOn Thu Sep 29 11:31:54 2016, jkeenan wrote:
No complaints registered; marking ticket Resolved. -- |
@jkeenan - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#116250 (status was 'resolved')
Searchable as RT116250$
The text was updated successfully, but these errors were encountered: