changeset 32060:49145a2b2fb0 stable

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.
author Yuya Nishihara <yuya@tcha.org>
date Thu, 20 Apr 2017 22:45:45 +0900
parents 0ea1d9a750da
children 6e0368b6e0bb
files tests/test-profile.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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