tests: fix nondeterministic test failure in test-contrib-perf.t stable
authorArseniy Alekseyev <aalekseyev@janestreet.com>
Mon, 08 Jan 2024 15:25:33 +0000
branchstable
changeset 51365 ded1bad5653d
parent 51364 c6560ee526d2
child 51366 3fd1efb3ad12
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.
tests/test-contrib-perf.t
--- 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