[Toybox] [PATCH] losetup: minor fixes.

enh enh at google.com
Tue Jun 25 09:06:07 PDT 2019


Fix `losetup -f` to not fail with an error.

Add the missing \n for `losetup -f --show FILE`.

Use decimal for the device number, like the desktop losetup.

Switch to the FLAG macro.

Make the tests runnable as tests, and expand coverage a bit. With this
patch, the tests pass both with and without TEST_HOST on the desktop.
Note though that this patch is part of fixing some real-life losetup
issues, not part of the "test cleanup" I'm also looking at. losetup is
low down that list!
---
 tests/losetup.test   | 18 +++++++++++-------
 toys/other/losetup.c | 41 ++++++++++++++++++++++++-----------------
 2 files changed, 35 insertions(+), 24 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-losetup-minor-fixes.patch
Type: text/x-patch
Size: 6073 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20190625/90f4b5a3/attachment-0001.bin>


More information about the Toybox mailing list