Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jun 2018 22:22:06 +0000 (UTC)
From:      Mariusz Zaborski <oshogbo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335345 - head/lib/libnv/tests
Message-ID:  <201806182222.w5IMM6h5020121@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: oshogbo
Date: Mon Jun 18 22:22:06 2018
New Revision: 335345
URL: https://svnweb.freebsd.org/changeset/base/335345

Log:
  libnv: add regression test for r335344.

Modified:
  head/lib/libnv/tests/nv_array_tests.cc

Modified: head/lib/libnv/tests/nv_array_tests.cc
==============================================================================
--- head/lib/libnv/tests/nv_array_tests.cc	Mon Jun 18 22:21:28 2018	(r335344)
+++ head/lib/libnv/tests/nv_array_tests.cc	Mon Jun 18 22:22:06 2018	(r335345)
@@ -312,6 +312,7 @@ ATF_TEST_CASE_BODY(nvlist_nvlist_array__basic)
 	for (i = 0; i < num_items; i++) {
 		ATF_REQUIRE_EQ(nvlist_error(result[i]), 0);
 		ATF_REQUIRE(nvlist_get_array_next(result[i]) == NULL);
+		ATF_REQUIRE(nvlist_get_parent(result[i], NULL) == NULL);
 		ATF_REQUIRE(nvlist_get_array_next(const_result[i]) == NULL);
 		ATF_REQUIRE(!nvlist_in_array(const_result[i]));
 	}



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