Lines Matching +full:key +full:- +full:down
3 /*-
74 #include <atf-c.h>
93 /* ch[1] should be constant from here on down. */ in ATF_TC_BODY()
99 e.key = strdup(ch); /* ptr to provided key is kept! */ in ATF_TC_BODY()
100 ATF_REQUIRE(e.key != NULL); in ATF_TC_BODY()
106 ATF_REQUIRE_STREQ(ep->key, ch); in ATF_TC_BODY()
107 ATF_REQUIRE_EQ((intptr_t)ep->data, i); in ATF_TC_BODY()
110 /* e.key should be constant from here on down. */ in ATF_TC_BODY()
111 e.key = ch; in ATF_TC_BODY()
120 ATF_REQUIRE_STREQ(ep->key, ch); in ATF_TC_BODY()
121 ATF_REQUIRE_EQ((intptr_t)ep->data, i); in ATF_TC_BODY()
145 e.key = __UNCONST("a"); in ATF_TC_BODY()
151 ATF_REQUIRE_STREQ(ep->key, "a"); in ATF_TC_BODY()
152 ATF_REQUIRE_EQ((intptr_t)ep->data, 0); in ATF_TC_BODY()
160 ATF_REQUIRE_STREQ(ep->key, "a"); in ATF_TC_BODY()
161 ATF_REQUIRE_EQ((intptr_t)ep->data, 0); in ATF_TC_BODY()
171 "Checks searching for non-existent entry"); in ATF_TC_HEAD()
180 e.key = __UNCONST("A"); in ATF_TC_BODY()
201 e.key = __UNCONST("a"); in ATF_TC_BODY()
207 ATF_REQUIRE_STREQ(ep->key, "a"); in ATF_TC_BODY()
208 ATF_REQUIRE_EQ((intptr_t)ep->data, 0); in ATF_TC_BODY()
210 e.key = __UNCONST("b"); in ATF_TC_BODY()
216 ATF_REQUIRE_STREQ(ep->key, "b"); in ATF_TC_BODY()
217 ATF_REQUIRE_EQ((intptr_t)ep->data, 1); in ATF_TC_BODY()
219 e.key = __UNCONST("a"); in ATF_TC_BODY()
222 e.key = __UNCONST("b"); in ATF_TC_BODY()
226 ATF_REQUIRE_STREQ(ep->key, "a"); in ATF_TC_BODY()
227 ATF_REQUIRE_EQ((intptr_t)ep->data, 0); in ATF_TC_BODY()
230 ATF_REQUIRE_STREQ(ep2->key, "b"); in ATF_TC_BODY()
231 ATF_REQUIRE_EQ((intptr_t)ep2->data, 1); in ATF_TC_BODY()
253 /* ch[1] should be constant from here on down. */ in ATF_TC_BODY()
259 e.key = strdup(ch); /* ptr to provided key is kept! */ in ATF_TC_BODY()
260 ATF_REQUIRE(e.key != NULL); in ATF_TC_BODY()
265 ATF_REQUIRE_STREQ(ep->key, ch); in ATF_TC_BODY()
266 ATF_REQUIRE_EQ((intptr_t)ep->data, i); in ATF_TC_BODY()
269 /* e.key should be constant from here on down. */ in ATF_TC_BODY()
270 e.key = ch; in ATF_TC_BODY()
278 ATF_REQUIRE_STREQ(ep->key, ch); in ATF_TC_BODY()
279 ATF_REQUIRE_EQ((intptr_t)ep->data, i); in ATF_TC_BODY()
306 e.key = __UNCONST("a"); in ATF_TC_BODY()
311 ATF_REQUIRE_STREQ(ep->key, "a"); in ATF_TC_BODY()
312 ATF_REQUIRE_EQ((intptr_t)ep->data, 0); in ATF_TC_BODY()
320 ATF_REQUIRE_STREQ(ep->key, "a"); in ATF_TC_BODY()
321 ATF_REQUIRE_EQ((intptr_t)ep->data, 0); in ATF_TC_BODY()
331 "Checks searching for non-existent entry"); in ATF_TC_HEAD()
344 e.key = __UNCONST("A"); in ATF_TC_BODY()
366 e.key = __UNCONST("a"); in ATF_TC_BODY()
371 ATF_REQUIRE_STREQ(ep->key, "a"); in ATF_TC_BODY()
372 ATF_REQUIRE_EQ((intptr_t)ep->data, 0); in ATF_TC_BODY()
374 e.key = __UNCONST("b"); in ATF_TC_BODY()
379 ATF_REQUIRE_STREQ(ep->key, "b"); in ATF_TC_BODY()
380 ATF_REQUIRE_EQ((intptr_t)ep->data, 1); in ATF_TC_BODY()
382 e.key = __UNCONST("a"); in ATF_TC_BODY()
385 e.key = __UNCONST("b"); in ATF_TC_BODY()
389 ATF_REQUIRE_STREQ(ep->key, "a"); in ATF_TC_BODY()
390 ATF_REQUIRE_EQ((intptr_t)ep->data, 0); in ATF_TC_BODY()
393 ATF_REQUIRE_STREQ(ep2->key, "b"); in ATF_TC_BODY()
394 ATF_REQUIRE_EQ((intptr_t)ep2->data, 1); in ATF_TC_BODY()