Lines Matching defs:result
19 #include <isc/result.h>
27 isc_result_t result;
30 result = isc_test_begin(NULL, ISC_TRUE);
31 ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
34 result = isc_buffer_allocate(mctx, &b, 1024);
35 ATF_CHECK_EQ(result, ISC_R_SUCCESS);
42 result = isc_buffer_reserve(&b, 1024);
43 ATF_CHECK_EQ(result, ISC_R_SUCCESS);
52 result = isc_buffer_reserve(&b, 1025);
53 ATF_CHECK_EQ(result, ISC_R_SUCCESS);
62 result = isc_buffer_reserve(&b, 2000);
63 ATF_CHECK_EQ(result, ISC_R_SUCCESS);
72 result = isc_buffer_reserve(&b, 3000);
73 ATF_CHECK_EQ(result, ISC_R_SUCCESS);
84 result = isc_buffer_reserve(&b, UINT_MAX);
85 ATF_CHECK_EQ(result, ISC_R_NOMEMORY);
101 isc_result_t result;
104 result = isc_test_begin(NULL, ISC_TRUE);
105 ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
108 result = isc_buffer_allocate(mctx, &b, 1024);
109 ATF_CHECK_EQ(result, ISC_R_SUCCESS);
113 result = isc_buffer_reallocate(&b, 512);
114 ATF_CHECK_EQ(result, ISC_R_NOSPACE);
119 result = isc_buffer_reallocate(&b, 1536);
120 ATF_CHECK_EQ(result, ISC_R_SUCCESS);
136 isc_result_t result;
141 result = isc_test_begin(NULL, ISC_TRUE);
142 ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
145 result = isc_buffer_allocate(mctx, &b, last_length);
146 ATF_CHECK_EQ(result, ISC_R_SUCCESS);