Lines Matching refs:const_result

51 	const bool *const_result;  in ATF_TEST_CASE_BODY()  local
73 const_result = nvlist_get_bool_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
75 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
77 ATF_REQUIRE_EQ(const_result[i], testbool[i]); in ATF_TEST_CASE_BODY()
81 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
96 const char * const *const_result; in ATF_TEST_CASE_BODY() local
117 const_result = nvlist_get_string_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
119 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
123 ATF_REQUIRE(strcmp(const_result[i], in ATF_TEST_CASE_BODY()
126 ATF_REQUIRE(const_result[i] == string_arr[i]); in ATF_TEST_CASE_BODY()
155 const int *const_result; in ATF_TEST_CASE_BODY() local
178 const_result = nvlist_get_descriptor_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
180 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
183 ATF_REQUIRE(fd_is_valid(const_result[i])); in ATF_TEST_CASE_BODY()
185 ATF_REQUIRE(const_result[i] != const_result[i - 1]); in ATF_TEST_CASE_BODY()
194 ATF_REQUIRE(const_result[i] != const_result[i - 1]); in ATF_TEST_CASE_BODY()
212 const uint64_t *const_result; in ATF_TEST_CASE_BODY() local
233 const_result = nvlist_get_number_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
235 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
238 ATF_REQUIRE_EQ(const_result[i], number[i]); in ATF_TEST_CASE_BODY()
258 const nvlist_t * const *const_result; in ATF_TEST_CASE_BODY() local
287 const_result = nvlist_get_nvlist_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
289 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
293 ATF_REQUIRE_EQ(nvlist_error(const_result[i]), 0); in ATF_TEST_CASE_BODY()
295 ATF_REQUIRE(nvlist_get_array_next(const_result[i]) == in ATF_TEST_CASE_BODY()
296 const_result[i + 1]); in ATF_TEST_CASE_BODY()
298 ATF_REQUIRE(nvlist_get_array_next(const_result[i]) == in ATF_TEST_CASE_BODY()
301 ATF_REQUIRE(nvlist_get_parent(const_result[i], NULL) == nvl); in ATF_TEST_CASE_BODY()
302 ATF_REQUIRE(nvlist_in_array(const_result[i])); in ATF_TEST_CASE_BODY()
303 ATF_REQUIRE(nvlist_exists_string(const_result[i], in ATF_TEST_CASE_BODY()
305 ATF_REQUIRE(strcmp(nvlist_get_string(const_result[i], in ATF_TEST_CASE_BODY()
316 ATF_REQUIRE(nvlist_get_array_next(const_result[i]) == NULL); in ATF_TEST_CASE_BODY()
317 ATF_REQUIRE(!nvlist_in_array(const_result[i])); in ATF_TEST_CASE_BODY()
460 const bool *const_result; in ATF_TEST_CASE_BODY() local
483 const_result = nvlist_get_bool_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
485 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
486 ATF_REQUIRE(const_result == testbool); in ATF_TEST_CASE_BODY()
488 ATF_REQUIRE_EQ(const_result[i], (i % 2 == 0)); in ATF_TEST_CASE_BODY()
497 const char * const *const_result; in ATF_TEST_CASE_BODY() local
524 const_result = nvlist_get_string_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
526 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
527 ATF_REQUIRE((intptr_t)const_result == (intptr_t)teststr); in ATF_TEST_CASE_BODY()
529 ATF_REQUIRE_EQ(const_result[i][0], (char)('a' + i)); in ATF_TEST_CASE_BODY()
530 ATF_REQUIRE_EQ(const_result[i][1], '\0'); in ATF_TEST_CASE_BODY()
540 const nvlist * const *const_result; in ATF_TEST_CASE_BODY() local
565 const_result = nvlist_get_nvlist_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
567 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
568 ATF_REQUIRE((intptr_t)const_result == (intptr_t)testnv); in ATF_TEST_CASE_BODY()
570 ATF_REQUIRE_EQ(nvlist_error(const_result[i]), 0); in ATF_TEST_CASE_BODY()
571 ATF_REQUIRE(nvlist_empty(const_result[i])); in ATF_TEST_CASE_BODY()
573 ATF_REQUIRE(nvlist_get_array_next(const_result[i]) == in ATF_TEST_CASE_BODY()
574 const_result[i + 1]); in ATF_TEST_CASE_BODY()
576 ATF_REQUIRE(nvlist_get_array_next(const_result[i]) == in ATF_TEST_CASE_BODY()
579 ATF_REQUIRE(nvlist_get_parent(const_result[i], NULL) == nvl); in ATF_TEST_CASE_BODY()
580 ATF_REQUIRE(nvlist_in_array(const_result[i])); in ATF_TEST_CASE_BODY()
590 const uint64_t *const_result; in ATF_TEST_CASE_BODY() local
613 const_result = nvlist_get_number_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
615 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
616 ATF_REQUIRE(const_result == testnumber); in ATF_TEST_CASE_BODY()
618 ATF_REQUIRE_EQ(const_result[i], i); in ATF_TEST_CASE_BODY()
627 const int *const_result; in ATF_TEST_CASE_BODY() local
652 const_result = nvlist_get_descriptor_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
654 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
655 ATF_REQUIRE(const_result == testfd); in ATF_TEST_CASE_BODY()
657 ATF_REQUIRE(fd_is_valid(const_result[i])); in ATF_TEST_CASE_BODY()
916 const bool *const_result; in ATF_TEST_CASE_BODY() local
941 const_result = nvlist_get_bool_array(unpacked, key, &count); in ATF_TEST_CASE_BODY()
944 ATF_REQUIRE_EQ(testbool[i], const_result[i]); in ATF_TEST_CASE_BODY()
960 const uint64_t *const_result; in ATF_TEST_CASE_BODY() local
983 const_result = nvlist_get_number_array(unpacked, key, &count); in ATF_TEST_CASE_BODY()
986 ATF_REQUIRE_EQ(number[i], const_result[i]); in ATF_TEST_CASE_BODY()
1001 const int *const_result; in ATF_TEST_CASE_BODY() local
1045 const_result = nvlist_get_descriptor_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
1046 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
1049 ATF_REQUIRE(fd_is_valid(const_result[i])); in ATF_TEST_CASE_BODY()
1066 const char * const *const_result; in ATF_TEST_CASE_BODY() local
1089 const_result = nvlist_get_string_array(unpacked, key, &count); in ATF_TEST_CASE_BODY()
1092 ATF_REQUIRE_EQ(strcmp(string_arr[i], const_result[i]), 0); in ATF_TEST_CASE_BODY()
1104 const nvlist_t * const *const_result; in ATF_TEST_CASE_BODY() local
1140 const_result = nvlist_get_nvlist_array(unpacked, key, &num_items); in ATF_TEST_CASE_BODY()
1141 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
1144 ATF_REQUIRE_EQ(nvlist_error(const_result[i]), 0); in ATF_TEST_CASE_BODY()
1146 ATF_REQUIRE(nvlist_get_array_next(const_result[i]) == in ATF_TEST_CASE_BODY()
1147 const_result[i + 1]); in ATF_TEST_CASE_BODY()
1149 ATF_REQUIRE(nvlist_get_array_next(const_result[i]) == in ATF_TEST_CASE_BODY()
1152 ATF_REQUIRE(nvlist_get_parent(const_result[i], NULL) == unpacked); in ATF_TEST_CASE_BODY()
1153 ATF_REQUIRE(nvlist_in_array(const_result[i])); in ATF_TEST_CASE_BODY()
1154 ATF_REQUIRE(nvlist_exists_string(const_result[i], in ATF_TEST_CASE_BODY()
1156 ATF_REQUIRE(strcmp(nvlist_get_string(const_result[i], in ATF_TEST_CASE_BODY()