mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
valgrind: Increase timeout duration 30 -> 90 s
Attempt to fix intermittent failure of `drd/tests/std_list` Locally tested to take around 45 s on qemuarm64 [YOCTO #14228] (From OE-Core rev: aac00b1c8042e41cd6bb1aea8e3033a1c6dd2b05) Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
b8f706224f
commit
40d9466b8c
+7
-2
@@ -19,6 +19,11 @@ Upstream-Status: Pending
|
|||||||
Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
|
Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
|
||||||
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
|
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
|
||||||
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||||
|
|
||||||
|
Increase time limit to 90 s.
|
||||||
|
(double of the expected time of drd/tests/std_list on qemuarm64)
|
||||||
|
|
||||||
|
Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
|
||||||
---
|
---
|
||||||
tests/vg_regtest.in | 75 +++++++++++++++++++++++++++++++++++++++--------------
|
tests/vg_regtest.in | 75 +++++++++++++++++++++++++++++++++++++++--------------
|
||||||
1 file changed, 55 insertions(+), 20 deletions(-)
|
1 file changed, 55 insertions(+), 20 deletions(-)
|
||||||
@@ -66,7 +71,7 @@ index a441f42..cb05b52 100755
|
|||||||
# Since most of the program time is spent in system() calls, need this to
|
# Since most of the program time is spent in system() calls, need this to
|
||||||
# propagate a Ctrl-C enabling us to quit.
|
# propagate a Ctrl-C enabling us to quit.
|
||||||
-sub mysystem($)
|
-sub mysystem($)
|
||||||
+# Enforce 30 seconds limit for the test.
|
+# Enforce 90 seconds limit for the test.
|
||||||
+# This resume execution of the remaining tests if valgrind hangs.
|
+# This resume execution of the remaining tests if valgrind hangs.
|
||||||
+sub mysystem($)
|
+sub mysystem($)
|
||||||
{
|
{
|
||||||
@@ -76,7 +81,7 @@ index a441f42..cb05b52 100755
|
|||||||
+ my $exit_code=0;
|
+ my $exit_code=0;
|
||||||
+ eval {
|
+ eval {
|
||||||
+ local $SIG{'ALRM'} = sub { die "timed out\n" };
|
+ local $SIG{'ALRM'} = sub { die "timed out\n" };
|
||||||
+ alarm(30);
|
+ alarm(90);
|
||||||
+ $exit_code = system($_[0]);
|
+ $exit_code = system($_[0]);
|
||||||
+ alarm (0);
|
+ alarm (0);
|
||||||
+ ($exit_code == 2) and die "SIGINT\n"; # 2 is SIGINT
|
+ ($exit_code == 2) and die "SIGINT\n"; # 2 is SIGINT
|
||||||
|
|||||||
Reference in New Issue
Block a user