[Toybox] macOS realpath test failures

enh enh at google.com
Thu Jan 5 17:36:21 PST 2023


On Fri, Dec 16, 2022 at 6:42 PM Rob Landley <rob at landley.net> wrote:

> On 12/16/22 13:10, enh wrote:
> > looks like there's a realpath failure (but no change to any of the other
> tests):
> >
> > -- realpath
> > PASS: realpath -s link/..
> > PASS: realpath -s .. eats symlink
> > FAIL: realpath -s .. eats symlink in $PWD
> > echo -ne '' | cd dos && realpath -s ..
> > --- expected 2022-12-16 17:30:41.167996851 +0000
> > +++ actual 2022-12-16 17:30:41.179996850 +0000
> > @@ -1 +1 @@
> > -/data/local/tmp/toybox-tests-tmp.gAHArSomwm/realpath
> > +/data/local/tmp/toybox-tests-tmp.gAHArSomwm/realpath/one
>
> Hmmm...
>
> PASS: realpath -s .. eats symlink
> PASS: realpath -s .. eats symlink in $PWD
> PASS: realpath -es dangling symlink
>
> Statically built with android-ndk-r25b it's passing for me? What
> filesystem are
> you using?
>

looks like f2fs... (patch for portability.c so `stat -f` decodes that sent!)


> Rob
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20230105/bc0d6aad/attachment.htm>


More information about the Toybox mailing list