From e67e26560125d982e6f6ae7826385c3b4fff2963 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 12 Jun 2009 10:09:47 +0200 Subject: [PATCH] tests: t2200-dos-label-recog.sh: adapt to work with larger sector size Using a 100K image is inadequate for larger sector sizes, since it triggers a bug whereby the device length (in sectors) smaller than the cylinder_size: from dos.c: if (!ped_geometry_init (&start_geom, dev, cylinder_size, dev->length - cylinder_size)) That would pass a negative value for the 3rd argument. * tests/t2200-dos-label-recog.sh: Use an image of size 10MB, not 100K. --- tests/t2200-dos-label-recog.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/t2200-dos-label-recog.sh b/tests/t2200-dos-label-recog.sh index c3f9ae3..2ea7de0 100755 --- a/tests/t2200-dos-label-recog.sh +++ b/tests/t2200-dos-label-recog.sh @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright (C) 2008 Free Software Foundation, Inc. +# Copyright (C) 2008-2009 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -25,7 +25,7 @@ test_description='improved MSDOS partition-table recognition' # parted 1.8.8.1.29 and earlier would fail to recognize a DOS # partition table. ###################################################################### -N=100k +N=10M dev=loop-file test_expect_success \ 'create a file to simulate the underlying device' \ -- 2.11.0