From: Jonathan Nieder Date: Tue, 24 Jan 2012 23:24:21 GMT Subject: Re: [PATCH 5/5] run-command: Error out if interpreter not found Message-ID: <20120124232421.GH8222@burratino> In-Reply-To: <1327444346-6243-6-git-send-email-fransklaver@gmail.com> Frans Klaver wrote: > --- a/t/t0061-run-command.sh > +++ b/t/t0061-run-command.sh > @@ -76,12 +76,12 @@ test_expect_success POSIXPERM 'run_command reports EACCES, interpreter fails' ' > grep "bad interpreter" err > ' > > -test_expect_failure POSIXPERM 'run_command reports ENOENT, interpreter' ' > +test_expect_success POSIXPERM 'run_command reports ENOENT, interpreter' ' > cat non-existing-interpreter >hello.sh && > chmod +x hello.sh && > test_must_fail test-run-command start-command-ENOENT ./hello.sh 2>err && > > - grep "error: cannot exec.*hello.sh" err && > + grep "fatal: cannot exec.*hello.sh" err && Thanks. I'd suggest using "test_expect_code" rather than the detailed wording of the message, since that is what scripts might want to rely on. What happens on Windows?