From 8f2285b26d68bc35aa0a5d4a0a5c0d901cbb363c Mon Sep 17 00:00:00 2001 From: Mariusz Zaborski Date: Mon, 18 Jun 2018 22:22:06 +0000 Subject: [PATCH] libnv: add regression test for r335344. --- lib/libnv/tests/nv_array_tests.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libnv/tests/nv_array_tests.cc b/lib/libnv/tests/nv_array_tests.cc index f6ffcef83be7..ba404c709bf7 100644 --- a/lib/libnv/tests/nv_array_tests.cc +++ b/lib/libnv/tests/nv_array_tests.cc @@ -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])); }