Re: [PATCH] t1091: don't grep for `strerror()` string
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 9, 2020, 15:04 UTC
- Message-ID
- <xmqqmu8p1seh.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <20200308084627.26677-1-martin.agren@gmail.com>
Martin Ågren <martin.agren@gmail.com> writes:
Show 7 quoted lines
> We grep for "File exists" in stderr of the failing `git sparse-checkout` > to make sure that it failed for the right reason. We expect the string > to show up there since we call `strerror(errno)` in > `unable_to_lock_message()` in lockfile.c. > > On the NonStop platform, this fails because the error string is "File > already exists", which doesn't match our grepping.
Thanks for a quick fix. I agree that looking for our own string makes a lot more sense here.