changeset 51365:ded1bad5653d stable

tests: fix nondeterministic test failure in test-contrib-perf.t It turns out (not too shockingly!) the kernel sometimes has some work to do, perhaps at the very least context-switching, so asserting the system time is 0.000000 doesn't work.
author Arseniy Alekseyev <aalekseyev@janestreet.com>
date Mon, 08 Jan 2024 15:25:33 +0000
parents c6560ee526d2
children 3fd1efb3ad12
files tests/test-contrib-perf.t
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-contrib-perf.t	Thu Feb 01 19:35:35 2024 -0500
+++ b/tests/test-contrib-perf.t	Mon Jan 08 15:25:33 2024 +0000
@@ -309,9 +309,9 @@
 
   $ hg perfparents --config perf.stub=no --config perf.run-limits='500000-1, 0.000000001-50'
   ! wall * comb * user * sys * (best of 50) (glob)
-  ! wall * comb * user * sys 0.000000 (max of 50) (glob)
-  ! wall * comb * user * sys 0.000000 (avg of 50) (glob)
-  ! wall * comb * user * sys 0.000000 (median of 50) (glob)
+  ! wall * comb * user * sys * (max of 50) (glob)
+  ! wall * comb * user * sys * (avg of 50) (glob)
+  ! wall * comb * user * sys * (median of 50) (glob)
 
 error case are ignored