From: Tim Kientzle Date: Mon, 27 Apr 2009 05:27:13 +0000 (-0400) Subject: Fill in the correct signature checks for lzma and xz output. X-Git-Tag: v2.8.0~673 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea6d4d5fbee017a612ca45ea705360840ea551a7;p=thirdparty%2Flibarchive.git Fill in the correct signature checks for lzma and xz output. SVN-Revision: 1059 --- diff --git a/cpio/test/test_option_J_upper.c b/cpio/test/test_option_J_upper.c index 033687e1a..15f26b328 100644 --- a/cpio/test/test_option_J_upper.c +++ b/cpio/test/test_option_J_upper.c @@ -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); } diff --git a/cpio/test/test_option_lzma.c b/cpio/test/test_option_lzma.c index 4d2d6ef16..132cba1da 100644 --- a/cpio/test/test_option_lzma.c +++ b/cpio/test/test_option_lzma.c @@ -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); }