not sure what's meant to be going on in this file, but it looks wrong in several ways.
diff --git a/tests/losetup.test b/tests/losetup.test index 651c693..3e6aa18 100755 --- a/tests/losetup.test +++ b/tests/losetup.test @@ -9,16 +9,19 @@ then exit fi +# This file contains no tests, even if you *are* root! +exit + #testing "name" "command" "result" "infile" "stdin" truncate -s 1M blah.img && FILE="$(readlink -f blah.img)" -DEV="$(printf '%04d' $(stat -t blah.img | awk '{print $7}'))" -NODE="$(awk '{print $7}')" +DEV="$(stat -c %d blah.img)" +NODE="$(stat -c %i blah.img)" losetup -f losetup -f -s -losetup -f file +losetup -f $FILE losetup -d -- Elliott Hughes - http://who/enh - http://jessies.org/~enh/ Android native code/tools questions? Mail me/drop by/add me as a reviewer. _______________________________________________ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net