[Toybox] [PATCH] Add find tests.

enh enh at google.com
Mon Sep 14 14:34:38 PDT 2015


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 <rob at landley.net> 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.

 1442266478.0


More information about the Toybox mailing list