test-profile: gate chg-incompatible part with '#if chg'
chg has a different extension loading logic, which affects the profiler
extension test case. Gate the block with '#if chg' so the test passes with
chg.
Differential Revision: https://phab.mercurial-scm.org/D916
--- a/tests/test-profile.t Mon Oct 02 18:22:43 2017 -0700
+++ b/tests/test-profile.t Mon Oct 02 19:10:32 2017 -0700
@@ -111,6 +111,7 @@
$ cd ..
+#if no-chg
profiler extension could be loaded before other extensions
$ cat > fooprof.py <<EOF
@@ -158,3 +159,4 @@
unrecognized profiler 'unknown' - ignored
$ cd ..
+#endif