Re: [PATCH] t7063: work around FreeBSD's lazy mtime update feature
- From
- Eric Wong <e@80x24.org>
- Date
- Jul 31, 2016, 01:07 UTC
- Message-ID
- <20160731010732.GA31840@whir>
- In-Reply-To
- <20160731001532.GA23146@starla>
Eric Wong <e@80x24.org> wrote:
Show 6 quoted lines
> Nguyễn Thái Ngọc Duy <pclouds@gmail.com> wrote: > > +test_expect_success FREEBSD 'Work around lazy mtime update' ' > > + ls -ld . >/dev/null > > +' > > stat . >/dev/null
If there's some older FreeBSD w/o stat(1); "test -x ." ought to work, too, and it's faster being a shell builtin.
I suspect some shell might be clever about optimizing away a more-obvious "test -d .", so I choose "test -x ."
> would be more to the point of what is going on, here. But I > also wonder if untracked cache itself could/should be doing this > internally.
Still wondering :>
> (I'm not familiar with that code, of course) > > Thanks again for looking into this.