[Parted-commits] GNU Parted Official Repository: Changes to 'master'
Otavio Salvador
otavio at alioth.debian.org
Fri Apr 20 12:54:37 UTC 2007
libparted/tests/label.c | 7 -------
1 files changed, 7 deletions(-)
New commits:
commit 5650695a9abf63c3930b0f5f44352b4e2a5469dc
Author: Otavio Salvador <otavio at ossystems.com.br>
Date: Fri Apr 20 03:53:18 2007 -0300
[tests] Simplify test_clone_label removing the label reading test
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 at ossystems.com.br>
diff --git a/libparted/tests/label.c b/libparted/tests/label.c
index fe3b971..9338de5 100644
--- a/libparted/tests/label.c
+++ b/libparted/tests/label.c
@@ -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);
More information about the Parted-commits
mailing list