Lines Matching refs:const_result
48 const bool *const_result; in ATF_TEST_CASE_BODY() local
70 const_result = nvlist_get_bool_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
72 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
74 ATF_REQUIRE_EQ(const_result[i], testbool[i]); in ATF_TEST_CASE_BODY()
78 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
93 const char * const *const_result; in ATF_TEST_CASE_BODY() local
114 const_result = nvlist_get_string_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
116 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
120 ATF_REQUIRE(strcmp(const_result[i], in ATF_TEST_CASE_BODY()
123 ATF_REQUIRE(const_result[i] == string_arr[i]); in ATF_TEST_CASE_BODY()
152 const int *const_result; in ATF_TEST_CASE_BODY() local
175 const_result = nvlist_get_descriptor_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
177 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
180 ATF_REQUIRE(fd_is_valid(const_result[i])); in ATF_TEST_CASE_BODY()
182 ATF_REQUIRE(const_result[i] != const_result[i - 1]); in ATF_TEST_CASE_BODY()
191 ATF_REQUIRE(const_result[i] != const_result[i - 1]); in ATF_TEST_CASE_BODY()
209 const uint64_t *const_result; in ATF_TEST_CASE_BODY() local
230 const_result = nvlist_get_number_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
232 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
235 ATF_REQUIRE_EQ(const_result[i], number[i]); in ATF_TEST_CASE_BODY()
255 const nvlist_t * const *const_result; in ATF_TEST_CASE_BODY() local
284 const_result = nvlist_get_nvlist_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
286 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
290 ATF_REQUIRE_EQ(nvlist_error(const_result[i]), 0); in ATF_TEST_CASE_BODY()
292 ATF_REQUIRE(nvlist_get_array_next(const_result[i]) == in ATF_TEST_CASE_BODY()
293 const_result[i + 1]); in ATF_TEST_CASE_BODY()
295 ATF_REQUIRE(nvlist_get_array_next(const_result[i]) == in ATF_TEST_CASE_BODY()
298 ATF_REQUIRE(nvlist_get_parent(const_result[i], NULL) == nvl); in ATF_TEST_CASE_BODY()
299 ATF_REQUIRE(nvlist_in_array(const_result[i])); in ATF_TEST_CASE_BODY()
300 ATF_REQUIRE(nvlist_exists_string(const_result[i], in ATF_TEST_CASE_BODY()
302 ATF_REQUIRE(strcmp(nvlist_get_string(const_result[i], in ATF_TEST_CASE_BODY()
313 ATF_REQUIRE(nvlist_get_array_next(const_result[i]) == NULL); in ATF_TEST_CASE_BODY()
314 ATF_REQUIRE(!nvlist_in_array(const_result[i])); in ATF_TEST_CASE_BODY()
457 const bool *const_result; in ATF_TEST_CASE_BODY() local
480 const_result = nvlist_get_bool_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
482 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
483 ATF_REQUIRE(const_result == testbool); in ATF_TEST_CASE_BODY()
485 ATF_REQUIRE_EQ(const_result[i], (i % 2 == 0)); in ATF_TEST_CASE_BODY()
494 const char * const *const_result; in ATF_TEST_CASE_BODY() local
521 const_result = nvlist_get_string_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
523 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
524 ATF_REQUIRE((intptr_t)const_result == (intptr_t)teststr); in ATF_TEST_CASE_BODY()
526 ATF_REQUIRE_EQ(const_result[i][0], (char)('a' + i)); in ATF_TEST_CASE_BODY()
527 ATF_REQUIRE_EQ(const_result[i][1], '\0'); in ATF_TEST_CASE_BODY()
537 const nvlist * const *const_result; in ATF_TEST_CASE_BODY() local
562 const_result = nvlist_get_nvlist_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
564 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
565 ATF_REQUIRE((intptr_t)const_result == (intptr_t)testnv); in ATF_TEST_CASE_BODY()
567 ATF_REQUIRE_EQ(nvlist_error(const_result[i]), 0); in ATF_TEST_CASE_BODY()
568 ATF_REQUIRE(nvlist_empty(const_result[i])); in ATF_TEST_CASE_BODY()
570 ATF_REQUIRE(nvlist_get_array_next(const_result[i]) == in ATF_TEST_CASE_BODY()
571 const_result[i + 1]); in ATF_TEST_CASE_BODY()
573 ATF_REQUIRE(nvlist_get_array_next(const_result[i]) == in ATF_TEST_CASE_BODY()
576 ATF_REQUIRE(nvlist_get_parent(const_result[i], NULL) == nvl); in ATF_TEST_CASE_BODY()
577 ATF_REQUIRE(nvlist_in_array(const_result[i])); in ATF_TEST_CASE_BODY()
587 const uint64_t *const_result; in ATF_TEST_CASE_BODY() local
610 const_result = nvlist_get_number_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
612 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
613 ATF_REQUIRE(const_result == testnumber); in ATF_TEST_CASE_BODY()
615 ATF_REQUIRE_EQ(const_result[i], i); in ATF_TEST_CASE_BODY()
624 const int *const_result; in ATF_TEST_CASE_BODY() local
649 const_result = nvlist_get_descriptor_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
651 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
652 ATF_REQUIRE(const_result == testfd); in ATF_TEST_CASE_BODY()
654 ATF_REQUIRE(fd_is_valid(const_result[i])); in ATF_TEST_CASE_BODY()
913 const bool *const_result; in ATF_TEST_CASE_BODY() local
938 const_result = nvlist_get_bool_array(unpacked, key, &count); in ATF_TEST_CASE_BODY()
941 ATF_REQUIRE_EQ(testbool[i], const_result[i]); in ATF_TEST_CASE_BODY()
957 const uint64_t *const_result; in ATF_TEST_CASE_BODY() local
980 const_result = nvlist_get_number_array(unpacked, key, &count); in ATF_TEST_CASE_BODY()
983 ATF_REQUIRE_EQ(number[i], const_result[i]); in ATF_TEST_CASE_BODY()
998 const int *const_result; in ATF_TEST_CASE_BODY() local
1042 const_result = nvlist_get_descriptor_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
1043 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
1046 ATF_REQUIRE(fd_is_valid(const_result[i])); in ATF_TEST_CASE_BODY()
1063 const char * const *const_result; in ATF_TEST_CASE_BODY() local
1086 const_result = nvlist_get_string_array(unpacked, key, &count); in ATF_TEST_CASE_BODY()
1089 ATF_REQUIRE_EQ(strcmp(string_arr[i], const_result[i]), 0); in ATF_TEST_CASE_BODY()
1101 const nvlist_t * const *const_result; in ATF_TEST_CASE_BODY() local
1137 const_result = nvlist_get_nvlist_array(unpacked, key, &num_items); in ATF_TEST_CASE_BODY()
1138 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
1141 ATF_REQUIRE_EQ(nvlist_error(const_result[i]), 0); in ATF_TEST_CASE_BODY()
1143 ATF_REQUIRE(nvlist_get_array_next(const_result[i]) == in ATF_TEST_CASE_BODY()
1144 const_result[i + 1]); in ATF_TEST_CASE_BODY()
1146 ATF_REQUIRE(nvlist_get_array_next(const_result[i]) == in ATF_TEST_CASE_BODY()
1149 ATF_REQUIRE(nvlist_get_parent(const_result[i], NULL) == unpacked); in ATF_TEST_CASE_BODY()
1150 ATF_REQUIRE(nvlist_in_array(const_result[i])); in ATF_TEST_CASE_BODY()
1151 ATF_REQUIRE(nvlist_exists_string(const_result[i], in ATF_TEST_CASE_BODY()
1153 ATF_REQUIRE(strcmp(nvlist_get_string(const_result[i], in ATF_TEST_CASE_BODY()