]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fill in the correct signature checks for lzma and xz output.
authorTim Kientzle <kientzle@gmail.com>
Mon, 27 Apr 2009 05:27:13 +0000 (01:27 -0400)
committerTim Kientzle <kientzle@gmail.com>
Mon, 27 Apr 2009 05:27:13 +0000 (01:27 -0400)
SVN-Revision: 1059

cpio/test/test_option_J_upper.c
cpio/test/test_option_lzma.c

index 033687e1a95b6e1445df0fa64a4b3cbdb19739a6..15f26b328371b95ed19eae6af06c24f66cb48cad 100644 (file)
@@ -53,8 +53,8 @@ DEFINE_TEST(test_option_J_upper)
                assertEqualInt(r, 0);
                return;
        }
-       /* Check that the archive file has an lzma signature. */
+       /* Check that the archive file has an xz signature. */
        p = slurpfile(&s, "archive.out");
        assert(s > 2);
-       assertEqualMem(p, "xxxxx", 5);
+       assertEqualMem(p, "\3757zXZ", 5);
 }
index 4d2d6ef16ecdbc1a84361e3b75369406545f4c8b..132cba1da8a0b85b2f2afd387274c6cd54114f33 100644 (file)
@@ -56,5 +56,5 @@ DEFINE_TEST(test_option_lzma)
        /* Check that the archive file has an lzma signature. */
        p = slurpfile(&s, "archive.out");
        assert(s > 2);
-       assertEqualMem(p, "\x5b", 1);
+       assertEqualMem(p, "\x5d\00\00", 3);
 }