diff options
author | ruperts <ruperts@google.com> | 2018-02-14 09:51:08 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-02-14 09:53:15 -0800 |
commit | 23e6f0b082c45a777fd6176d7841345ab70ca836 (patch) | |
tree | f10ed9c03b2de73d040d9bf97dea9ceb06797bb5 /src/test/shell | |
parent | baf52ae4bddd308057b44faa48146175a415fd9b (diff) |
Be more generous with expected bounds for user and sys time in execution statistics tests.
RELNOTES: None.
PiperOrigin-RevId: 185700811
Diffstat (limited to 'src/test/shell')
-rwxr-xr-x | src/test/shell/integration/linux-sandbox_test.sh | 6 | ||||
-rwxr-xr-x | src/test/shell/integration/process-wrapper_test.sh | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/test/shell/integration/linux-sandbox_test.sh b/src/test/shell/integration/linux-sandbox_test.sh index 959e982f2f..f7ea4dca77 100755 --- a/src/test/shell/integration/linux-sandbox_test.sh +++ b/src/test/shell/integration/linux-sandbox_test.sh @@ -261,15 +261,15 @@ function assert_linux_sandbox_exec_time() { } function test_stats_high_user_time() { - assert_linux_sandbox_exec_time 10 11 0 1 + assert_linux_sandbox_exec_time 10 12 0 2 } function test_stats_high_system_time() { - assert_linux_sandbox_exec_time 0 1 10 11 + assert_linux_sandbox_exec_time 0 2 10 12 } function test_stats_high_user_time_and_high_system_time() { - assert_linux_sandbox_exec_time 10 11 10 11 + assert_linux_sandbox_exec_time 10 12 10 12 } # The test shouldn't fail if the environment doesn't support running it. diff --git a/src/test/shell/integration/process-wrapper_test.sh b/src/test/shell/integration/process-wrapper_test.sh index 70b5c524c8..ee4732ac27 100755 --- a/src/test/shell/integration/process-wrapper_test.sh +++ b/src/test/shell/integration/process-wrapper_test.sh @@ -150,15 +150,15 @@ function assert_process_wrapper_exec_time() { } function test_stats_high_user_time() { - assert_process_wrapper_exec_time 10 11 0 1 + assert_process_wrapper_exec_time 10 12 0 2 } function test_stats_high_system_time() { - assert_process_wrapper_exec_time 0 1 10 11 + assert_process_wrapper_exec_time 0 2 10 12 } function test_stats_high_user_time_and_high_system_time() { - assert_process_wrapper_exec_time 10 11 10 11 + assert_process_wrapper_exec_time 10 12 10 12 } run_suite "process-wrapper" |