summaryrefslogtreecommitdiff
path: root/tests-clar/repo/config.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename tests-clar to testsBen Straub2013-11-141-208/+0
|
* tests: make a few globals staticsCarlos Martín Nieto2013-11-131-1/+1
| | | | ld was warning that the size of path changed, rightly so.
* Plug configuration file search paths leaksnulltoken2013-11-051-0/+8
|
* More tests of config with various absent filesRussell Belfer2013-05-231-2/+127
| | | | | Plus a bit of extra paranoia to ensure config object has valid contents.
* repo: unconditionally create a global config backendCarlos Martín Nieto2013-05-071-0/+75
When a repository is initialised, we need to probe to see if there is a global config to load. If this is not the case, the user isn't able to write to the global config without creating the backend and adding it themselves, which is inconvenient and overly complex. Unconditionally create and add a backend for the global config file regardless of whether it exists as a convenience for users. To enable this, we allow creating backends to files that do not exist yet, changing the semantics somewhat, and making some tests invalid.