From: Johannes Sixt Date: Thu, 07 May 2009 07:13:14 GMT Subject: Re: Tests in Cygwin Message-ID: <4A028A0A.5070003@viscovery.net> In-Reply-To: <7vvdoet13g.fsf@alter.siamese.dyndns.org> Junio C Hamano schrieb: > Don Slutz writes: > >> A lot of these failures are do to running as root (member of >> Administrators).... > > Perhaps we can do this to reduce the noise level. Thank you for this patch. Unfortunately, it does not work as intended because the call to test_have_prereq in test_skip does not split the prereq tokens so that tests with space-separated prerequisite tokens are always skipped. My first attempt to solve that is to remove the quotes from the test_have_prereq call in test_skip; but I think that this simple solution is rather unintuitive, and will look like a bug if you inspect the code again in two months. You could squash in the patch below, where I chose to concatenate tokens with '+' because I dislike the extra quoting that is otherwise necessary at the call site. The downside is that it plays games with IFS, which you might find too ugly and not worth it. It's your call. BTW, I didn't dare test this as root on my production system; I'll do that later today elsewhere. diff --git a/t/README b/t/README index a532c32..49c3a51 100644 --- a/t/README +++ b/t/README @@ -200,7 +200,7 @@ library for your script to use.