test-profile: allow negative time in JSON output (issue5542) stable
authorYuya Nishihara <yuya@tcha.org>
Thu, 20 Apr 2017 22:45:45 +0900
branchstable
changeset 32060 49145a2b2fb0
parent 32059 0ea1d9a750da
child 32061 6e0368b6e0bb
test-profile: allow negative time in JSON output (issue5542) I don't know why it can be a negative number, but that shouldn't be important here.
tests/test-profile.t
--- a/tests/test-profile.t	Tue Apr 18 11:10:08 2017 -0700
+++ b/tests/test-profile.t	Thu Apr 20 22:45:45 2017 +0900
@@ -90,7 +90,7 @@
 
   $ hg --profile --config profiling.statformat=json sleep 2>../out
   $ cat ../out
-  \[\[\d+.* (re)
+  \[\[-?\d+.* (re)
 
 statprof can be used as a standalone module