OSDN Git Service

[tests] Simplify test_clone_label removing the label reading test
authorOtavio Salvador <otavio@ossystems.com.br>
Fri, 20 Apr 2007 06:53:18 +0000 (03:53 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 20 Apr 2007 06:53:18 +0000 (03:53 -0300)
Since the test_create_label already tests the label reading we
shouldn't redo it. It's always better to have simple tests so is much
easier to find the bugs.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
libparted/tests/label.c

index fe3b971..9338de5 100644 (file)
@@ -69,13 +69,6 @@ START_TEST (test_clone_label)
                         continue;
 
                 disk = _create_disk_label (dev, type);
-                ped_disk_destroy (disk);
-
-                /* Try to read the disk label. */
-                disk = ped_disk_new (dev);
-                fail_if (!disk,
-                         "Failed to read the just created label of type: %s",
-                         type->name);
 
                 /* Try to clone the disk label. */
                 clone = ped_disk_duplicate (disk);