test-config: add tests for invalid syntax
This was not tested and there is more to come in the next patch.
--- a/tests/test-config.t Tue Aug 19 23:22:44 2014 -0700
+++ b/tests/test-config.t Wed Aug 20 22:52:56 2014 -0700
@@ -1,6 +1,28 @@
hide outer repo
$ hg init
+Invalid syntax: no value
+
+ $ cat > .hg/hgrc << EOF
+ > novaluekey
+ > EOF
+ $ hg showconfig
+ hg: parse error at $TESTTMP/.hg/hgrc:1: novaluekey
+ [255]
+
+Invalid syntax: no key
+
+ $ cat > .hg/hgrc << EOF
+ > =nokeyvalue
+ > EOF
+ $ hg showconfig
+ hg: parse error at $TESTTMP/.hg/hgrc:1: =nokeyvalue
+ [255]
+
+Reset hgrc
+
+ $ echo > .hg/hgrc
+
Test case sensitive configuration
$ echo '[Section]' >> $HGRCPATH