tests: fix test-profile to not depend on HGPROF environment variable
authorDurham Goode <durham@fb.com>
Tue, 12 Mar 2013 10:37:48 -0700
changeset 18763 eeafab2f58f6
parent 18762 a91387a37f05
child 18764 249b6b455e9b
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.
tests/test-profile.t
--- 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