# HG changeset patch # User Arseniy Alekseyev # Date 2024-01-08 15:25:33 # Node ID ded1bad5653d4773282b176cc4d6c0ffb0e8e7cc # Parent c6560ee526d2ebd3a664a4bb5e005a059b099c44 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. diff --git a/tests/test-contrib-perf.t b/tests/test-contrib-perf.t --- a/tests/test-contrib-perf.t +++ b/tests/test-contrib-perf.t @@ -309,9 +309,9 @@ Multiple entries $ 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