From: SZEDER Gábor Date: Wed, 05 Dec 2018 14:39:19 GMT Subject: Re: [RFC PATCH 3/3] test-lib: add the '--stress' option to run a test repeatedly under load Message-ID: <20181205143919.GN30222@szeder.dev> In-Reply-To: <87wooof4xm.fsf@evledraar.gmail.com> On Wed, Dec 05, 2018 at 03:01:41PM +0100, Ævar Arnfjörð Bjarmason wrote: > >> decide to stress test in advance, since we'd either flock() the trash > >> dir, or just mktemp(1)-it. > > > > While 'mktemp' seems to be more portable than 'flock', it doesn't seem > > to be portable enough; at least it's not in POSIX.> > > We are already relying on stuff like mktemp() being reliable for > e.g. the split index. That's the mktemp() function from libc; I meant the 'mktemp' command that we would use this early in 'test-lib.sh', where PATH has not been set up for testing yet.