OSDN Git Service

tests: hook up new GPT-crc-corrupting script
authorJim Meyering <meyering@redhat.com>
Mon, 19 Oct 2009 16:55:06 +0000 (18:55 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 23 Oct 2009 16:09:41 +0000 (18:09 +0200)
* tests/Makefile.am (TESTS): Add t0280-gpt-corrupt.sh.
* libparted/labels/gpt.c (gpt_read): Change diagnostic to say that
the PTE CRC mismatch is in the primary table.
* tests/t0280-gpt-corrupt.sh: Tweak diagnostic to match
what the code now prints.

libparted/labels/gpt.c
tests/Makefile.am
tests/t0280-gpt-corrupt.sh

index daac677..5131ebe 100644 (file)
@@ -940,7 +940,7 @@ gpt_read (PedDisk *disk)
       ped_exception_throw
         (PED_EXCEPTION_ERROR,
          PED_EXCEPTION_CANCEL,
-         _("partition table array (FIXME:which?) CRC mismatch"));
+         _("primary partition table array CRC mismatch"));
       goto error_free_ptes;
     }
 
index 42badff..0d393a6 100644 (file)
@@ -7,6 +7,7 @@ TESTS = \
   t0202-gpt-pmbr.sh \
   t0220-gpt-msftres.sh \
   t0250-gpt.sh \
+  t0280-gpt-corrupt.sh \
   t0300-dos-on-gpt.sh \
   t0400-loop-clobber-infloop.sh \
   t1000-mkpartfs.sh \
index 89ab818..3addcc2 100755 (executable)
@@ -89,7 +89,7 @@ test_expect_success \
 
 test_expect_success \
     'check for expected diagnostic' \
-    'echo "Error: partition table array CRC mismatch" > exp &&
+    'echo "Error: primary partition table array CRC mismatch" > exp &&
      compare exp err'
 
 test_done