Lines Matching refs:testnvl
254 nvlist_t *testnvl[8]; in ATF_TEST_CASE_BODY() local
264 testnvl[i] = nvlist_create(0); in ATF_TEST_CASE_BODY()
265 ATF_REQUIRE(testnvl[i] != NULL); in ATF_TEST_CASE_BODY()
266 ATF_REQUIRE_EQ(nvlist_error(testnvl[i]), 0); in ATF_TEST_CASE_BODY()
267 nvlist_add_string(testnvl[i], "nvl/string", somestr[i]); in ATF_TEST_CASE_BODY()
268 ATF_REQUIRE_EQ(nvlist_error(testnvl[i]), 0); in ATF_TEST_CASE_BODY()
269 ATF_REQUIRE(nvlist_exists_string(testnvl[i], "nvl/string")); in ATF_TEST_CASE_BODY()
278 nvlist_add_nvlist_array(nvl, key, (const nvlist_t * const *)testnvl, 8); in ATF_TEST_CASE_BODY()
287 ATF_REQUIRE(num_items == nitems(testnvl)); in ATF_TEST_CASE_BODY()
323 nvlist_destroy(testnvl[i]); in ATF_TEST_CASE_BODY()
333 nvlist_t *testnvl[8]; in ATF_TEST_CASE_BODY() local
350 for (i = 0; i < nitems(testnvl); i++) { in ATF_TEST_CASE_BODY()
351 testnvl[i] = nvlist_create(0); in ATF_TEST_CASE_BODY()
352 ATF_REQUIRE(nvlist_error(testnvl[i]) == 0); in ATF_TEST_CASE_BODY()
353 nvlist_add_string(testnvl[i], "nvl/nvl/teststr", somestr[i]); in ATF_TEST_CASE_BODY()
354 ATF_REQUIRE(nvlist_error(testnvl[i]) == 0); in ATF_TEST_CASE_BODY()
384 (const nvlist_t * const *)testnvl, nitems(testnvl)); in ATF_TEST_CASE_BODY()
435 ATF_REQUIRE_EQ(num_items, nitems(testnvl)); in ATF_TEST_CASE_BODY()
446 for (i = 0; i < nitems(testnvl); i++) { in ATF_TEST_CASE_BODY()
447 nvlist_destroy(testnvl[i]); in ATF_TEST_CASE_BODY()
1100 nvlist_t *testnvl[8], *unpacked; in ATF_TEST_CASE_BODY() local
1109 for (i = 0; i < nitems(testnvl); i++) { in ATF_TEST_CASE_BODY()
1110 testnvl[i] = nvlist_create(0); in ATF_TEST_CASE_BODY()
1111 ATF_REQUIRE(testnvl[i] != NULL); in ATF_TEST_CASE_BODY()
1112 ATF_REQUIRE_EQ(nvlist_error(testnvl[i]), 0); in ATF_TEST_CASE_BODY()
1113 nvlist_add_string(testnvl[i], "nvl/string", somestr[i]); in ATF_TEST_CASE_BODY()
1114 ATF_REQUIRE_EQ(nvlist_error(testnvl[i]), 0); in ATF_TEST_CASE_BODY()
1115 ATF_REQUIRE(nvlist_exists_string(testnvl[i], "nvl/string")); in ATF_TEST_CASE_BODY()
1124 nvlist_add_nvlist_array(nvl, key, (const nvlist_t * const *)testnvl, 8); in ATF_TEST_CASE_BODY()
1139 ATF_REQUIRE_EQ(num_items, nitems(testnvl)); in ATF_TEST_CASE_BODY()
1157 for (i = 0; i < nitems(testnvl); i++) in ATF_TEST_CASE_BODY()
1158 nvlist_destroy(testnvl[i]); in ATF_TEST_CASE_BODY()
1168 nvlist_t *testnvl, *unpacked; in ATF_TEST_CASE_BODY() local
1175 testnvl = nvlist_create(0); in ATF_TEST_CASE_BODY()
1176 ATF_REQUIRE(testnvl != NULL); in ATF_TEST_CASE_BODY()
1177 ATF_REQUIRE_EQ(nvlist_error(testnvl), 0); in ATF_TEST_CASE_BODY()
1178 nvlist_add_string_array(testnvl, "nvl/string", somestr, in ATF_TEST_CASE_BODY()
1180 ATF_REQUIRE_EQ(nvlist_error(testnvl), 0); in ATF_TEST_CASE_BODY()
1182 packed = (uint8_t *)nvlist_pack(testnvl, &packed_size); in ATF_TEST_CASE_BODY()
1210 nvlist_destroy(testnvl); in ATF_TEST_CASE_BODY()