tests/test-config.t
changeset 22275 d9a8017dce10
parent 19087 7d82ad4b3727
child 22276 b13b99d39a46
--- 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