git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v10 4/4] test-config: add tests for the config_set API

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Jul 18, 2014, 21:52 UTC
Message-ID
<vpqwqba1gif.fsf@anie.imag.fr>
In-Reply-To
<xmqqzjg6mwhm.fsf@gitster.dls.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 7 quoted lines
> Tanay Abhra <tanayabh@gmail.com> writes:
>
>> +test_expect_success 'proper error on non-existant files' '
>> +	echo "Error (-1) reading configuration file non-existant-file." >expect &&
>
> s/tant/tent/ perhaps?
> cf. http://en.wiktionary.org/wiki/non-existant
It seems so. My bad.
Show 9 quoted lines
>> +test_expect_success 'proper error on non-accessible files' '
>> +	chmod -r .git/config &&
>> +	test_when_finished "chmod +r .git/config" &&
>> +	echo "Error (-1) reading configuration file .git/config." >expect &&
>> +	test_expect_code 2 test-config configset_get_value foo.bar .git/config 2>actual &&
>> +	test_cmp expect actual
>> +'
>
> Doesn't this one need some prerequisite?

My bad too ;-). There should have been SANITY,POSIXPERM I guess (Tanay: search "prereq" in t/README if you don't see what we're talking about).

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Junio C Hamano
Message 11 of 11 in “git config cache & special querying api utilizing the cache”
  1. 0/4 git config cache & special querying api utilizing the cacheTanay Abhra, Jul 18, 2014
  2. 1/4 string-list: add string_list initializer helper functionTanay Abhra, Jul 18, 2014
  3. Junio C HamanoJul 18, 2014
  4. 2/4 replace memset with string-list initializersTanay Abhra, Jul 18, 2014
  5. 3/4 add `config_set` API for caching config-like filesTanay Abhra, Jul 18, 2014
  6. Matthieu MoyJul 18, 2014
  7. Tanay AbhraJul 18, 2014
  8. Matthieu MoyJul 18, 2014
  9. 4/4 test-config: add tests for the config_set APITanay Abhra, Jul 18, 2014
  10. Junio C HamanoJul 18, 2014
  11. Matthieu MoyJul 18, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.