maybe use touch and explicit timestamps to ensure you have known state? (the original example was more like "touch file1 ; sleep 1; touch file2 file3", but sleeps in tests are best avoided.)
On Mon, Sep 14, 2015 at 2:26 PM, Rob Landley <[email protected]> wrote: > On 09/12/2015 07:07 PM, Daniel K. Levy wrote: >> On Sat, 2015-09-12 at 16:22 -0700, enh wrote: >>> add tests? >> >> Sure :) > > Applied, but: > > $ TEST_HOST=1 VERBOSE=fail scripts/test.sh find > ... > FAIL: find -type l -newer -exec > echo -ne '' | find dir -type l -newer dir/file -exec ls {} \; > --- expected 2015-09-14 16:24:29.299661516 -0500 > +++ actual 2015-09-14 16:24:29.299661516 -0500 > @@ -1 +0,0 @@ > -dir/link > > That's the ubuntu "find" not passing this test? > > /me goes to poke at + mode... > > Rob -- Elliott Hughes - http://who/enh - http://jessies.org/~enh/ Android native code/tools questions? Mail me/drop by/add me as a reviewer. _______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
