[Toybox] macOS realpath test failures

enh enh at google.com
Mon Nov 28 10:41:43 PST 2022


github CI caught a few failures (
https://github.com/landley/toybox/actions/runs/3561813808/jobs/5983047254):

PASS: realpath -s
............................................................................................................................realpath:
dos/three: Not a directory
FAIL: realpath -s link/..
echo -ne '' | "/Users/runner/work/toybox/toybox/generated/testdir/realpath"
-es dos/three
--- expected 2022-11-28 04:54:16.000000000 +0000
+++ actual 2022-11-28 04:54:16.000000000 +0000
@@ -1 +0,0 @@
-/Users/runner/work/toybox/toybox/generated/testdir/testdir/dos/three
PASS: realpath -s .. eats symlink
PASS: realpath -s .. eats symlink in $PWD
FAIL: realpath -es dangling symlink
echo -ne '' | "/Users/runner/work/toybox/toybox/generated/testdir/realpath"
-es dangling 2>/dev/null || echo ok
--- expected 2022-11-28 04:54:16.000000000 +0000
+++ actual 2022-11-28 04:54:16.000000000 +0000
@@ -1 +1 @@
-ok
+/Users/runner/work/toybox/toybox/generated/testdir/testdir/dangling
PASS: realpath -ms
realpath: one/two/ichi/two/ichi/two: Not a directory
FAIL: realpath -es
echo -ne '' | "/Users/runner/work/toybox/toybox/generated/testdir/realpath"
-es one/two/ichi/two/ichi/two
--- expected 2022-11-28 04:54:16.000000000 +0000
+++ actual 2022-11-28 04:54:17.000000000 +0000
@@ -1 +0,0 @@
-/Users/runner/work/toybox/toybox/generated/testdir/testdir/one/two/ichi/two/ichi/two
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20221128/797c0322/attachment.htm>


More information about the Toybox mailing list