From: Junio C Hamano Date: Mon, 09 Mar 2020 15:04:22 GMT Subject: Re: [PATCH] t1091: don't grep for `strerror()` string Message-ID: In-Reply-To: <20200308084627.26677-1-martin.agren@gmail.com> Martin Ă…gren writes: > 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.