diff options
author | Jim Meyering <meyering@redhat.com> | 2009-03-21 18:38:17 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-07-24 15:04:43 +0200 |
commit | 7935bddb97d66fd97e05d075d8e475fe0d54dd29 (patch) | |
tree | 40e2e3db812732087827a83463fe56902c0f9d74 /libparted/tests | |
parent | 1618765e4568b930b31ff43d6c1bf74654d16ed7 (diff) | |
download | parted-7935bddb97d66fd97e05d075d8e475fe0d54dd29.tar.gz |
tests: improve coverage in label tests
* libparted/tests/label.c (create_disk): Increase image size from
20MB to 80MB, so that tests with PARTED_SECTOR_SIZE=8192 don't
fail right away.
(START_TEST): Don't skip the "loop" type. It works now.
Diffstat (limited to 'libparted/tests')
-rw-r--r-- | libparted/tests/label.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libparted/tests/label.c b/libparted/tests/label.c index c53907f..270a78b 100644 --- a/libparted/tests/label.c +++ b/libparted/tests/label.c @@ -15,7 +15,7 @@ static char* temporary_disk; static void create_disk (void) { - temporary_disk = _create_disk (20 * 1024 * 1024); + temporary_disk = _create_disk (80 * 1024 * 1024); fail_if (temporary_disk == NULL, "Failed to create temporary disk"); } @@ -105,7 +105,6 @@ START_TEST (test_read_label) continue; if (strcmp (type->name, "pc98") == 0) continue; // segfault if (strcmp (type->name, "sun") == 0) continue; // failed assertion - if (strcmp (type->name, "loop") == 0) continue; // FIXME unrecog label disk = _create_disk_label (dev, type); ped_disk_destroy (disk); |