Lines Matching refs:rc

32 	int rc;  in ZTEST()  local
40 rc = img_mgmt_client_upload_init(&img_client, TEST_IMAGE_SIZE, TEST_IMAGE_NUM, image_hash); in ZTEST()
41 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
43 rc = img_mgmt_client_upload(&img_client, image_dummy, 1024, &response); in ZTEST()
44 zassert_equal(MGMT_ERR_ETIMEOUT, rc, "Expected to receive %d response %d", in ZTEST()
45 MGMT_ERR_ETIMEOUT, rc); in ZTEST()
48 rc = img_mgmt_client_upload_init(&img_client, TEST_IMAGE_SIZE, TEST_IMAGE_NUM, image_hash); in ZTEST()
49 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
50 rc = img_mgmt_client_upload_init(&img_client, TEST_IMAGE_SIZE, TEST_IMAGE_NUM, image_hash); in ZTEST()
51 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
53 rc = img_mgmt_client_upload(&img_client, image_dummy, 1024, &response); in ZTEST()
54 zassert_equal(MGMT_ERR_ETIMEOUT, rc, "Expected to receive %d response %d", in ZTEST()
55 MGMT_ERR_ETIMEOUT, rc); in ZTEST()
63 rc = img_mgmt_client_upload(&img_client, image_dummy, 1024, &response); in ZTEST()
64 zassert_equal(MGMT_ERR_EINVAL, rc, "Expected to receive %d response %d", MGMT_ERR_EINVAL, in ZTEST()
65 rc); in ZTEST()
68 rc = img_mgmt_client_upload_init(&img_client, TEST_IMAGE_SIZE, TEST_IMAGE_NUM, image_hash); in ZTEST()
69 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d\n", MGMT_ERR_EOK, rc); in ZTEST()
74 rc = img_mgmt_client_upload(&img_client, image_dummy, 1024, &response); in ZTEST()
75 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
82 rc = img_mgmt_client_upload(&img_client, image_dummy, 1024, &response); in ZTEST()
83 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
91 rc = img_mgmt_client_upload_init(&img_client, TEST_IMAGE_SIZE, TEST_IMAGE_NUM, NULL); in ZTEST()
92 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
94 rc = img_mgmt_client_upload(&img_client, image_dummy, 1024, &response); in ZTEST()
95 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
102 rc = img_mgmt_client_upload(&img_client, image_dummy, 1024, &response); in ZTEST()
103 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
113 int rc; in ZTEST() local
118 rc = img_mgmt_client_erase(&img_client, TEST_SLOT_NUMBER); in ZTEST()
119 zassert_equal(MGMT_ERR_ETIMEOUT, rc, "Expected to receive %d response %d", in ZTEST()
120 MGMT_ERR_ETIMEOUT, rc); in ZTEST()
124 rc = img_mgmt_client_erase(&img_client, TEST_SLOT_NUMBER); in ZTEST()
125 zassert_equal(MGMT_ERR_EINVAL, rc, "Expected to receive %d response %d", MGMT_ERR_EINVAL, in ZTEST()
126 rc); in ZTEST()
129 rc = img_mgmt_client_erase(&img_client, TEST_SLOT_NUMBER); in ZTEST()
130 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
135 int rc; in ZTEST() local
140 rc = img_mgmt_client_state_read(&img_client, &res_buf); in ZTEST()
141 zassert_equal(MGMT_ERR_ETIMEOUT, rc, "Expected to receive %d response %d", in ZTEST()
142 MGMT_ERR_ETIMEOUT, rc); in ZTEST()
145 rc = img_mgmt_client_state_read(&img_client, &res_buf); in ZTEST()
146 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
150 rc = img_mgmt_client_state_read(&img_client, &res_buf); in ZTEST()
151 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
158 int rc; in ZTEST() local
166 rc = img_mgmt_client_state_write(&img_client, NULL, false, &res_buf); in ZTEST()
167 zassert_equal(MGMT_ERR_ETIMEOUT, rc, "Expected to receive %d response %d", in ZTEST()
168 MGMT_ERR_ETIMEOUT, rc); in ZTEST()
173 rc = img_mgmt_client_state_read(&img_client, &res_buf); in ZTEST()
174 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
185 rc = img_mgmt_client_state_write(&img_client, hash, false, &res_buf); in ZTEST()
186 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
194 rc = img_mgmt_client_state_write(&img_client, NULL, true, &res_buf); in ZTEST()
195 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
204 int rc; in ZTEST() local
211 rc = os_mgmt_client_reset(&os_client); in ZTEST()
212 zassert_equal(MGMT_ERR_ETIMEOUT, rc, "Expected to receive %d response %d", in ZTEST()
213 MGMT_ERR_ETIMEOUT, rc); in ZTEST()
216 rc = os_mgmt_client_reset(&os_client); in ZTEST()
217 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
222 int rc; in ZTEST() local
228 rc = os_mgmt_client_echo(&os_client, os_echo_test, sizeof(os_echo_test)); in ZTEST()
229 zassert_equal(MGMT_ERR_ETIMEOUT, rc, "Expected to receive %d response %d", in ZTEST()
230 MGMT_ERR_ETIMEOUT, rc); in ZTEST()
233 rc = os_mgmt_client_echo(&os_client, os_echo_test, sizeof(os_echo_test)); in ZTEST()
234 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()