Thread (1 message) 1 message, 1 author, 2016-06-15

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

From: Matthieu Moy <hidden>
Date: 2016-06-15 23:01:58

Junio C Hamano [off-list ref] writes:
Tanay Abhra [off-list ref] writes:
quoted
+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.
quoted
+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/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help