Re: t5539 broken under Mac OS X
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 16, 2015, 00:04 UTC
- Message-ID
- <xmqqh9vr4mlz.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <20150115235752.GB25120@peff.net>
Jeff King <peff@peff.net> writes:
Show 10 quoted lines
> Exactly. I am happy to submit a patch, but I cannot think of any > mechanisms besides: > > 1. Calling `id`, which I suspect is very not portable. > > 2. Writing a C program to check getuid(). That's portable for most > Unixes. It looks like we already have a hacky wrapper on mingw that > will always return "1". > > Is (2) too gross?
Not overly gross compared to some existing test-*.c files, I would say.
I wondered what 'perl -e 'print $>' would say in mingw, and if that is portable enough, though.