Lines Matching refs:const_result
49 const bool *const_result; in ATF_TEST_CASE_BODY() local
71 const_result = nvlist_get_bool_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
73 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
75 ATF_REQUIRE_EQ(const_result[i], testbool[i]); in ATF_TEST_CASE_BODY()
79 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
94 const char * const *const_result; in ATF_TEST_CASE_BODY() local
115 const_result = nvlist_get_string_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
117 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
121 ATF_REQUIRE(strcmp(const_result[i], in ATF_TEST_CASE_BODY()
124 ATF_REQUIRE(const_result[i] == string_arr[i]); in ATF_TEST_CASE_BODY()
153 const int *const_result; in ATF_TEST_CASE_BODY() local
176 const_result = nvlist_get_descriptor_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
178 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
181 ATF_REQUIRE(fd_is_valid(const_result[i])); in ATF_TEST_CASE_BODY()
183 ATF_REQUIRE(const_result[i] != const_result[i - 1]); in ATF_TEST_CASE_BODY()
192 ATF_REQUIRE(const_result[i] != const_result[i - 1]); in ATF_TEST_CASE_BODY()
210 const uint64_t *const_result; in ATF_TEST_CASE_BODY() local
231 const_result = nvlist_get_number_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
233 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
236 ATF_REQUIRE_EQ(const_result[i], number[i]); in ATF_TEST_CASE_BODY()
256 const nvlist_t * const *const_result; in ATF_TEST_CASE_BODY() local
285 const_result = nvlist_get_nvlist_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
287 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
291 ATF_REQUIRE_EQ(nvlist_error(const_result[i]), 0); in ATF_TEST_CASE_BODY()
293 ATF_REQUIRE(nvlist_get_array_next(const_result[i]) == in ATF_TEST_CASE_BODY()
294 const_result[i + 1]); in ATF_TEST_CASE_BODY()
296 ATF_REQUIRE(nvlist_get_array_next(const_result[i]) == in ATF_TEST_CASE_BODY()
299 ATF_REQUIRE(nvlist_get_parent(const_result[i], NULL) == nvl); in ATF_TEST_CASE_BODY()
300 ATF_REQUIRE(nvlist_in_array(const_result[i])); in ATF_TEST_CASE_BODY()
301 ATF_REQUIRE(nvlist_exists_string(const_result[i], in ATF_TEST_CASE_BODY()
303 ATF_REQUIRE(strcmp(nvlist_get_string(const_result[i], in ATF_TEST_CASE_BODY()
314 ATF_REQUIRE(nvlist_get_array_next(const_result[i]) == NULL); in ATF_TEST_CASE_BODY()
315 ATF_REQUIRE(!nvlist_in_array(const_result[i])); in ATF_TEST_CASE_BODY()
458 const bool *const_result; in ATF_TEST_CASE_BODY() local
481 const_result = nvlist_get_bool_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
483 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
484 ATF_REQUIRE(const_result == testbool); in ATF_TEST_CASE_BODY()
486 ATF_REQUIRE_EQ(const_result[i], (i % 2 == 0)); in ATF_TEST_CASE_BODY()
495 const char * const *const_result; in ATF_TEST_CASE_BODY() local
522 const_result = nvlist_get_string_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
524 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
525 ATF_REQUIRE((intptr_t)const_result == (intptr_t)teststr); in ATF_TEST_CASE_BODY()
527 ATF_REQUIRE_EQ(const_result[i][0], (char)('a' + i)); in ATF_TEST_CASE_BODY()
528 ATF_REQUIRE_EQ(const_result[i][1], '\0'); in ATF_TEST_CASE_BODY()
538 const nvlist * const *const_result; in ATF_TEST_CASE_BODY() local
563 const_result = nvlist_get_nvlist_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
565 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
566 ATF_REQUIRE((intptr_t)const_result == (intptr_t)testnv); in ATF_TEST_CASE_BODY()
568 ATF_REQUIRE_EQ(nvlist_error(const_result[i]), 0); in ATF_TEST_CASE_BODY()
569 ATF_REQUIRE(nvlist_empty(const_result[i])); in ATF_TEST_CASE_BODY()
571 ATF_REQUIRE(nvlist_get_array_next(const_result[i]) == in ATF_TEST_CASE_BODY()
572 const_result[i + 1]); in ATF_TEST_CASE_BODY()
574 ATF_REQUIRE(nvlist_get_array_next(const_result[i]) == in ATF_TEST_CASE_BODY()
577 ATF_REQUIRE(nvlist_get_parent(const_result[i], NULL) == nvl); in ATF_TEST_CASE_BODY()
578 ATF_REQUIRE(nvlist_in_array(const_result[i])); in ATF_TEST_CASE_BODY()
588 const uint64_t *const_result; in ATF_TEST_CASE_BODY() local
611 const_result = nvlist_get_number_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
613 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
614 ATF_REQUIRE(const_result == testnumber); in ATF_TEST_CASE_BODY()
616 ATF_REQUIRE_EQ(const_result[i], i); in ATF_TEST_CASE_BODY()
625 const int *const_result; in ATF_TEST_CASE_BODY() local
650 const_result = nvlist_get_descriptor_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
652 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
653 ATF_REQUIRE(const_result == testfd); in ATF_TEST_CASE_BODY()
655 ATF_REQUIRE(fd_is_valid(const_result[i])); in ATF_TEST_CASE_BODY()
914 const bool *const_result; in ATF_TEST_CASE_BODY() local
939 const_result = nvlist_get_bool_array(unpacked, key, &count); in ATF_TEST_CASE_BODY()
942 ATF_REQUIRE_EQ(testbool[i], const_result[i]); in ATF_TEST_CASE_BODY()
958 const uint64_t *const_result; in ATF_TEST_CASE_BODY() local
981 const_result = nvlist_get_number_array(unpacked, key, &count); in ATF_TEST_CASE_BODY()
984 ATF_REQUIRE_EQ(number[i], const_result[i]); in ATF_TEST_CASE_BODY()
999 const int *const_result; in ATF_TEST_CASE_BODY() local
1043 const_result = nvlist_get_descriptor_array(nvl, key, &num_items); in ATF_TEST_CASE_BODY()
1044 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
1047 ATF_REQUIRE(fd_is_valid(const_result[i])); in ATF_TEST_CASE_BODY()
1064 const char * const *const_result; in ATF_TEST_CASE_BODY() local
1087 const_result = nvlist_get_string_array(unpacked, key, &count); in ATF_TEST_CASE_BODY()
1090 ATF_REQUIRE_EQ(strcmp(string_arr[i], const_result[i]), 0); in ATF_TEST_CASE_BODY()
1102 const nvlist_t * const *const_result; in ATF_TEST_CASE_BODY() local
1138 const_result = nvlist_get_nvlist_array(unpacked, key, &num_items); in ATF_TEST_CASE_BODY()
1139 ATF_REQUIRE(const_result != NULL); in ATF_TEST_CASE_BODY()
1142 ATF_REQUIRE_EQ(nvlist_error(const_result[i]), 0); in ATF_TEST_CASE_BODY()
1144 ATF_REQUIRE(nvlist_get_array_next(const_result[i]) == in ATF_TEST_CASE_BODY()
1145 const_result[i + 1]); in ATF_TEST_CASE_BODY()
1147 ATF_REQUIRE(nvlist_get_array_next(const_result[i]) == in ATF_TEST_CASE_BODY()
1150 ATF_REQUIRE(nvlist_get_parent(const_result[i], NULL) == unpacked); in ATF_TEST_CASE_BODY()
1151 ATF_REQUIRE(nvlist_in_array(const_result[i])); in ATF_TEST_CASE_BODY()
1152 ATF_REQUIRE(nvlist_exists_string(const_result[i], in ATF_TEST_CASE_BODY()
1154 ATF_REQUIRE(strcmp(nvlist_get_string(const_result[i], in ATF_TEST_CASE_BODY()