Re: [RFC 2/2] exclude-promisor-objects: declare when option is allowed
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 24, 2018, 01:31 UTC
- Message-ID
- <xmqqva5sqgeb.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <alpine.DEB.2.21.1810231053550.56374@matvore-linux.svl.corp.google.com>
Matthew DeVore <matvore@comcast.net> writes:
Show 10 quoted lines
> On Tue, 23 Oct 2018, Junio C Hamano wrote: > >> Not really. We were already doing a controlled failure via die(), >> so these two tests would not have caught the problem in the code >> before the fix in this patch. >> > > BUG is apparently considered a "wrong" failure and not a controlled one > by test_must_fail. I just double-checked that the tests fail without > this patch.
Ah, I was testing a wrong codepath. Yes, it does call BUG("..."), which is a prettier-looking abort(), but I somehow thought it was doing die("BUG: ...").
In any case, thanks for the fix.