Thread (25 messages) flat view 25 messages, 5 authors, 2018-03-01

Re: [Problem] test_must_fail makes possibly questionable assumptions about exit_code.

From: Jonathan Nieder <hidden>
Date: 2018-02-28 18:52:00

Randall S. Becker wrote:
On February 28, 2018 12:44 PM, Jonathan Nieder wrote:
quoted
Randall S. Becker wrote:
quoted
quoted
The problem is actually in git code in its test suite that uses perl
inline, not in my test code itself.
[...]
quoted
Can you elaborate with an example?  My understanding was that
test_must_fail is only for running git.
[...]
Have a look at a recent t1404 as a sample. Line 615 is the one causing the
platform grief, because it triggers a 'die'. However, the particular test
case #54, had no difference on platform with test_must_fail or !, which has
the same underlying EBADF completion after digging and digging.
Sorry to be dense: what I see on that line is

	test_must_fail git update-ref -d $prefix/foo >out 2>err &&

How is perl involved?

Puzzled,
Jonathan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help