[Toybox] [PATCH] Fix hang in losetup test.

enh enh at google.com
Mon Jan 22 14:08:09 PST 2018


Switch the printf over to %s because the input is actually hex (so %d
is wrong), but without the leading "0x" that %x would require.

For some reason the NODE assignment wasn't providing any input to awk
(hence the hang), and awk wasn't looking for the correct field anyway.

The tests still fail for me:

  losetup: /dev/block/loop0: No such device or address
  losetup: /dev/block/loop0: No such device or address
  losetup: file: No such file or directory
  losetup: needs 1 arg (see "losetup --help")

But at least now they allow the other tests to continue!
---
 tests/losetup.test | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-hang-in-losetup-test.patch
Type: text/x-patch
Size: 1321 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20180122/de07ba39/attachment.bin>


More information about the Toybox mailing list