From a448a249031d207d83535c160eb329d0224ac923 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 6 Nov 2020 20:16:57 +0300 Subject: Fix mistreating test operation timeout as test timeout in some case --- libbuild2/test/init.cxx | 2 +- tests/test/script/runner/timeout.testscript | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/libbuild2/test/init.cxx b/libbuild2/test/init.cxx index 0a47842..47a73ba 100644 --- a/libbuild2/test/init.cxx +++ b/libbuild2/test/init.cxx @@ -220,7 +220,7 @@ namespace build2 m.test_timeout = parse_timeout (string (t, p + 1), tt); } else - m.test_timeout = parse_timeout (t, ot); + m.operation_timeout = parse_timeout (t, ot); } //@@ TODO: Need ability to specify extra diff options (e.g., diff --git a/tests/test/script/runner/timeout.testscript b/tests/test/script/runner/timeout.testscript index ae8f535..bf39034 100644 --- a/tests/test/script/runner/timeout.testscript +++ b/tests/test/script/runner/timeout.testscript @@ -314,7 +314,8 @@ { : set : - $c <>~%EOE% != 0 + $c <>~%EOE% != 0 + timeout 10; $* -l 3 EOI %testscript:.*: error: .+ terminated: execution timeout expired% @@ -323,7 +324,8 @@ : reset : - $c <>~%EOE% != 0 + $c <>~%EOE% != 0 + timeout 10; $* -l 3 EOI %testscript:.*: error: .+ terminated: execution timeout expired% @@ -364,7 +367,8 @@ : reset : - $c <