<div dir="ltr">and here's the ls -lR for it...<div><br></div><div>~/aosp-master-with-phones/external/toybox$ ./run-tests-on-android.sh realpath<br>tests/: 226 files pushed, 0 skipped. 0.4 MB/s (720526 bytes in 1.768s)<br>scripts/runtest.sh: 1 file pushed, 0 s...pped. 53.1 MB/s (6754 bytes in 0.000s)<br><br>-- realpath<br>PASS: realpath realpath .<br>PASS: realpath missing<br>PASS: realpath missing2<br>PASS: realpath -z<br>PASS: realpath file<br>PASS: realpath dir<br>PASS: realpath --relative-to<br>PASS: realpath --relative-to2<br>PASS: realpath --relative-to3<br>PASS: realpath --relative-to4<br>PASS: realpath --relative-base<br>PASS: realpath --relative-base stomps --relative-to<br>PASS: realpath -m with relative-base1<br>PASS: realpath -m with relative-base2<br>PASS: realpath -m with relative-base3<br>PASS: realpath missing defaults to -m<br>PASS: realpath missing -e<br>PASS: realpath -L<br>PASS: realpath -s<br>PASS: realpath -s link/..<br>PASS: realpath -s .. eats symlink<br>FAIL: realpath -s .. eats symlink in $PWD<br>echo -ne '' | cd dos && realpath -s ..<br>--- expected 2023-01-09 21:52:49.611701819 +0000<br>+++ actual 2023-01-09 21:52:49.635701818 +0000<br>@@ -1 +1 @@<br>-/data/local/tmp/toybox-tests-tmp.a8tofxJqRN/realpath<br>+/data/local/tmp/toybox-tests-tmp.a8tofxJqRN/realpath/one<br><br>_________________________________________________________________________<br><br>PASSED: 0<br>FAILED: realpath<br>~/aosp-master-with-phones/external/toybox$ adb shell ls -lR /data/local/tmp/toybox-tests-tmp.a8tofxJqRN/realpath<br>/data/local/tmp/toybox-tests-tmp.a8tofxJqRN/realpath:<br>total 11<br>-rw-rw-rw- 1 root root 57 2023-01-09 21:52 actual<br>lrwxrwxrwx 1 root root 7 2023-01-09 21:52 dos -> one/two<br>-rw-rw-rw- 1 root root 53 2023-01-09 21:52 expected<br>-rw-rw-rw- 1 root root 0 2023-01-09 21:52 file<br>drwxrwxrwx 3 root root 3452 2023-01-09 21:52 one<br>lrwxrwxrwx 1 root root 5 2023-01-09 21:52 uno -> ./one<br><br>/data/local/tmp/toybox-tests-tmp.a8tofxJqRN/realpath/one:<br>total 3<br>drwxrwxrwx 3 root root 3452 2023-01-09 21:52 two<br><br>/data/local/tmp/toybox-tests-tmp.a8tofxJqRN/realpath/one/two:<br>total 3<br>drwxrwxrwx 2 root root 3452 2023-01-09 21:52 three<br><br>/data/local/tmp/toybox-tests-tmp.a8tofxJqRN/realpath/one/two/three:<br>total 0<br>~/aosp-master-with-phones/external/toybox$ <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 5, 2023 at 5:36 PM enh <<a href="mailto:enh@google.com">enh@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 16, 2022 at 6:42 PM Rob Landley <<a href="mailto:rob@landley.net" target="_blank">rob@landley.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 12/16/22 13:10, enh wrote:<br>
> looks like there's a realpath failure (but no change to any of the other tests):<br>
> <br>
> -- realpath<br>
> PASS: realpath -s link/..<br>
> PASS: realpath -s .. eats symlink<br>
> FAIL: realpath -s .. eats symlink in $PWD<br>
> echo -ne '' | cd dos && realpath -s ..<br>
> --- expected 2022-12-16 17:30:41.167996851 +0000<br>
> +++ actual 2022-12-16 17:30:41.179996850 +0000<br>
> @@ -1 +1 @@<br>
> -/data/local/tmp/toybox-tests-tmp.gAHArSomwm/realpath<br>
> +/data/local/tmp/toybox-tests-tmp.gAHArSomwm/realpath/one<br>
<br>
Hmmm...<br>
<br>
PASS: realpath -s .. eats symlink<br>
PASS: realpath -s .. eats symlink in $PWD<br>
PASS: realpath -es dangling symlink<br>
<br>
Statically built with android-ndk-r25b it's passing for me? What filesystem are<br>
you using?<br></blockquote><div><br></div><div>looks like f2fs... (patch for portability.c so `stat -f` decodes that sent!)</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Rob<br>
</blockquote></div></div>
</blockquote></div>