tests: allow for 100% of profiled time in sleep in test-profile.t stable
authorAugie Fackler <augie@google.com>
Wed, 14 Nov 2018 11:52:13 -0500
branchstable
changeset 40439 4790732559ad
parent 40438 e5f54c4ec075
child 40440 69d4c8c5c25e
child 40682 437520219e0c
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
tests/test-profile.t
--- 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