[PATCH] tests: fix test-profile to not depend on HGPROF environment variable

Durham Goode durham at fb.com
Tue Mar 12 12:39:04 CDT 2013


# HG changeset patch
# User Durham Goode <durham at fb.com>
# Date 1363109868 25200
#      Tue Mar 12 10:37:48 2013 -0700
# Node ID 549e74b13d1a8fd276685be136d795ba49f7fab3
# Parent  018d68a30fe19e2d2c73d765306ba3156bb4957c
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.

diff --git a/tests/test-profile.t b/tests/test-profile.t
--- a/tests/test-profile.t
+++ b/tests/test-profile.t
@@ -8,6 +8,8 @@
 
 test --profile
 
+  $ export -n HGPROF
+
   $ hg --profile st 2>../out
   $ grep CallCount ../out > /dev/null || cat ../out
 


More information about the Mercurial-devel mailing list