OSDN Git Service

Fix hang in losetup test.
authorElliott Hughes <enh@google.com>
Mon, 22 Jan 2018 22:04:24 +0000 (14:04 -0800)
committerRob Landley <rob@landley.net>
Tue, 23 Jan 2018 07:20:23 +0000 (01:20 -0600)
commit1fec45a2a57f431bef990b7a17449f7ff96cac30
tree41f1b886232f70f2a4a55d0aa2dded135167d1c0
parentc26d631f7b385859ba4e76f6b1e6789e105f42b3
Fix hang in losetup test.

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