[parted-devel] [PATCH] Improved and separate test for reading disk labels.

Jim Meyering jim at meyering.net
Wed Apr 25 20:14:09 UTC 2007


"Debarshi 'Rishi' Ray" <debarshi.ray at gmail.com> wrote:
>> Do the existing ones work for you on the trunk?
>> On a Debian unstable x86_64 system, "make check" on "master" gives this:
>
> That is because of a faulty dvh code. The backtrace is generated while
> trying to destroy the dvh disk label. I think Otavio and/or David are
> looking into it.

Oh, of course!  That's what sparked the let's-fix-dvh-thread.
I propose to temporarily disable the "dvh" part of that test:

diff --git a/libparted/tests/label.c b/libparted/tests/label.c
index 898dbe3..c1f8b4e 100644
--- a/libparted/tests/label.c
+++ b/libparted/tests/label.c
@@ -100,6 +100,11 @@ START_TEST (test_clone_label)
                 if (!_implemented_disk_label (type->name))
                         continue;

+                /* FIXME: skip this test temporarily, while we wait
+                   for someone to find the cycles to fix the bug.  */
+                if (strcmp (type->name, "dvh") == 0)
+                        continue;
+
                 disk = _create_disk_label (dev, type);

                 /* Try to clone the disk label. */



More information about the parted-devel mailing list