tests: allow for 100% of profiled time in sleep in test-profile.t
I'm getting an annoying failure in this test on our builder, and I
*think* what's happening is that the profiler is taking _just_ long
enough to start that we're spending 100% of the profiled time in the
sleep function, which was causing the leading space to not be printed
since the 100 was in the first column of output.
Differential Revision: https://phab.mercurial-scm.org/D5272
--- a/tests/test-profile.t Wed Nov 14 15:06:21 2018 +0800
+++ b/tests/test-profile.t Wed Nov 14 11:52:13 2018 -0500
@@ -90,7 +90,7 @@
$ head -n 3 ../out
% cumulative self
time seconds seconds name
- * sleepext.py:*:sleep (glob)
+ * sleepext.py:*:sleep (glob)
$ cat ../out | statprofran
$ hg --profile --config profiling.statformat=bymethod sleep 2>../out