Skip to content
Snippets Groups Projects
Commit d9a8017dce10 authored by Pierre-Yves David's avatar Pierre-Yves David
Browse files

test-config: add tests for invalid syntax

This was not tested and there is more to come in the next patch.
parent 10e87c67f1c7
No related branches found
No related tags found
No related merge requests found
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment