From: Davidlohr Bueso Date: Sun, 17 Jun 2012 16:10:11 +0000 (+0200) Subject: fdisk: tests: update oddinput test X-Git-Tag: v2.22-rc1~259 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ff680b36e9ab940ff4686373addea1b094336ffe;p=thirdparty%2Futil-linux.git fdisk: tests: update oddinput test Adding mbr to the API breaks this test, specifically when reading the first 512 bytes of the MBR, update the expected output for oddinput.toosmall. Also let the test create and remove the test file instead of having it in the expected directory. Signed-off-by: Davidlohr Bueso --- diff --git a/tests/expected/fdisk/oddinput b/tests/expected/fdisk/oddinput index c812caafe8..d90866bac0 100644 --- a/tests/expected/fdisk/oddinput +++ b/tests/expected/fdisk/oddinput @@ -11,3 +11,4 @@ I/O size (minimum/optimal): 512 bytes / 512 bytes Nonexistant file lt-fdisk: unable to open _a_file_that_does_not_exist_: No such file or directory Too small file +lt-fdisk: unable to open oddinput.toosmall: Success diff --git a/tests/ts/fdisk/oddinput b/tests/ts/fdisk/oddinput index f250c91d08..799eca054e 100755 --- a/tests/ts/fdisk/oddinput +++ b/tests/ts/fdisk/oddinput @@ -34,6 +34,7 @@ ts_log "Nonexistant file" # this originally does absolutely nothing $TS_CMD_FDISK -c=dos -u=cylinders -l _a_file_that_does_not_exist_ >> $TS_OUTPUT 2>&1 ts_log "Too small file" # same here -$TS_CMD_FDISK -c=dos -u=cylinders -l $TS_TOPDIR/expected/fdisk/oddinput.toosmall >> $TS_OUTPUT 2>&1 - +echo "This file is too small" >> oddinput.toosmall +$TS_CMD_FDISK -c=dos -u=cylinders -l oddinput.toosmall >> $TS_OUTPUT 2>&1 +rm oddinput.toosmall ts_finalize