]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: tests: update oddinput test
authorDavidlohr Bueso <dave@gnu.org>
Sun, 17 Jun 2012 16:10:11 +0000 (18:10 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 21 Jun 2012 06:04:31 +0000 (08:04 +0200)
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 <dave@gnu.org>
tests/expected/fdisk/oddinput
tests/ts/fdisk/oddinput

index c812caafe84e2cfefcd53e26fba236247233b2e8..d90866bac013de01b9a8d76ac97bff41487485dd 100644 (file)
@@ -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
index f250c91d0858c9401d42120e54dfccfaf78a2cea..799eca054e1e9950075f8db1456965a7c159933f 100755 (executable)
@@ -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