]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: update 'odd input' fdisk test
authorKarel Zak <kzak@redhat.com>
Mon, 11 Mar 2013 15:05:29 +0000 (16:05 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 11 Mar 2013 15:05:29 +0000 (16:05 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/expected/fdisk/oddinput
tests/ts/fdisk/oddinput

index a681d0d2f8faf4a8cefefa1981161e85c630c89e..19bf365fdda0f54e565e2d4c54f15e307be51ec7 100644 (file)
@@ -3,7 +3,6 @@ f1c9645dbc14efddc7d8a322685f26eb oddinput.img
 Empty image listing
 
 Disk testimage: 10 MB, 10485760 bytes, 20480 sectors
-255 heads, 63 sectors/track, 1 cylinders
 Units = cylinders of 16065 * 512 = 8225280 bytes
 Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
@@ -11,4 +10,4 @@ I/O size (minimum/optimal): 512 bytes / 512 bytes
 Nonexistant file
 fdisk: cannot open _a_file_that_does_not_exist_: No such file or directory
 Too small file
-fdisk: cannot open oddinput.toosmall: Invalid argument
+fdisk: cannot open oddinput.toosmall: Inappropriate ioctl for device
index 799eca054e1e9950075f8db1456965a7c159933f..5b9bb310841d3e85e23eed0544fe1ba7fa363d22 100755 (executable)
@@ -26,6 +26,10 @@ ts_log "Initialize empty image"
 TEST_IMAGE_NAME=$(ts_image_init 10)
 ts_image_md5sum >> $TS_OUTPUT 2>&1
 
+#
+# Note that since 2.23 the DOS-mode has effect only if there is a MBR on the device.
+#
+
 ts_log "Empty image listing" # this should report empty partition table
 # TEST_IMAGE_NAME has absolute path, and is by definition different on each computer, we need to sed it away
 $TS_CMD_FDISK -c=dos -u=cylinders -l ${TEST_IMAGE_NAME} 2>&1 | sed -e "s/${TEST_IMAGE_NAME//\//\\/}/testimage/" >> $TS_OUTPUT