|
|
4f391e |
From 9b42fce32bff25e0569581f76f532b9d57865aef Mon Sep 17 00:00:00 2001
|
|
|
4f391e |
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
|
|
|
4f391e |
Date: Mon, 27 Jul 2020 14:56:05 +0200
|
|
|
4f391e |
Subject: [PATCH] Timeout the test_bug_reporter_add witout raising error.
|
|
|
4f391e |
|
|
|
4f391e |
While timeouting the threads might be still good idea, it does not seems
|
|
|
4f391e |
the timeout impacts the TestBugReporter#test_bug_reporter_add result,
|
|
|
4f391e |
because the output of the child process has been already collected
|
|
|
4f391e |
earlier.
|
|
|
4f391e |
|
|
|
4f391e |
It seems that when the system is under heavy load, the thread might not
|
|
|
4f391e |
be sheduled to finish its processing. Even finishing the child process
|
|
|
4f391e |
might take tens of seconds and therefore the test case finish might take
|
|
|
4f391e |
a while.
|
|
|
4f391e |
---
|
|
|
4f391e |
test/-ext-/bug_reporter/test_bug_reporter.rb | 2 +-
|
|
|
4f391e |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
4f391e |
|
|
|
4f391e |
diff --git a/test/-ext-/bug_reporter/test_bug_reporter.rb b/test/-ext-/bug_reporter/test_bug_reporter.rb
|
|
|
4f391e |
index 628fcd0340..2c677cc8a7 100644
|
|
|
4f391e |
--- a/test/-ext-/bug_reporter/test_bug_reporter.rb
|
|
|
4f391e |
+++ b/test/-ext-/bug_reporter/test_bug_reporter.rb
|
|
|
4f391e |
@@ -19,7 +19,7 @@ def test_bug_reporter_add
|
|
|
4f391e |
args = ["--disable-gems", "-r-test-/bug_reporter",
|
|
|
4f391e |
"-C", tmpdir]
|
|
|
4f391e |
stdin = "register_sample_bug_reporter(12345); Process.kill :SEGV, $$"
|
|
|
4f391e |
- assert_in_out_err(args, stdin, [], expected_stderr, encoding: "ASCII-8BIT")
|
|
|
4f391e |
+ assert_in_out_err(args, stdin, [], expected_stderr, encoding: "ASCII-8BIT", timeout_error: nil)
|
|
|
4f391e |
ensure
|
|
|
4f391e |
FileUtils.rm_rf(tmpdir) if tmpdir
|
|
|
4f391e |
end
|
|
|
4f391e |
--
|
|
|
4f391e |
2.27.0
|
|
|
4f391e |
|