[Toybox] diff not passing tests?

enh enh at google.com
Wed Jul 27 09:05:47 PDT 2022


trying to take the fix for killall, but it looks like diff is broken?

-- diff
/system/bin/sh: /data/local/tmp/toybox-tests/runtest.sh[231]: syntax error:
unexpected operator/operand '=~'
PASS: diff unknown argument
PASS: diff missing
PASS: diff - -
PASS: diff simple
PASS: diff -r
PASS: diff --strip-trailing-cr off
PASS: diff --strip-trailing-cr on
PASS: diff line format
FAIL: diff line format empty
echo -ne '' | "/system/bin/diff" --unchanged-line-format=
--old-line-format=D%l --new-line-format=A%l aa bb
--- expected 2022-07-27 15:42:10.739996975 +0000
+++ actual 2022-07-27 15:42:10.763996975 +0000
@@ -1 +1,2 @@
-D2A3
\ No newline at end of file
+--old-line-format=D12
+A3
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20220727/ad809f4d/attachment.htm>


More information about the Toybox mailing list