changeset 18763:eeafab2f58f6

tests: fix test-profile to not depend on HGPROF environment variable The test-profile test would fail if the user had HGPROF set to another profiler in their environment. This fix makes the test independent of that environment variable.
author Durham Goode <durham@fb.com>
date Tue, 12 Mar 2013 10:37:48 -0700
parents a91387a37f05
children 249b6b455e9b
files tests/test-profile.t
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-profile.t	Sat Mar 09 22:14:46 2013 +0100
+++ b/tests/test-profile.t	Tue Mar 12 10:37:48 2013 -0700
@@ -8,6 +8,8 @@
 
 test --profile
 
+  $ export -n HGPROF
+
   $ hg --profile st 2>../out
   $ grep CallCount ../out > /dev/null || cat ../out