Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Dec 2008 06:00:52 +0000 (UTC)
From:      Tim Kientzle <kientzle@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r185670 - head/lib/libarchive/test
Message-ID:  <200812060600.mB660qUW084605@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kientzle
Date: Sat Dec  6 06:00:52 2008
New Revision: 185670
URL: http://svn.freebsd.org/changeset/base/185670

Log:
  Style improvements.

Modified:
  head/lib/libarchive/test/test_read_format_cpio_bin_bz2.c

Modified: head/lib/libarchive/test/test_read_format_cpio_bin_bz2.c
==============================================================================
--- head/lib/libarchive/test/test_read_format_cpio_bin_bz2.c	Sat Dec  6 05:59:46 2008	(r185669)
+++ head/lib/libarchive/test/test_read_format_cpio_bin_bz2.c	Sat Dec  6 06:00:52 2008	(r185670)
@@ -37,10 +37,12 @@ DEFINE_TEST(test_read_format_cpio_bin_bz
 	struct archive_entry *ae;
 	struct archive *a;
 	assert((a = archive_read_new()) != NULL);
-	assert(0 == archive_read_support_compression_all(a));
-	assert(0 == archive_read_support_format_all(a));
-	assert(0 == archive_read_open_memory(a, archive, sizeof(archive)));
-	assert(0 == archive_read_next_header(a, &ae));
+	assertEqualIntA(a, ARCHIVE_OK,
+	    archive_read_support_compression_all(a));
+	assertEqualIntA(a, ARCHIVE_OK, archive_read_support_format_all(a));
+	assertEqualIntA(a, ARCHIVE_OK,
+	    archive_read_open_memory(a, archive, sizeof(archive)));
+	assertEqualIntA(a, ARCHIVE_OK, archive_read_next_header(a, &ae));
 	assert(archive_compression(a) == ARCHIVE_COMPRESSION_BZIP2);
 	assert(archive_format(a) == ARCHIVE_FORMAT_CPIO_BIN_LE);
 	assert(0 == archive_read_close(a));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812060600.mB660qUW084605>