Symbol: test
bin/pax/pat_rep.c
517
char test;
bin/pax/pat_rep.c
544
if ((test = *string++) == '\0')
bin/pax/pat_rep.c
566
while ((test = *string) != '\0') {
bin/pax/pat_rep.c
578
if (((test = *string++) == '\0') ||
bin/pax/pat_rep.c
579
((pattern = range_match(pattern, test)) == NULL))
bin/pax/pat_rep.c
594
range_match(char *pattern, int test)
bin/pax/pat_rep.c
613
if ((c <= test) && (test <= c2))
bin/pax/pat_rep.c
616
} else if (c == test)
bin/sh/eval.c
323
evaltree(n->nif.test, EV_TESTED);
bin/sh/jobs.c
1976
if (!cmdtxt(n->nif.test, 0))
bin/sh/parser.c
377
n1->nif.test = list(0);
bin/sh/parser.c
385
n2->nif.test = list(0);
bin/sh/show.c
402
shtree(n->nif.test, -1, ilvl, 0, fp);
common/dist/zlib/examples/gun.c
548
local int gunzip(z_stream *strm, char *inname, char *outname, int test)
common/dist/zlib/examples/gun.c
565
if (test)
common/dist/zlib/examples/gun.c
633
int ret, len, test;
common/dist/zlib/examples/gun.c
652
test = 0;
common/dist/zlib/examples/gun.c
660
test = 1;
common/dist/zlib/examples/gun.c
666
if (test)
common/dist/zlib/examples/gun.c
692
ret = gunzip(&strm, *argv, outname, test);
common/dist/zlib/examples/gun.c
697
ret = gunzip(&strm, NULL, NULL, test);
crypto/dist/ipsec-tools/src/racoon/schedule.c
265
sched_new(*tick, test, tick);
dist/pf/sbin/pfctl/pfctl_parser.c
1645
append_addr(struct pfr_buffer *b, char *s, int test)
dist/pf/sbin/pfctl/pfctl_parser.c
1657
rv = append_addr_host(b, n, test, not);
dist/pf/sbin/pfctl/pfctl_parser.c
1673
append_addr_host(struct pfr_buffer *b, struct node_host *n, int test, int not)
dist/pf/sbin/pfctl/pfctl_parser.c
1697
if ((test && (not || addr.pfra_net != bits)) ||
games/backgammon/common_source/table.c
206
int test;
games/backgammon/common_source/table.c
208
test = (c == 'R');
games/backgammon/common_source/table.c
211
if (a == c || (test && a == '\n')) {
games/backgammon/common_source/table.c
285
if (!test || a != '\n')
games/backgammon/teachgammon/data.c
221
const struct situatn test[] = {
games/backgammon/teachgammon/tutor.c
102
if (test[i].mp[j] == test[i].mg[j])
games/backgammon/teachgammon/tutor.c
104
mm->p[j] = test[i].mp[j];
games/backgammon/teachgammon/tutor.c
105
mm->g[j] = test[i].mg[j];
games/backgammon/teachgammon/tutor.c
115
mm->D0 = test[i].new1;
games/backgammon/teachgammon/tutor.c
116
mm->D1 = test[i].new2;
games/backgammon/teachgammon/tutor.c
70
if (!brdeq(test[i].brd, board)) {
games/backgammon/teachgammon/tutor.c
92
wrtext(*test[i].com);
games/backgammon/teachgammon/tutor.c
97
mm->D0 = test[i].roll1;
games/backgammon/teachgammon/tutor.c
98
mm->D1 = test[i].roll2;
games/backgammon/teachgammon/tutor.h
64
extern const struct situatn test[];
games/gomoku/main.c
137
test = PROGRAM_VS_PROGRAM;
games/gomoku/main.c
147
test = USER_VS_USER;
games/gomoku/main.c
167
switch (test) {
games/gomoku/main.c
361
if (inputfp == NULL && test == NORMAL_PLAY)
games/gomoku/main.c
68
static enum testing_mode test = NORMAL_PLAY;
games/robots/auto.c
134
COORD test;
games/robots/auto.c
142
test.x = My_pos.x + xinc(*m);
games/robots/auto.c
143
test.y = My_pos.y + yinc(*m);
games/robots/auto.c
144
move(test.y, test.x);
games/robots/auto.c
148
for (x = test.x - 1; x <= test.x + 1; x++) {
games/robots/auto.c
149
for (y = test.y - 1; y <= test.y + 1; y++) {
lib/libc/gen/fnmatch.c
108
if (c <= test && test <= c2)
lib/libc/gen/fnmatch.c
110
} else if (c == test)
lib/libc/gen/fnmatch.c
121
char c, test;
lib/libc/gen/fnmatch.c
172
while ((test = FOLDCASE(*string, flags)) != EOS) {
lib/libc/gen/fnmatch.c
181
if (test == '/' && flags & FNM_PATHNAME)
lib/libc/gen/fnmatch.c
74
rangematch(const char *pattern, int test, int flags)
lib/libcrypt/hmac.c
248
struct test_s *test = tests;
lib/libcrypt/hmac.c
257
for (test = tests; test->key; test++) {
lib/libcrypt/hmac.c
258
key = test->key;
lib/libcrypt/hmac.c
260
data = test->data;
lib/libcrypt/hmac.c
266
if (strcmp(dbuf, test->expect) == 0)
lib/libcrypt/hmac.c
270
result = test->expect;
lib/libcrypt/hmac.c
274
test->key, test->data, dbuf, result);
lib/libedit/chared.c
286
int test;
lib/libedit/chared.c
289
test = (*wtest)(el, *p);
lib/libedit/chared.c
290
while ((p < high) && (*wtest)(el, *p) == test)
lib/libedit/chared.c
316
int test;
lib/libedit/chared.c
322
test = (*wtest)(el, *p);
lib/libedit/chared.c
323
while ((p >= low) && (*wtest)(el, *p) == test)
lib/libedit/chared.c
383
int test;
lib/libedit/chared.c
391
test = (*wtest)(el, *p);
lib/libedit/chared.c
392
while ((p < high) && (*wtest)(el, *p) == test)
regress/sys/arch/m68k/emuspeed/emuspeed.c
72
const struct test *t;
regress/sys/kern/getcwd/getcwd.c
110
static int test = 1;
regress/sys/kern/getcwd/getcwd.c
124
int ntest = test++;
regress/sys/uvm/pdsim/lirs.c
303
test();
regress/sys/uvm/pdsim/pdsim.c
292
test();
sbin/routed/radix.c
214
int test, b, rn_b;
sbin/routed/radix.c
266
test = (*cp ^ *cp2) & 0xff; /* find first bit that differs */
sbin/routed/radix.c
267
for (b = 7; (test >>= 1) > 0;)
sys/arch/amd64/include/frameasm.h
41
test %e ## temp_reg, %e ## temp_reg; \
sys/arch/amiga/dev/grf_cv.c
1301
int cr50, sr15, sr18, clock_mode, test;
sys/arch/amiga/dev/grf_cv.c
1322
test = RCrt(ba, CRT_ID_BACKWAD_COMP_1);
sys/arch/amiga/dev/grf_cv.c
1323
test &= ~0x10;
sys/arch/amiga/dev/grf_cv.c
1324
WCrt(ba, CRT_ID_BACKWAD_COMP_1, test);
sys/arch/amiga/dev/grf_cv.c
1514
test = RCrt(ba, CRT_ID_BACKWAD_COMP_2);
sys/arch/amiga/dev/grf_cv.c
1515
WCrt(ba, CRT_ID_BACKWAD_COMP_2, (test | 0x20));
sys/arch/amiga/dev/grf_cv.c
1524
test = RCrt(ba, CRT_ID_EXT_MISC_CNTL_2);
sys/arch/amiga/dev/grf_cv.c
1525
test &= 0xd;
sys/arch/amiga/dev/grf_cv.c
1566
WCrt(ba, CRT_ID_EXT_MISC_CNTL_2, clock_mode | test);
sys/arch/amiga/dev/grf_cv.c
1573
test = RCrt(ba, CRT_ID_EXT_SYS_CNTL_2);
sys/arch/amiga/dev/grf_cv.c
1574
test &= ~0x30;
sys/arch/amiga/dev/grf_cv.c
1576
test |= (HDE >> 4) & 0x30;
sys/arch/amiga/dev/grf_cv.c
1577
WCrt(ba, CRT_ID_EXT_SYS_CNTL_2, test);
sys/arch/amiga/dev/grf_cv.c
1678
test = RCrt(ba, CRT_ID_BACKWAD_COMP_1);
sys/arch/amiga/dev/grf_cv.c
1679
test |= 0x10;
sys/arch/amiga/dev/grf_cv.c
1680
WCrt(ba, CRT_ID_BACKWAD_COMP_1, test);
sys/arch/amiga/dev/grf_cv.c
1682
test = RCrt(ba, CRT_ID_END_VER_RETR);
sys/arch/amiga/dev/grf_cv.c
1683
test &= ~0x20;
sys/arch/amiga/dev/grf_cv.c
1684
WCrt(ba, CRT_ID_END_VER_RETR, test);
sys/arch/amiga/dev/grf_cv.c
1685
test &= ~0x10;
sys/arch/amiga/dev/grf_cv.c
1686
WCrt(ba, CRT_ID_END_VER_RETR, test);
sys/arch/amiga/dev/grf_cv.c
1687
test |= 0x10;
sys/arch/amiga/dev/grf_cv.c
1688
WCrt(ba, CRT_ID_END_VER_RETR, test);
sys/arch/amiga/dev/grf_cv.c
1935
int test;
sys/arch/amiga/dev/grf_cv.c
1944
test = RCrt(ba, CRT_ID_HWGC_MODE);
sys/arch/amiga/dev/grf_cv.c
1949
moveb %1@(0x3d5),%0" : "=d" (test) : "a" (ba));
sys/arch/amiga/dev/grf_cv.c
1959
test = RCrt(ba, CRT_ID_HWGC_MODE);
sys/arch/amiga/dev/grf_cv.c
1964
moveb %1@(0x3d5),%0" : "=d" (test) : "a" (ba));
sys/arch/amiga/dev/grf_cv.c
1977
test = HWC_OFF / HWC_SIZE;
sys/arch/amiga/dev/grf_cv.c
1978
WCrt (ba, CRT_ID_HWGC_START_AD_HI, (test >> 8));
sys/arch/amiga/dev/grf_cv.c
1979
WCrt (ba, CRT_ID_HWGC_START_AD_LO, (test & 0xff));
sys/arch/amiga/dev/grf_cv.c
356
unsigned char test;
sys/arch/amiga/dev/grf_cv.c
362
test = vgar(ba, GREG_INPUT_STATUS0_R);
sys/arch/amiga/dev/grf_cv.c
364
if (test & 0x80) { /* VR int pending */
sys/arch/amiga/dev/grf_cv.c
369
test = RCrt(ba, CRT_ID_END_VER_RETR);
sys/arch/amiga/dev/grf_cv.c
371
test &= ~0x10;
sys/arch/amiga/dev/grf_cv.c
372
WCrt(ba, CRT_ID_END_VER_RETR, test);
sys/arch/amiga/dev/grf_cv.c
390
test |= 0x10;
sys/arch/amiga/dev/grf_cv.c
391
WCrt(ba, CRT_ID_END_VER_RETR, test);
sys/arch/amiga/dev/grf_cv.c
636
unsigned char test;
sys/arch/amiga/dev/grf_cv.c
671
test = RCrt(ba, CRT_ID_SYSTEM_CONFIG);
sys/arch/amiga/dev/grf_cv.c
672
test = test | 0x01; /* enable enhanced register access */
sys/arch/amiga/dev/grf_cv.c
673
test = test & 0xEF; /* clear bit 4, 0 wait state */
sys/arch/amiga/dev/grf_cv.c
674
WCrt(ba, CRT_ID_SYSTEM_CONFIG, test);
sys/arch/amiga/dev/grf_cv.c
699
test = RSeq(ba, SEQ_ID_BUS_REQ_CNTL); /* Bus Request */
sys/arch/amiga/dev/grf_cv.c
702
test = test | 1 << 6;
sys/arch/amiga/dev/grf_cv.c
703
WSeq(ba, SEQ_ID_BUS_REQ_CNTL, test);
sys/arch/amiga/dev/grf_cv.c
707
test = RSeq(ba, SEQ_ID_CLKSYN_CNTL_2); /* Clksyn2 read */
sys/arch/amiga/dev/grf_cv.c
710
test = test & 0xDF;
sys/arch/amiga/dev/grf_cv.c
714
test |= 0x80;
sys/arch/amiga/dev/grf_cv.c
716
WSeq(ba, SEQ_ID_CLKSYN_CNTL_2, test);
sys/arch/amiga/dev/grf_cv.c
720
test = (clockpar & 0xFF00) >> 8;
sys/arch/amiga/dev/grf_cv.c
721
WSeq(ba, SEQ_ID_MCLK_HI, test); /* PLL N-Divider Value */
sys/arch/amiga/dev/grf_cv.c
723
test = clockpar & 0xFF;
sys/arch/amiga/dev/grf_cv.c
724
WSeq(ba, SEQ_ID_MCLK_LO, test); /* PLL M-Divider Value */
sys/arch/amiga/dev/grf_cv.c
727
WSeq(ba, SEQ_ID_MORE_MAGIC, test);
sys/arch/amiga/dev/grf_cv.c
734
test = RSeq (ba, SEQ_ID_CLKSYN_CNTL_2);
sys/arch/amiga/dev/grf_cv.c
735
test = test | 0x22;
sys/arch/amiga/dev/grf_cv.c
738
WSeq(ba,SEQ_ID_CLKSYN_CNTL_2, test);
sys/arch/amiga/dev/grf_cv.c
741
test = vgar(ba, 0x3cc);
sys/arch/amiga/dev/grf_cv.c
742
test = test | 0x0c;
sys/arch/amiga/dev/grf_cv.c
743
vgaw(ba, 0x3c2, test);
sys/arch/amiga/dev/grf_cv3d.c
1215
int cr50, cr66, sr15, sr18, clock_mode, test;
sys/arch/amiga/dev/grf_cv3d.c
1437
test = RCrt(ba, CRT_ID_BACKWAD_COMP_2);
sys/arch/amiga/dev/grf_cv3d.c
1438
WCrt(ba, CRT_ID_BACKWAD_COMP_2, (test | 0x20));
sys/arch/amiga/dev/grf_cv3d.c
1447
test = RCrt(ba, CRT_ID_EXT_MISC_CNTL_2);
sys/arch/amiga/dev/grf_cv3d.c
1448
test &= 0xd;
sys/arch/amiga/dev/grf_cv3d.c
1498
WCrt(ba, CRT_ID_EXT_MISC_CNTL_2, clock_mode | test);
sys/arch/amiga/dev/grf_cv3d.c
1505
test = RCrt(ba, CRT_ID_EXT_SYS_CNTL_2);
sys/arch/amiga/dev/grf_cv3d.c
1506
test &= ~0x30;
sys/arch/amiga/dev/grf_cv3d.c
1508
test |= (HDE >> 4) & 0x30;
sys/arch/amiga/dev/grf_cv3d.c
1509
WCrt(ba, CRT_ID_EXT_SYS_CNTL_2, test);
sys/arch/amiga/dev/grf_cv3d.c
1797
int test;
sys/arch/amiga/dev/grf_cv3d.c
1806
test = RCrt(ba, CRT_ID_HWGC_MODE);
sys/arch/amiga/dev/grf_cv3d.c
1811
moveb %1@(0x3d5),%0" : "=r" (test) : "a" (ba));
sys/arch/amiga/dev/grf_cv3d.c
1821
test = RCrt(ba, CRT_ID_HWGC_MODE);
sys/arch/amiga/dev/grf_cv3d.c
1826
moveb %1@(0x3d5),%0" : "=r" (test) : "a" (ba));
sys/arch/amiga/dev/grf_cv3d.c
1839
test = HWC_OFF / HWC_SIZE;
sys/arch/amiga/dev/grf_cv3d.c
1840
WCrt (ba, CRT_ID_HWGC_START_AD_HI, (test >> 8));
sys/arch/amiga/dev/grf_cv3d.c
1841
WCrt (ba, CRT_ID_HWGC_START_AD_LO, (test & 0xff));
sys/arch/amiga/dev/grf_cv3d.c
2049
int test;
sys/arch/amiga/dev/grf_cv3d.c
2052
test = RCrt(ba, CRT_ID_HWGC_MODE);
sys/arch/amiga/dev/grf_cv3d.c
2071
test = RCrt(ba, CRT_ID_HWGC_MODE);
sys/arch/amiga/dev/grf_cv3d.c
587
unsigned char test;
sys/arch/amiga/dev/grf_cv3d.c
638
test = RSeq(ba, SEQ_ID_BUS_REQ_CNTL); /* Bus Request */
sys/arch/amiga/dev/grf_cv3d.c
641
test = test | 0xC0;
sys/arch/amiga/dev/grf_cv3d.c
642
WSeq(ba, SEQ_ID_BUS_REQ_CNTL, test);
sys/arch/amiga/dev/grf_cv3d.c
652
test = RSeq(ba, SEQ_ID_CLKSYN_CNTL_2); /* Clksyn2 read */
sys/arch/amiga/dev/grf_cv3d.c
655
test = test & 0xDF;
sys/arch/amiga/dev/grf_cv3d.c
659
test |= 0x80;
sys/arch/amiga/dev/grf_cv3d.c
661
WSeq(ba, SEQ_ID_CLKSYN_CNTL_2, test);
sys/arch/amiga/dev/grf_cv3d.c
665
test = (clockpar & 0xFF00) >> 8;
sys/arch/amiga/dev/grf_cv3d.c
666
WSeq(ba, SEQ_ID_MCLK_HI, test); /* PLL N-Divider Value */
sys/arch/amiga/dev/grf_cv3d.c
668
test = clockpar & 0xFF;
sys/arch/amiga/dev/grf_cv3d.c
669
WSeq(ba, SEQ_ID_MCLK_LO, test); /* PLL M-Divider Value */
sys/arch/amiga/dev/grf_cv3d.c
676
test = RSeq (ba, SEQ_ID_CLKSYN_CNTL_2);
sys/arch/amiga/dev/grf_cv3d.c
677
test = test | 0x22;
sys/arch/amiga/dev/grf_cv3d.c
680
WSeq(ba,SEQ_ID_CLKSYN_CNTL_2, test);
sys/arch/amiga/dev/grf_cv3d.c
683
test = vgar(ba, 0x3cc);
sys/arch/amiga/dev/grf_cv3d.c
684
test = test | 0x0c;
sys/arch/amiga/dev/grf_cv3d.c
685
vgaw(ba, 0x3c2, test);
sys/arch/amiga/dev/grf_cv3dreg.h
564
int test;
sys/arch/amiga/dev/grf_cv3dreg.h
567
test = vgar32(ba, MR_SUBSYSTEM_STATUS_CNTL);
sys/arch/amiga/dev/grf_cv3dreg.h
569
} while (!(test & (1 << 13)));
sys/arch/amiga/dev/grf_cv3dreg.h
577
int test;
sys/arch/amiga/dev/grf_cv3dreg.h
580
test = vgar32(ba, MR_SUBSYSTEM_STATUS_CNTL);
sys/arch/amiga/dev/grf_cv3dreg.h
581
} while (test & 0x0f);
sys/arch/amiga/dev/grf_cvreg.h
375
int test;
sys/arch/amiga/dev/grf_cvreg.h
378
test = vgar16 (ba, ECR_GP_STAT);
sys/arch/amiga/dev/grf_cvreg.h
380
} while (test & (1 << 9));
sys/arch/amiga/dev/grf_cvreg.h
387
int test;
sys/arch/amiga/dev/grf_cvreg.h
390
test = vgar16 (ba, ECR_GP_STAT);
sys/arch/amiga/dev/grf_cvreg.h
391
} while (test & 0x0f);
sys/arch/amiga/stand/binpatch/binpatch.c
85
int test = 1;
sys/arch/hppa/dev/com_dino.c
137
regs->test = COM_DINO_CLK_SEL;
sys/arch/hppa/dev/com_dino.c
58
uint8_t test;
sys/arch/i386/include/frameasm.h
33
test reg, reg; \
sys/arch/newsmips/apbus/spifireg.h
65
volatile uint32_t test; /* RW: SPIFI test register */
sys/arch/riscv/include/pmap.h
239
const register_t test = satp | SATP_ASID;
sys/arch/riscv/include/pmap.h
241
csr_satp_write(test);
sys/arch/sun3/dev/dmareg.h
81
uint32_t test; /* DMA TEST (in longs) */
sys/arch/sun3/dev/dmareg.h
84
#define en_bar test
sys/arch/vax/boot/boot/if_ni.c
111
failtest(int reg, int mask, int test, char *str)
sys/arch/vax/boot/boot/if_ni.c
117
} while (((NI_RREG(reg) & mask) != test) && --i);
sys/arch/x68k/x68k/iodevice.h
154
char pade; unsigned char test;
sys/arch/x68k/x68k/iodevice.h
173
char pade; unsigned char test;
sys/dev/bi/if_ni.c
204
failtest(struct ni_softc *sc, int reg, int mask, int test, const char *str)
sys/dev/bi/if_ni.c
210
} while (((NI_RREG(reg) & mask) != test) && --i);
sys/dev/ic/bwi.c
4529
uint32_t test_lim, test;
sys/dev/ic/bwi.c
4662
test = 0;
sys/dev/ic/bwi.c
4701
test += PHY_READ(mac, 0x2d);
sys/dev/ic/bwi.c
4712
++test;
sys/dev/ic/bwi.c
4713
test >>= 8;
sys/dev/ic/bwi.c
4715
if (test > test_lim)
sys/dev/ic/icp_ioctl.c
227
sizeof(e->event_data.eu.test);
sys/dev/ic/icp_ioctl.h
140
} __packed test;
sys/dev/ic/sl811hs.c
2885
const char test[] = "E(w0) A(r0w1r1) A(r1w0r0) D(r0w1) D(r1w0) E(r0)";
sys/dev/ic/sl811hs.c
2892
ptr = test;
sys/dev/ic/sti.c
372
rom->test = (sti_test_t)O(STI_SELF_TEST);
sys/dev/ic/stireg.h
389
STI_DEP(test);
sys/dev/ic/stivar.h
58
sti_test_t test;
sys/dev/pci/bktr/bktr_reg.h
135
BTBYTE (test); /* 54, 55,56,57 */
sys/dev/pcmcia/if_ne_pcmcia.c
676
u_int8_t test;
sys/dev/pcmcia/if_ne_pcmcia.c
691
test = bus_space_read_1(nsc->sc_asict, nsc->sc_asich, 0x05);
sys/dev/pcmcia/if_ne_pcmcia.c
692
if (test != 0) {
sys/dev/std/ieee1212.c
182
test = offset + i + val + 1;
sys/dev/std/ieee1212.c
183
if ((test > *size) && (test > newlen)) {
sys/dev/std/ieee1212.c
184
newlen = test;
sys/dev/std/ieee1212.c
196
test--;
sys/dev/std/ieee1212.c
198
P1212_DIRENT_GET_LEN((ntohl(t[test])));
sys/dev/std/ieee1212.c
199
test++;
sys/dev/std/ieee1212.c
200
test += infolen;
sys/dev/std/ieee1212.c
201
if ((test > *size) && (test > newlen)) {
sys/dev/std/ieee1212.c
202
newlen = test;
sys/dev/std/ieee1212.c
210
test = offset + i + val + 1;
sys/dev/std/ieee1212.c
211
if ((test > *size) && (test > newlen)) {
sys/dev/std/ieee1212.c
212
newlen = test;
sys/dev/std/ieee1212.c
225
test--;
sys/dev/std/ieee1212.c
229
dirs[numdirs++] = test;
sys/dev/std/ieee1212.c
88
u_int32_t newlen, offset, test;
sys/net/radix.c
253
int test, b, rn_b;
sys/net/radix.c
290
test = (*cp ^ *cp2) & 0xff; /* find first bit that differs */
sys/net/radix.c
291
for (b = 7; (test >>= 1) > 0;)
sys/netinet/dccp_usrreq.c
1693
char test[2];
sys/netinet/dccp_usrreq.c
1740
test[0] = dp->pref_cc;
sys/netinet/dccp_usrreq.c
1741
dccp_add_feature(dp, DCCP_OPT_CHANGE_R, DCCP_FEATURE_CC, test, 1);
sys/netinet/dccp_usrreq.c
203
char test[2];
sys/netinet/dccp_usrreq.c
614
test[0] = DEFAULT_CCID;
sys/netinet/dccp_usrreq.c
615
test[1] = 3;
sys/netinet/dccp_usrreq.c
616
dccp_add_feature(dp, DCCP_OPT_CHANGE_R, DCCP_FEATURE_CC, test, 2);
sys/netinet/dccp_usrreq.c
620
dccp_add_option(dp, DCCP_OPT_DATA_DISCARD, test, 0);
sys/netinet6/dccp6_usrreq.c
153
char test[2];
sys/netinet6/dccp6_usrreq.c
208
test[0] = dp->pref_cc;
sys/netinet6/dccp6_usrreq.c
212
test[1] = 3;
sys/netinet6/dccp6_usrreq.c
214
test[1] = 2;
sys/netinet6/dccp6_usrreq.c
216
dccp_add_feature(dp, DCCP_OPT_CHANGE, DCCP_FEATURE_CC, test, 2);
sys/netinet6/dccp6_usrreq.c
217
dccp_add_feature(dp, DCCP_OPT_PREFER, DCCP_FEATURE_CC, test, 2);
sys/netinet6/dccp6_usrreq.c
220
dccp_add_feature(dp, DCCP_OPT_CHANGE_R, DCCP_FEATURE_CC, test, 1);
sys/sys/rndsource.h
81
rngtest_t *test; /* unused */
tests/fs/ffs/h_quota2_tests.c
350
unsigned int test;
tests/fs/ffs/h_quota2_tests.c
354
for (test = 0; test < sizeof(quota_tests) / sizeof(quota_tests[0]);
tests/fs/ffs/h_quota2_tests.c
355
test++)
tests/fs/ffs/h_quota2_tests.c
356
fprintf(stderr, "\t%d: %s\n", test, quota_tests[test].desc);
tests/fs/ffs/h_quota2_tests.c
382
u_long test;
tests/fs/ffs/h_quota2_tests.c
418
test = strtoul(argv[0], &end, 10);
tests/fs/ffs/h_quota2_tests.c
422
if (test > sizeof(quota_tests) / sizeof(quota_tests[0])) {
tests/fs/ffs/h_quota2_tests.c
446
error = quota_tests[test].func(topts);
tests/fs/ffs/h_quota2_tests.c
449
test, quota_tests[test].desc, error, strerror(error));
tests/fs/lfs/t_basic.c
30
void test(int);
tests/fs/lfs/t_basic.c
50
test(32);
tests/fs/lfs/t_basic.c
55
test(64);
tests/fs/lfs/t_resize.c
40
void test(int);
tests/fs/lfs/t_resize.c
60
test(32);
tests/fs/lfs/t_resize.c
65
test(64);
tests/fs/lfs/t_rfw.c
37
void test(int);
tests/fs/lfs/t_rfw.c
64
test(32);
tests/fs/lfs/t_rfw.c
69
test(64);
tests/include/sys/t_tree.c
110
f = test();
tests/kernel/t_cloexec.c
385
#define CLOEXEC_TEST(test, openvia, execvia, descr) \
tests/kernel/t_cloexec.c
386
ATF_TC(test); \
tests/kernel/t_cloexec.c
387
ATF_TC_HEAD(test, tc) \
tests/kernel/t_cloexec.c
391
ATF_TC_BODY(test, tc) \
tests/kernel/t_clofork.c
362
#define CLOFORK_TEST(test, openvia, execvia, descr) \
tests/kernel/t_clofork.c
363
ATF_TC(test); \
tests/kernel/t_clofork.c
364
ATF_TC_HEAD(test, tc) \
tests/kernel/t_clofork.c
368
ATF_TC_BODY(test, tc) \
tests/kernel/t_zombie.c
196
#define KILLABLE(test, sig) \
tests/kernel/t_zombie.c
197
ATF_TC(test); \
tests/kernel/t_zombie.c
198
ATF_TC_HEAD(test, tc) \
tests/kernel/t_zombie.c
205
ATF_TC_BODY(test, tc) \
tests/lib/csu/h_initfini_common.cxx
37
Test test;
tests/lib/libbluetooth/t_sdp_data.c
102
ATF_REQUIRE(sdp_get_data(&test, &value));
tests/lib/libbluetooth/t_sdp_data.c
105
ATF_REQUIRE(sdp_get_data(&test, &value));
tests/lib/libbluetooth/t_sdp_data.c
108
ATF_REQUIRE(sdp_get_data(&test, &value));
tests/lib/libbluetooth/t_sdp_data.c
111
ATF_REQUIRE(sdp_get_data(&test, &value));
tests/lib/libbluetooth/t_sdp_data.c
114
ATF_REQUIRE(sdp_get_data(&test, &value));
tests/lib/libbluetooth/t_sdp_data.c
117
ATF_REQUIRE(sdp_get_data(&test, &value));
tests/lib/libbluetooth/t_sdp_data.c
120
ATF_REQUIRE(sdp_get_data(&test, &value));
tests/lib/libbluetooth/t_sdp_data.c
123
ATF_REQUIRE(sdp_get_data(&test, &value));
tests/lib/libbluetooth/t_sdp_data.c
126
ATF_CHECK_EQ(test.next, test.end);
tests/lib/libbluetooth/t_sdp_data.c
50
sdp_data_t test = { data, data + sizeof(data) };
tests/lib/libbluetooth/t_sdp_data.c
53
ATF_REQUIRE(sdp_get_data(&test, &value));
tests/lib/libbluetooth/t_sdp_data.c
56
ATF_REQUIRE(sdp_get_data(&test, &value));
tests/lib/libbluetooth/t_sdp_data.c
59
ATF_CHECK_EQ(test.next, test.end);
tests/lib/libbluetooth/t_sdp_data.c
90
sdp_data_t test = { data, data + sizeof(data) };
tests/lib/libbluetooth/t_sdp_data.c
93
ATF_REQUIRE(sdp_get_data(&test, &value));
tests/lib/libbluetooth/t_sdp_data.c
96
ATF_REQUIRE(sdp_get_data(&test, &value));
tests/lib/libbluetooth/t_sdp_data.c
99
ATF_REQUIRE(sdp_get_data(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
105
sdp_data_t test = { data, data + sizeof(data) };
tests/lib/libbluetooth/t_sdp_get.c
113
ATF_REQUIRE(sdp_get_attr(&test, &attr, &value));
tests/lib/libbluetooth/t_sdp_get.c
118
ATF_REQUIRE_EQ(sdp_get_attr(&test, &attr, &value), false);
tests/lib/libbluetooth/t_sdp_get.c
119
ATF_REQUIRE(sdp_get_data(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
123
ATF_REQUIRE(sdp_get_attr(&test, &attr, &value));
tests/lib/libbluetooth/t_sdp_get.c
128
ATF_CHECK_EQ(test.next, test.end);
tests/lib/libbluetooth/t_sdp_get.c
152
sdp_data_t test = { data, data + sizeof(data) };
tests/lib/libbluetooth/t_sdp_get.c
184
ATF_REQUIRE(sdp_get_uuid(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
187
ATF_REQUIRE(sdp_get_uuid(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
190
ATF_REQUIRE_EQ(sdp_get_uuid(&test, &value), false); /* not uuid */
tests/lib/libbluetooth/t_sdp_get.c
191
ATF_REQUIRE(sdp_get_data(&test, &nil)); /* (skip) */
tests/lib/libbluetooth/t_sdp_get.c
194
ATF_REQUIRE(sdp_get_uuid(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
197
ATF_CHECK_EQ(test.next, test.end);
tests/lib/libbluetooth/t_sdp_get.c
215
sdp_data_t test = { data, data + sizeof(data) };
tests/lib/libbluetooth/t_sdp_get.c
223
ATF_REQUIRE(sdp_get_bool(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
226
ATF_REQUIRE_EQ(sdp_get_bool(&test, &value), false); /* not bool */
tests/lib/libbluetooth/t_sdp_get.c
227
ATF_REQUIRE(sdp_get_data(&test, &nil)); /* (skip) */
tests/lib/libbluetooth/t_sdp_get.c
230
ATF_REQUIRE(sdp_get_bool(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
233
ATF_CHECK_EQ(test.next, test.end);
tests/lib/libbluetooth/t_sdp_get.c
278
sdp_data_t test = { data, data + sizeof(data) };
tests/lib/libbluetooth/t_sdp_get.c
285
ATF_REQUIRE(sdp_get_uint(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
288
ATF_REQUIRE(sdp_get_uint(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
291
ATF_REQUIRE(sdp_get_uint(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
294
ATF_REQUIRE(sdp_get_uint(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
297
ATF_REQUIRE_EQ(sdp_get_uint(&test, &value), false); /* not uint */
tests/lib/libbluetooth/t_sdp_get.c
298
ATF_REQUIRE(sdp_get_data(&test, &nil)); /* (skip) */
tests/lib/libbluetooth/t_sdp_get.c
301
ATF_REQUIRE(sdp_get_uint(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
304
ATF_REQUIRE(sdp_get_uint(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
307
ATF_REQUIRE(sdp_get_uint(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
310
ATF_REQUIRE(sdp_get_uint(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
316
ATF_REQUIRE(sdp_get_uint(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
319
ATF_REQUIRE_EQ(sdp_get_uint(&test, &value), false); /* overflow */
tests/lib/libbluetooth/t_sdp_get.c
320
ATF_REQUIRE(sdp_get_data(&test, &nil)); /* (skip) */
tests/lib/libbluetooth/t_sdp_get.c
323
ATF_REQUIRE(sdp_get_uint(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
326
ATF_CHECK_EQ(test.next, test.end);
tests/lib/libbluetooth/t_sdp_get.c
388
sdp_data_t test = { data, data + sizeof(data) };
tests/lib/libbluetooth/t_sdp_get.c
395
ATF_REQUIRE(sdp_get_int(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
398
ATF_REQUIRE(sdp_get_int(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
401
ATF_REQUIRE(sdp_get_int(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
404
ATF_REQUIRE(sdp_get_int(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
407
ATF_REQUIRE(sdp_get_int(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
410
ATF_REQUIRE(sdp_get_int(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
413
ATF_REQUIRE_EQ(sdp_get_int(&test, &value), false); /* not int */
tests/lib/libbluetooth/t_sdp_get.c
414
ATF_REQUIRE(sdp_get_data(&test, &nil)); /* (skip) */
tests/lib/libbluetooth/t_sdp_get.c
417
ATF_REQUIRE(sdp_get_int(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
420
ATF_REQUIRE(sdp_get_int(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
423
ATF_REQUIRE(sdp_get_int(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
426
ATF_REQUIRE(sdp_get_int(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
429
ATF_REQUIRE(sdp_get_int(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
432
ATF_REQUIRE(sdp_get_int(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
438
ATF_REQUIRE(sdp_get_int(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
441
ATF_REQUIRE(sdp_get_int(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
444
ATF_REQUIRE_EQ(sdp_get_int(&test, &value), false); /* overflow */
tests/lib/libbluetooth/t_sdp_get.c
445
ATF_REQUIRE(sdp_get_data(&test, &nil)); /* (skip) */
tests/lib/libbluetooth/t_sdp_get.c
448
ATF_REQUIRE(sdp_get_int(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
451
ATF_REQUIRE_EQ(sdp_get_int(&test, &value), false); /* underflow */
tests/lib/libbluetooth/t_sdp_get.c
452
ATF_REQUIRE(sdp_get_data(&test, &nil)); /* (skip) */
tests/lib/libbluetooth/t_sdp_get.c
455
ATF_CHECK_EQ(test.next, test.end);
tests/lib/libbluetooth/t_sdp_get.c
475
sdp_data_t test = { data, data + sizeof(data) };
tests/lib/libbluetooth/t_sdp_get.c
482
ATF_REQUIRE(sdp_get_seq(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
485
ATF_REQUIRE_EQ(sdp_get_seq(&test, &value), false); /* not seq */
tests/lib/libbluetooth/t_sdp_get.c
486
ATF_REQUIRE(sdp_get_data(&test, &value)); /* (skip) */
tests/lib/libbluetooth/t_sdp_get.c
489
ATF_REQUIRE(sdp_get_seq(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
492
ATF_REQUIRE(sdp_get_seq(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
495
ATF_CHECK_EQ(test.next, test.end);
tests/lib/libbluetooth/t_sdp_get.c
515
sdp_data_t test = { data, data + sizeof(data) };
tests/lib/libbluetooth/t_sdp_get.c
522
ATF_REQUIRE(sdp_get_alt(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
525
ATF_REQUIRE_EQ(sdp_get_alt(&test, &value), false); /* not alt */
tests/lib/libbluetooth/t_sdp_get.c
526
ATF_REQUIRE(sdp_get_data(&test, &value)); /* (skip) */
tests/lib/libbluetooth/t_sdp_get.c
529
ATF_REQUIRE(sdp_get_alt(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
532
ATF_REQUIRE(sdp_get_alt(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
535
ATF_CHECK_EQ(test.next, test.end);
tests/lib/libbluetooth/t_sdp_get.c
558
sdp_data_t test = { data, data + sizeof(data) };
tests/lib/libbluetooth/t_sdp_get.c
567
ATF_REQUIRE(sdp_get_str(&test, &str, &len));
tests/lib/libbluetooth/t_sdp_get.c
570
ATF_REQUIRE_EQ(sdp_get_str(&test, &str, &len), false); /* not str */
tests/lib/libbluetooth/t_sdp_get.c
571
ATF_REQUIRE(sdp_get_data(&test, &nil)); /* (skip) */
tests/lib/libbluetooth/t_sdp_get.c
574
ATF_REQUIRE(sdp_get_str(&test, &str, &len));
tests/lib/libbluetooth/t_sdp_get.c
577
ATF_REQUIRE(sdp_get_str(&test, &str, &len));
tests/lib/libbluetooth/t_sdp_get.c
58
sdp_data_t test = { data, data + sizeof(data) };
tests/lib/libbluetooth/t_sdp_get.c
580
ATF_CHECK_EQ(test.next, test.end);
tests/lib/libbluetooth/t_sdp_get.c
603
sdp_data_t test = { data, data + sizeof(data) };
tests/lib/libbluetooth/t_sdp_get.c
612
ATF_REQUIRE(sdp_get_url(&test, &url, &len));
tests/lib/libbluetooth/t_sdp_get.c
615
ATF_REQUIRE_EQ(sdp_get_url(&test, &url, &len), false); /* not url */
tests/lib/libbluetooth/t_sdp_get.c
616
ATF_REQUIRE(sdp_get_data(&test, &nil)); /* (skip) */
tests/lib/libbluetooth/t_sdp_get.c
619
ATF_REQUIRE(sdp_get_url(&test, &url, &len));
tests/lib/libbluetooth/t_sdp_get.c
622
ATF_REQUIRE(sdp_get_url(&test, &url, &len));
tests/lib/libbluetooth/t_sdp_get.c
625
ATF_CHECK_EQ(test.next, test.end);
tests/lib/libbluetooth/t_sdp_get.c
65
ATF_REQUIRE(sdp_get_data(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
69
ATF_REQUIRE(sdp_get_data(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
73
ATF_REQUIRE(sdp_get_data(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
79
ATF_REQUIRE(sdp_get_data(&test, &value));
tests/lib/libbluetooth/t_sdp_get.c
83
ATF_CHECK_EQ(test.next, test.end);
tests/lib/libbluetooth/t_sdp_match.c
58
sdp_data_t test = { data, data + sizeof(data) };
tests/lib/libbluetooth/t_sdp_match.c
65
ATF_REQUIRE_EQ(sdp_match_uuid16(&test, 0x1100), false); /* mismatch */
tests/lib/libbluetooth/t_sdp_match.c
66
ATF_REQUIRE(sdp_match_uuid16(&test, 0x1111));
tests/lib/libbluetooth/t_sdp_match.c
68
ATF_REQUIRE_EQ(sdp_match_uuid16(&test, 0x1234), false); /* not uuid */
tests/lib/libbluetooth/t_sdp_match.c
69
ATF_REQUIRE(sdp_get_data(&test, &nil)); /* (skip) */
tests/lib/libbluetooth/t_sdp_match.c
71
ATF_REQUIRE(sdp_match_uuid16(&test, 0x1234));
tests/lib/libbluetooth/t_sdp_match.c
73
ATF_REQUIRE(sdp_match_uuid16(&test, 0x3456));
tests/lib/libbluetooth/t_sdp_match.c
75
ATF_REQUIRE_EQ(sdp_match_uuid16(&test, 0x1234), false); /* mismatch */
tests/lib/libbluetooth/t_sdp_match.c
76
ATF_REQUIRE(sdp_match_uuid16(&test, 0x4321));
tests/lib/libbluetooth/t_sdp_match.c
78
ATF_CHECK_EQ(test.next, test.end);
tests/lib/libbluetooth/t_sdp_put.c
100
ATF_REQUIRE_EQ(test.end - test.next, sizeof(expect));
tests/lib/libbluetooth/t_sdp_put.c
101
ATF_CHECK(memcmp(expect, test.next, sizeof(expect)) == 0);
tests/lib/libbluetooth/t_sdp_put.c
115
sdp_data_t test = { buf, buf + sizeof(buf) };
tests/lib/libbluetooth/t_sdp_put.c
141
ATF_REQUIRE(sdp_put_uuid(&test, &u16));
tests/lib/libbluetooth/t_sdp_put.c
142
ATF_REQUIRE(sdp_put_uuid(&test, &u32));
tests/lib/libbluetooth/t_sdp_put.c
143
ATF_REQUIRE(sdp_put_uuid(&test, &u128));
tests/lib/libbluetooth/t_sdp_put.c
144
test.end = test.next;
tests/lib/libbluetooth/t_sdp_put.c
145
test.next = buf;
tests/lib/libbluetooth/t_sdp_put.c
158
ATF_REQUIRE_EQ(test.end - test.next, sizeof(expect));
tests/lib/libbluetooth/t_sdp_put.c
159
ATF_CHECK(memcmp(expect, test.next, sizeof(expect)) == 0);
tests/lib/libbluetooth/t_sdp_put.c
173
sdp_data_t test = { buf, buf + sizeof(buf) };
tests/lib/libbluetooth/t_sdp_put.c
175
ATF_REQUIRE(sdp_put_uuid16(&test, 0x4567));
tests/lib/libbluetooth/t_sdp_put.c
176
test.end = test.next;
tests/lib/libbluetooth/t_sdp_put.c
177
test.next = buf;
tests/lib/libbluetooth/t_sdp_put.c
183
ATF_REQUIRE_EQ(test.end - test.next, sizeof(expect));
tests/lib/libbluetooth/t_sdp_put.c
184
ATF_CHECK(memcmp(expect, test.next, sizeof(expect)) == 0);
tests/lib/libbluetooth/t_sdp_put.c
198
sdp_data_t test = { buf, buf + sizeof(buf) };
tests/lib/libbluetooth/t_sdp_put.c
200
ATF_REQUIRE(sdp_put_uuid32(&test, 0xabcdef00));
tests/lib/libbluetooth/t_sdp_put.c
201
test.end = test.next;
tests/lib/libbluetooth/t_sdp_put.c
202
test.next = buf;
tests/lib/libbluetooth/t_sdp_put.c
209
ATF_REQUIRE_EQ(test.end - test.next, sizeof(expect));
tests/lib/libbluetooth/t_sdp_put.c
210
ATF_CHECK(memcmp(expect, test.next, sizeof(expect)) == 0);
tests/lib/libbluetooth/t_sdp_put.c
224
sdp_data_t test = { buf, buf + sizeof(buf) };
tests/lib/libbluetooth/t_sdp_put.c
234
ATF_REQUIRE(sdp_put_uuid128(&test, &value));
tests/lib/libbluetooth/t_sdp_put.c
235
test.end = test.next;
tests/lib/libbluetooth/t_sdp_put.c
236
test.next = buf;
tests/lib/libbluetooth/t_sdp_put.c
246
ATF_REQUIRE_EQ(test.end - test.next, sizeof(expect));
tests/lib/libbluetooth/t_sdp_put.c
247
ATF_CHECK(memcmp(expect, test.next, sizeof(expect)) == 0);
tests/lib/libbluetooth/t_sdp_put.c
261
sdp_data_t test = { buf, buf + sizeof(buf) };
tests/lib/libbluetooth/t_sdp_put.c
263
ATF_REQUIRE(sdp_put_bool(&test, true));
tests/lib/libbluetooth/t_sdp_put.c
264
ATF_REQUIRE(sdp_put_bool(&test, false));
tests/lib/libbluetooth/t_sdp_put.c
265
test.end = test.next;
tests/lib/libbluetooth/t_sdp_put.c
266
test.next = buf;
tests/lib/libbluetooth/t_sdp_put.c
273
ATF_REQUIRE_EQ(test.end - test.next, sizeof(expect));
tests/lib/libbluetooth/t_sdp_put.c
274
ATF_CHECK(memcmp(expect, test.next, sizeof(expect)) == 0);
tests/lib/libbluetooth/t_sdp_put.c
288
sdp_data_t test = { buf, buf + sizeof(buf) };
tests/lib/libbluetooth/t_sdp_put.c
290
ATF_REQUIRE(sdp_put_uint(&test, (uintmax_t)0));
tests/lib/libbluetooth/t_sdp_put.c
291
ATF_REQUIRE(sdp_put_uint(&test, (uintmax_t)UINT8_MAX));
tests/lib/libbluetooth/t_sdp_put.c
292
ATF_REQUIRE(sdp_put_uint(&test, (uintmax_t)UINT8_MAX + 1));
tests/lib/libbluetooth/t_sdp_put.c
293
ATF_REQUIRE(sdp_put_uint(&test, (uintmax_t)UINT16_MAX));
tests/lib/libbluetooth/t_sdp_put.c
294
ATF_REQUIRE(sdp_put_uint(&test, (uintmax_t)UINT16_MAX + 1));
tests/lib/libbluetooth/t_sdp_put.c
295
ATF_REQUIRE(sdp_put_uint(&test, (uintmax_t)UINT32_MAX));
tests/lib/libbluetooth/t_sdp_put.c
296
ATF_REQUIRE(sdp_put_uint(&test, (uintmax_t)UINT32_MAX + 1));
tests/lib/libbluetooth/t_sdp_put.c
297
ATF_REQUIRE(sdp_put_uint(&test, (uintmax_t)UINT64_MAX));
tests/lib/libbluetooth/t_sdp_put.c
298
test.end = test.next;
tests/lib/libbluetooth/t_sdp_put.c
299
test.next = buf;
tests/lib/libbluetooth/t_sdp_put.c
318
ATF_REQUIRE_EQ(test.end - test.next, sizeof(expect));
tests/lib/libbluetooth/t_sdp_put.c
319
ATF_CHECK(memcmp(expect, test.next, sizeof(expect)) == 0);
tests/lib/libbluetooth/t_sdp_put.c
333
sdp_data_t test = { buf, buf + sizeof(buf) };
tests/lib/libbluetooth/t_sdp_put.c
335
ATF_REQUIRE(sdp_put_uint8(&test, (uint8_t)0));
tests/lib/libbluetooth/t_sdp_put.c
336
ATF_REQUIRE(sdp_put_uint8(&test, (uint8_t)UINT8_MAX));
tests/lib/libbluetooth/t_sdp_put.c
337
test.end = test.next;
tests/lib/libbluetooth/t_sdp_put.c
338
test.next = buf;
tests/lib/libbluetooth/t_sdp_put.c
345
ATF_REQUIRE_EQ(test.end - test.next, sizeof(expect));
tests/lib/libbluetooth/t_sdp_put.c
346
ATF_CHECK(memcmp(expect, test.next, sizeof(expect)) == 0);
tests/lib/libbluetooth/t_sdp_put.c
360
sdp_data_t test = { buf, buf + sizeof(buf) };
tests/lib/libbluetooth/t_sdp_put.c
362
ATF_REQUIRE(sdp_put_uint16(&test, (uint16_t)0));
tests/lib/libbluetooth/t_sdp_put.c
363
ATF_REQUIRE(sdp_put_uint16(&test, (uint16_t)UINT8_MAX));
tests/lib/libbluetooth/t_sdp_put.c
364
ATF_REQUIRE(sdp_put_uint16(&test, (uint16_t)UINT16_MAX));
tests/lib/libbluetooth/t_sdp_put.c
365
ATF_REQUIRE(sdp_put_uint16(&test, (uint16_t)0xabcd));
tests/lib/libbluetooth/t_sdp_put.c
366
test.end = test.next;
tests/lib/libbluetooth/t_sdp_put.c
367
test.next = buf;
tests/lib/libbluetooth/t_sdp_put.c
376
ATF_REQUIRE_EQ(test.end - test.next, sizeof(expect));
tests/lib/libbluetooth/t_sdp_put.c
377
ATF_CHECK(memcmp(expect, test.next, sizeof(expect)) == 0);
tests/lib/libbluetooth/t_sdp_put.c
391
sdp_data_t test = { buf, buf + sizeof(buf) };
tests/lib/libbluetooth/t_sdp_put.c
393
ATF_REQUIRE(sdp_put_uint32(&test, (uint32_t)0));
tests/lib/libbluetooth/t_sdp_put.c
394
ATF_REQUIRE(sdp_put_uint32(&test, (uint32_t)UINT8_MAX));
tests/lib/libbluetooth/t_sdp_put.c
395
ATF_REQUIRE(sdp_put_uint32(&test, (uint32_t)UINT16_MAX));
tests/lib/libbluetooth/t_sdp_put.c
396
ATF_REQUIRE(sdp_put_uint32(&test, (uint32_t)UINT32_MAX));
tests/lib/libbluetooth/t_sdp_put.c
397
ATF_REQUIRE(sdp_put_uint32(&test, (uint32_t)0xdeadbeef));
tests/lib/libbluetooth/t_sdp_put.c
398
test.end = test.next;
tests/lib/libbluetooth/t_sdp_put.c
399
test.next = buf;
tests/lib/libbluetooth/t_sdp_put.c
414
ATF_REQUIRE_EQ(test.end - test.next, sizeof(expect));
tests/lib/libbluetooth/t_sdp_put.c
415
ATF_CHECK(memcmp(expect, test.next, sizeof(expect)) == 0);
tests/lib/libbluetooth/t_sdp_put.c
429
sdp_data_t test = { buf, buf + sizeof(buf) };
tests/lib/libbluetooth/t_sdp_put.c
431
ATF_REQUIRE(sdp_put_uint64(&test, (uint64_t)0));
tests/lib/libbluetooth/t_sdp_put.c
432
ATF_REQUIRE(sdp_put_uint64(&test, (uint64_t)UINT8_MAX));
tests/lib/libbluetooth/t_sdp_put.c
433
ATF_REQUIRE(sdp_put_uint64(&test, (uint64_t)UINT16_MAX));
tests/lib/libbluetooth/t_sdp_put.c
434
ATF_REQUIRE(sdp_put_uint64(&test, (uint64_t)UINT32_MAX));
tests/lib/libbluetooth/t_sdp_put.c
435
ATF_REQUIRE(sdp_put_uint64(&test, (uint64_t)UINT64_MAX));
tests/lib/libbluetooth/t_sdp_put.c
436
ATF_REQUIRE(sdp_put_uint64(&test, (uint64_t)0xc0ffeecafec0ffee));
tests/lib/libbluetooth/t_sdp_put.c
437
test.end = test.next;
tests/lib/libbluetooth/t_sdp_put.c
438
test.next = buf;
tests/lib/libbluetooth/t_sdp_put.c
461
ATF_REQUIRE_EQ(test.end - test.next, sizeof(expect));
tests/lib/libbluetooth/t_sdp_put.c
462
ATF_CHECK(memcmp(expect, test.next, sizeof(expect)) == 0);
tests/lib/libbluetooth/t_sdp_put.c
476
sdp_data_t test = { buf, buf + sizeof(buf) };
tests/lib/libbluetooth/t_sdp_put.c
478
ATF_REQUIRE(sdp_put_int(&test, (intmax_t)0));
tests/lib/libbluetooth/t_sdp_put.c
479
ATF_REQUIRE(sdp_put_int(&test, (intmax_t)INT8_MIN));
tests/lib/libbluetooth/t_sdp_put.c
480
ATF_REQUIRE(sdp_put_int(&test, (intmax_t)INT8_MAX));
tests/lib/libbluetooth/t_sdp_put.c
481
ATF_REQUIRE(sdp_put_int(&test, (intmax_t)INT8_MIN - 1));
tests/lib/libbluetooth/t_sdp_put.c
482
ATF_REQUIRE(sdp_put_int(&test, (intmax_t)INT8_MAX + 1));
tests/lib/libbluetooth/t_sdp_put.c
483
ATF_REQUIRE(sdp_put_int(&test, (intmax_t)INT16_MIN));
tests/lib/libbluetooth/t_sdp_put.c
484
ATF_REQUIRE(sdp_put_int(&test, (intmax_t)INT16_MAX));
tests/lib/libbluetooth/t_sdp_put.c
485
ATF_REQUIRE(sdp_put_int(&test, (intmax_t)INT16_MIN - 1));
tests/lib/libbluetooth/t_sdp_put.c
486
ATF_REQUIRE(sdp_put_int(&test, (intmax_t)INT16_MAX + 1));
tests/lib/libbluetooth/t_sdp_put.c
487
ATF_REQUIRE(sdp_put_int(&test, (intmax_t)INT32_MIN));
tests/lib/libbluetooth/t_sdp_put.c
488
ATF_REQUIRE(sdp_put_int(&test, (intmax_t)INT32_MAX));
tests/lib/libbluetooth/t_sdp_put.c
489
ATF_REQUIRE(sdp_put_int(&test, (intmax_t)INT32_MIN - 1));
tests/lib/libbluetooth/t_sdp_put.c
49
sdp_data_t test = { buf, buf + sizeof(buf) };
tests/lib/libbluetooth/t_sdp_put.c
490
ATF_REQUIRE(sdp_put_int(&test, (intmax_t)INT32_MAX + 1));
tests/lib/libbluetooth/t_sdp_put.c
491
ATF_REQUIRE(sdp_put_int(&test, (intmax_t)INT64_MIN));
tests/lib/libbluetooth/t_sdp_put.c
492
ATF_REQUIRE(sdp_put_int(&test, (intmax_t)INT64_MAX));
tests/lib/libbluetooth/t_sdp_put.c
493
test.end = test.next;
tests/lib/libbluetooth/t_sdp_put.c
494
test.next = buf;
tests/lib/libbluetooth/t_sdp_put.c
526
ATF_REQUIRE_EQ(test.end - test.next, sizeof(expect));
tests/lib/libbluetooth/t_sdp_put.c
527
ATF_CHECK(memcmp(expect, test.next, sizeof(expect)) == 0);
tests/lib/libbluetooth/t_sdp_put.c
541
sdp_data_t test = { buf, buf + sizeof(buf) };
tests/lib/libbluetooth/t_sdp_put.c
543
ATF_REQUIRE(sdp_put_int8(&test, (int8_t)0));
tests/lib/libbluetooth/t_sdp_put.c
544
ATF_REQUIRE(sdp_put_int8(&test, (int8_t)INT8_MIN));
tests/lib/libbluetooth/t_sdp_put.c
545
ATF_REQUIRE(sdp_put_int8(&test, (int8_t)INT8_MAX));
tests/lib/libbluetooth/t_sdp_put.c
546
test.end = test.next;
tests/lib/libbluetooth/t_sdp_put.c
547
test.next = buf;
tests/lib/libbluetooth/t_sdp_put.c
555
ATF_REQUIRE_EQ(test.end - test.next, sizeof(expect));
tests/lib/libbluetooth/t_sdp_put.c
556
ATF_CHECK(memcmp(expect, test.next, sizeof(expect)) == 0);
tests/lib/libbluetooth/t_sdp_put.c
57
ATF_REQUIRE(sdp_put_data(&test, &value));
tests/lib/libbluetooth/t_sdp_put.c
570
sdp_data_t test = { buf, buf + sizeof(buf) };
tests/lib/libbluetooth/t_sdp_put.c
572
ATF_REQUIRE(sdp_put_int16(&test, (int16_t)0));
tests/lib/libbluetooth/t_sdp_put.c
573
ATF_REQUIRE(sdp_put_int16(&test, (int16_t)INT8_MIN));
tests/lib/libbluetooth/t_sdp_put.c
574
ATF_REQUIRE(sdp_put_int16(&test, (int16_t)INT8_MAX));
tests/lib/libbluetooth/t_sdp_put.c
575
ATF_REQUIRE(sdp_put_int16(&test, (int16_t)INT16_MIN));
tests/lib/libbluetooth/t_sdp_put.c
576
ATF_REQUIRE(sdp_put_int16(&test, (int16_t)INT16_MAX));
tests/lib/libbluetooth/t_sdp_put.c
577
test.end = test.next;
tests/lib/libbluetooth/t_sdp_put.c
578
test.next = buf;
tests/lib/libbluetooth/t_sdp_put.c
58
test.end = test.next;
tests/lib/libbluetooth/t_sdp_put.c
588
ATF_REQUIRE_EQ(test.end - test.next, sizeof(expect));
tests/lib/libbluetooth/t_sdp_put.c
589
ATF_CHECK(memcmp(expect, test.next, sizeof(expect)) == 0);
tests/lib/libbluetooth/t_sdp_put.c
59
test.next = buf;
tests/lib/libbluetooth/t_sdp_put.c
603
sdp_data_t test = { buf, buf + sizeof(buf) };
tests/lib/libbluetooth/t_sdp_put.c
605
ATF_REQUIRE(sdp_put_int32(&test, (int32_t)0));
tests/lib/libbluetooth/t_sdp_put.c
606
ATF_REQUIRE(sdp_put_int32(&test, (int32_t)INT8_MIN));
tests/lib/libbluetooth/t_sdp_put.c
607
ATF_REQUIRE(sdp_put_int32(&test, (int32_t)INT8_MAX));
tests/lib/libbluetooth/t_sdp_put.c
608
ATF_REQUIRE(sdp_put_int32(&test, (int32_t)INT16_MIN));
tests/lib/libbluetooth/t_sdp_put.c
609
ATF_REQUIRE(sdp_put_int32(&test, (int32_t)INT16_MAX));
tests/lib/libbluetooth/t_sdp_put.c
610
ATF_REQUIRE(sdp_put_int32(&test, (int32_t)INT32_MIN));
tests/lib/libbluetooth/t_sdp_put.c
611
ATF_REQUIRE(sdp_put_int32(&test, (int32_t)INT32_MAX));
tests/lib/libbluetooth/t_sdp_put.c
612
test.end = test.next;
tests/lib/libbluetooth/t_sdp_put.c
613
test.next = buf;
tests/lib/libbluetooth/t_sdp_put.c
632
ATF_REQUIRE_EQ(test.end - test.next, sizeof(expect));
tests/lib/libbluetooth/t_sdp_put.c
633
ATF_CHECK(memcmp(expect, test.next, sizeof(expect)) == 0);
tests/lib/libbluetooth/t_sdp_put.c
647
sdp_data_t test = { buf, buf + sizeof(buf) };
tests/lib/libbluetooth/t_sdp_put.c
649
ATF_REQUIRE(sdp_put_int64(&test, (int64_t)0));
tests/lib/libbluetooth/t_sdp_put.c
650
ATF_REQUIRE(sdp_put_int64(&test, (int64_t)INT8_MIN));
tests/lib/libbluetooth/t_sdp_put.c
651
ATF_REQUIRE(sdp_put_int64(&test, (int64_t)INT8_MAX));
tests/lib/libbluetooth/t_sdp_put.c
652
ATF_REQUIRE(sdp_put_int64(&test, (int64_t)INT16_MIN));
tests/lib/libbluetooth/t_sdp_put.c
653
ATF_REQUIRE(sdp_put_int64(&test, (int64_t)INT16_MAX));
tests/lib/libbluetooth/t_sdp_put.c
654
ATF_REQUIRE(sdp_put_int64(&test, (int64_t)INT32_MIN));
tests/lib/libbluetooth/t_sdp_put.c
655
ATF_REQUIRE(sdp_put_int64(&test, (int64_t)INT32_MAX));
tests/lib/libbluetooth/t_sdp_put.c
656
ATF_REQUIRE(sdp_put_int64(&test, (int64_t)INT64_MIN));
tests/lib/libbluetooth/t_sdp_put.c
657
ATF_REQUIRE(sdp_put_int64(&test, (int64_t)INT64_MAX));
tests/lib/libbluetooth/t_sdp_put.c
658
test.end = test.next;
tests/lib/libbluetooth/t_sdp_put.c
659
test.next = buf;
tests/lib/libbluetooth/t_sdp_put.c
67
ATF_REQUIRE_EQ(test.end - test.next, sizeof(expect));
tests/lib/libbluetooth/t_sdp_put.c
68
ATF_CHECK(memcmp(expect, test.next, sizeof(expect)) == 0);
tests/lib/libbluetooth/t_sdp_put.c
691
ATF_REQUIRE_EQ(test.end - test.next, sizeof(expect));
tests/lib/libbluetooth/t_sdp_put.c
692
ATF_CHECK(memcmp(expect, test.next, sizeof(expect)) == 0);
tests/lib/libbluetooth/t_sdp_put.c
706
sdp_data_t test = { buf, buf + sizeof(buf) };
tests/lib/libbluetooth/t_sdp_put.c
708
ATF_REQUIRE(sdp_put_seq(&test, (ssize_t)0));
tests/lib/libbluetooth/t_sdp_put.c
709
ATF_REQUIRE(sdp_put_seq(&test, (ssize_t)UINT8_MAX));
tests/lib/libbluetooth/t_sdp_put.c
710
ATF_REQUIRE(sdp_put_seq(&test, (ssize_t)UINT8_MAX + 1));
tests/lib/libbluetooth/t_sdp_put.c
711
ATF_REQUIRE(sdp_put_seq(&test, (ssize_t)-1));
tests/lib/libbluetooth/t_sdp_put.c
712
ATF_CHECK_EQ(sdp_put_seq(&test, (ssize_t)UINT16_MAX), false); /* no room */
tests/lib/libbluetooth/t_sdp_put.c
713
ATF_CHECK_EQ(sdp_put_seq(&test, (ssize_t)SSIZE_MAX), false); /* no room */
tests/lib/libbluetooth/t_sdp_put.c
714
test.end = test.next;
tests/lib/libbluetooth/t_sdp_put.c
715
test.next = buf;
tests/lib/libbluetooth/t_sdp_put.c
725
ATF_REQUIRE_EQ(test.end - test.next, sizeof(expect));
tests/lib/libbluetooth/t_sdp_put.c
726
ATF_CHECK(memcmp(expect, test.next, sizeof(expect)) == 0);
tests/lib/libbluetooth/t_sdp_put.c
740
sdp_data_t test = { buf, buf + sizeof(buf) };
tests/lib/libbluetooth/t_sdp_put.c
742
ATF_REQUIRE(sdp_put_alt(&test, (ssize_t)0));
tests/lib/libbluetooth/t_sdp_put.c
743
ATF_REQUIRE(sdp_put_alt(&test, (ssize_t)UINT8_MAX));
tests/lib/libbluetooth/t_sdp_put.c
744
ATF_REQUIRE(sdp_put_alt(&test, (ssize_t)UINT8_MAX + 1));
tests/lib/libbluetooth/t_sdp_put.c
745
ATF_REQUIRE(sdp_put_alt(&test, (ssize_t)-1));
tests/lib/libbluetooth/t_sdp_put.c
746
ATF_CHECK_EQ(sdp_put_alt(&test, (ssize_t)UINT16_MAX), false); /* no room */
tests/lib/libbluetooth/t_sdp_put.c
747
ATF_CHECK_EQ(sdp_put_alt(&test, (ssize_t)SSIZE_MAX), false); /* no room */
tests/lib/libbluetooth/t_sdp_put.c
748
test.end = test.next;
tests/lib/libbluetooth/t_sdp_put.c
749
test.next = buf;
tests/lib/libbluetooth/t_sdp_put.c
759
ATF_REQUIRE_EQ(test.end - test.next, sizeof(expect));
tests/lib/libbluetooth/t_sdp_put.c
760
ATF_CHECK(memcmp(expect, test.next, sizeof(expect)) == 0);
tests/lib/libbluetooth/t_sdp_put.c
774
sdp_data_t test = { buf, buf + sizeof(buf) };
tests/lib/libbluetooth/t_sdp_put.c
781
ATF_REQUIRE(sdp_put_str(&test, "Hello World!", 5));
tests/lib/libbluetooth/t_sdp_put.c
782
ATF_REQUIRE(sdp_put_str(&test, "Hello\0World", 11));
tests/lib/libbluetooth/t_sdp_put.c
783
ATF_REQUIRE(sdp_put_str(&test, "Hello World!", -1));
tests/lib/libbluetooth/t_sdp_put.c
784
ATF_REQUIRE(sdp_put_str(&test, "Hello\0World", -1));
tests/lib/libbluetooth/t_sdp_put.c
785
test.end = test.next;
tests/lib/libbluetooth/t_sdp_put.c
786
test.next = buf;
tests/lib/libbluetooth/t_sdp_put.c
803
ATF_REQUIRE_EQ(test.end - test.next, sizeof(expect));
tests/lib/libbluetooth/t_sdp_put.c
804
ATF_CHECK(memcmp(expect, test.next, sizeof(expect)) == 0);
tests/lib/libbluetooth/t_sdp_put.c
818
sdp_data_t test = { buf, buf + sizeof(buf) };
tests/lib/libbluetooth/t_sdp_put.c
82
sdp_data_t test = { buf, buf + sizeof(buf) };
tests/lib/libbluetooth/t_sdp_put.c
825
ATF_REQUIRE(sdp_put_url(&test, "http://www.netbsd.org/", 21));
tests/lib/libbluetooth/t_sdp_put.c
826
ATF_REQUIRE(sdp_put_url(&test, "http://www.netbsd.org/", -1));
tests/lib/libbluetooth/t_sdp_put.c
827
test.end = test.next;
tests/lib/libbluetooth/t_sdp_put.c
828
test.next = buf;
tests/lib/libbluetooth/t_sdp_put.c
845
ATF_REQUIRE_EQ(test.end - test.next, sizeof(expect));
tests/lib/libbluetooth/t_sdp_put.c
846
ATF_CHECK(memcmp(expect, test.next, sizeof(expect)) == 0);
tests/lib/libbluetooth/t_sdp_put.c
89
ATF_REQUIRE_EQ(sdp_put_attr(&test, 0xabcd, &value), false);
tests/lib/libbluetooth/t_sdp_put.c
91
ATF_REQUIRE(sdp_put_attr(&test, 0x1337, &value));
tests/lib/libbluetooth/t_sdp_put.c
92
test.end = test.next;
tests/lib/libbluetooth/t_sdp_put.c
93
test.next = buf;
tests/lib/libbluetooth/t_sdp_set.c
100
ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_UINT8);
tests/lib/libbluetooth/t_sdp_set.c
101
ATF_REQUIRE(sdp_set_uint(&test, 0x44));
tests/lib/libbluetooth/t_sdp_set.c
102
ATF_CHECK_EQ(sdp_set_uint(&test, UINT8_MAX + 1), false); /* too big */
tests/lib/libbluetooth/t_sdp_set.c
103
ATF_REQUIRE(sdp_get_data(&test, &discard));
tests/lib/libbluetooth/t_sdp_set.c
105
ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_NIL);
tests/lib/libbluetooth/t_sdp_set.c
106
ATF_CHECK_EQ(sdp_set_uint(&test, 0x00), false); /* not uint */
tests/lib/libbluetooth/t_sdp_set.c
107
ATF_REQUIRE(sdp_get_data(&test, &discard));
tests/lib/libbluetooth/t_sdp_set.c
109
ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_UINT16);
tests/lib/libbluetooth/t_sdp_set.c
110
ATF_REQUIRE(sdp_set_uint(&test, 0xabcd));
tests/lib/libbluetooth/t_sdp_set.c
111
ATF_CHECK_EQ(sdp_set_uint(&test, UINT16_MAX + 1), false); /* too big */
tests/lib/libbluetooth/t_sdp_set.c
112
ATF_REQUIRE(sdp_get_data(&test, &discard));
tests/lib/libbluetooth/t_sdp_set.c
114
ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_UINT32);
tests/lib/libbluetooth/t_sdp_set.c
115
ATF_REQUIRE(sdp_set_uint(&test, 0xdeadbeef));
tests/lib/libbluetooth/t_sdp_set.c
116
ATF_CHECK_EQ(sdp_set_uint(&test, (uintmax_t)UINT32_MAX + 1), false); /* too big */
tests/lib/libbluetooth/t_sdp_set.c
117
ATF_REQUIRE(sdp_get_data(&test, &discard));
tests/lib/libbluetooth/t_sdp_set.c
119
ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_UINT64);
tests/lib/libbluetooth/t_sdp_set.c
120
ATF_REQUIRE(sdp_set_uint(&test, 0xc0ffeecafec0ffee));
tests/lib/libbluetooth/t_sdp_set.c
121
ATF_REQUIRE(sdp_get_data(&test, &discard));
tests/lib/libbluetooth/t_sdp_set.c
123
ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_UINT128);
tests/lib/libbluetooth/t_sdp_set.c
124
ATF_REQUIRE(sdp_set_uint(&test, 0xabcdef0123456789));
tests/lib/libbluetooth/t_sdp_set.c
125
ATF_REQUIRE(sdp_get_data(&test, &discard));
tests/lib/libbluetooth/t_sdp_set.c
127
ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_UINT16);
tests/lib/libbluetooth/t_sdp_set.c
128
ATF_CHECK_EQ(sdp_set_uint(&test, 0x3344), false); /* no value */
tests/lib/libbluetooth/t_sdp_set.c
177
sdp_data_t test = { data, data + sizeof(data) };
tests/lib/libbluetooth/t_sdp_set.c
180
ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_INT8);
tests/lib/libbluetooth/t_sdp_set.c
181
ATF_REQUIRE(sdp_set_int(&test, -1));
tests/lib/libbluetooth/t_sdp_set.c
182
ATF_CHECK_EQ(sdp_set_int(&test, INT8_MAX + 1), false); /* too big */
tests/lib/libbluetooth/t_sdp_set.c
183
ATF_REQUIRE(sdp_get_data(&test, &discard));
tests/lib/libbluetooth/t_sdp_set.c
185
ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_NIL);
tests/lib/libbluetooth/t_sdp_set.c
186
ATF_CHECK_EQ(sdp_set_int(&test, 33), false); /* not int */
tests/lib/libbluetooth/t_sdp_set.c
187
ATF_REQUIRE(sdp_get_data(&test, &discard));
tests/lib/libbluetooth/t_sdp_set.c
189
ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_INT16);
tests/lib/libbluetooth/t_sdp_set.c
190
ATF_REQUIRE(sdp_set_int(&test, 789));
tests/lib/libbluetooth/t_sdp_set.c
191
ATF_CHECK_EQ(sdp_set_int(&test, INT16_MIN - 1), false); /* too big */
tests/lib/libbluetooth/t_sdp_set.c
192
ATF_REQUIRE(sdp_get_data(&test, &discard));
tests/lib/libbluetooth/t_sdp_set.c
194
ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_INT32);
tests/lib/libbluetooth/t_sdp_set.c
195
ATF_REQUIRE(sdp_set_int(&test, -4567));
tests/lib/libbluetooth/t_sdp_set.c
196
ATF_CHECK_EQ(sdp_set_int(&test, (intmax_t)INT32_MAX + 1), false); /* too big */
tests/lib/libbluetooth/t_sdp_set.c
197
ATF_REQUIRE(sdp_get_data(&test, &discard));
tests/lib/libbluetooth/t_sdp_set.c
199
ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_INT64);
tests/lib/libbluetooth/t_sdp_set.c
200
ATF_REQUIRE(sdp_set_int(&test, -3483738234));
tests/lib/libbluetooth/t_sdp_set.c
201
ATF_REQUIRE(sdp_get_data(&test, &discard));
tests/lib/libbluetooth/t_sdp_set.c
203
ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_INT128);
tests/lib/libbluetooth/t_sdp_set.c
204
ATF_REQUIRE(sdp_set_int(&test, 3423489463464));
tests/lib/libbluetooth/t_sdp_set.c
205
ATF_REQUIRE(sdp_get_data(&test, &discard));
tests/lib/libbluetooth/t_sdp_set.c
207
ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_INT16);
tests/lib/libbluetooth/t_sdp_set.c
208
ATF_CHECK_EQ(sdp_set_int(&test, 1234), false); /* no value */
tests/lib/libbluetooth/t_sdp_set.c
250
sdp_data_t test = { data, data + sizeof(data) };
tests/lib/libbluetooth/t_sdp_set.c
253
ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_SEQ8);
tests/lib/libbluetooth/t_sdp_set.c
254
ATF_REQUIRE(sdp_set_seq(&test, 0));
tests/lib/libbluetooth/t_sdp_set.c
255
ATF_CHECK_EQ(sdp_set_seq(&test, UINT8_MAX), false); /* data too big */
tests/lib/libbluetooth/t_sdp_set.c
256
ATF_CHECK_EQ(sdp_set_seq(&test, UINT16_MAX), false); /* size too big */
tests/lib/libbluetooth/t_sdp_set.c
257
ATF_REQUIRE(sdp_get_data(&test, &discard));
tests/lib/libbluetooth/t_sdp_set.c
259
ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_INT16);
tests/lib/libbluetooth/t_sdp_set.c
260
ATF_CHECK_EQ(sdp_set_seq(&test, 33), false); /* not seq */
tests/lib/libbluetooth/t_sdp_set.c
261
ATF_REQUIRE(sdp_get_data(&test, &discard));
tests/lib/libbluetooth/t_sdp_set.c
263
ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_SEQ16);
tests/lib/libbluetooth/t_sdp_set.c
264
ATF_REQUIRE(sdp_set_seq(&test, 3));
tests/lib/libbluetooth/t_sdp_set.c
265
ATF_CHECK_EQ(sdp_set_seq(&test, SSIZE_MAX), false); /* size too big */
tests/lib/libbluetooth/t_sdp_set.c
266
ATF_REQUIRE(sdp_get_data(&test, &discard));
tests/lib/libbluetooth/t_sdp_set.c
268
ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_SEQ32);
tests/lib/libbluetooth/t_sdp_set.c
269
ATF_REQUIRE(sdp_set_seq(&test, 0));
tests/lib/libbluetooth/t_sdp_set.c
270
ATF_REQUIRE(sdp_get_data(&test, &discard));
tests/lib/libbluetooth/t_sdp_set.c
272
ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_SEQ16);
tests/lib/libbluetooth/t_sdp_set.c
273
ATF_CHECK_EQ(sdp_set_seq(&test, 22), false); /* no size */
tests/lib/libbluetooth/t_sdp_set.c
309
sdp_data_t test = { data, data + sizeof(data) };
tests/lib/libbluetooth/t_sdp_set.c
312
ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_ALT8);
tests/lib/libbluetooth/t_sdp_set.c
313
ATF_REQUIRE(sdp_set_alt(&test, 0));
tests/lib/libbluetooth/t_sdp_set.c
314
ATF_CHECK_EQ(sdp_set_alt(&test, UINT8_MAX), false); /* data too big */
tests/lib/libbluetooth/t_sdp_set.c
315
ATF_CHECK_EQ(sdp_set_alt(&test, UINT16_MAX), false); /* size too big */
tests/lib/libbluetooth/t_sdp_set.c
316
ATF_REQUIRE(sdp_get_data(&test, &discard));
tests/lib/libbluetooth/t_sdp_set.c
318
ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_INT16);
tests/lib/libbluetooth/t_sdp_set.c
319
ATF_CHECK_EQ(sdp_set_alt(&test, 27), false); /* not alt */
tests/lib/libbluetooth/t_sdp_set.c
320
ATF_REQUIRE(sdp_get_data(&test, &discard));
tests/lib/libbluetooth/t_sdp_set.c
322
ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_ALT16);
tests/lib/libbluetooth/t_sdp_set.c
323
ATF_REQUIRE(sdp_set_alt(&test, 10));
tests/lib/libbluetooth/t_sdp_set.c
324
ATF_CHECK_EQ(sdp_set_alt(&test, SSIZE_MAX), false); /* size too big */
tests/lib/libbluetooth/t_sdp_set.c
325
ATF_REQUIRE(sdp_get_alt(&test, &discard));
tests/lib/libbluetooth/t_sdp_set.c
330
ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_ALT16);
tests/lib/libbluetooth/t_sdp_set.c
331
ATF_CHECK_EQ(sdp_set_alt(&test, 22), false); /* no size */
tests/lib/libbluetooth/t_sdp_set.c
53
sdp_data_t test = { data, data + sizeof(data) };
tests/lib/libbluetooth/t_sdp_set.c
56
ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_BOOL);
tests/lib/libbluetooth/t_sdp_set.c
57
ATF_REQUIRE(sdp_set_bool(&test, true));
tests/lib/libbluetooth/t_sdp_set.c
58
ATF_CHECK_EQ(test.next[1], 0x01);
tests/lib/libbluetooth/t_sdp_set.c
59
ATF_REQUIRE(sdp_set_bool(&test, false));
tests/lib/libbluetooth/t_sdp_set.c
60
ATF_CHECK_EQ(test.next[1], 0x00);
tests/lib/libbluetooth/t_sdp_set.c
61
ATF_REQUIRE(sdp_get_data(&test, &discard));
tests/lib/libbluetooth/t_sdp_set.c
63
ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_NIL);
tests/lib/libbluetooth/t_sdp_set.c
64
ATF_CHECK_EQ(sdp_set_bool(&test, true), false); /* not bool */
tests/lib/libbluetooth/t_sdp_set.c
65
ATF_REQUIRE(sdp_get_data(&test, &discard));
tests/lib/libbluetooth/t_sdp_set.c
67
ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_BOOL);
tests/lib/libbluetooth/t_sdp_set.c
68
ATF_CHECK_EQ(sdp_set_bool(&test, true), false); /* no value */
tests/lib/libbluetooth/t_sdp_set.c
97
sdp_data_t test = { data, data + sizeof(data) };
tests/lib/libc/gen/t_fpsetround.c
152
test(r);
tests/lib/libc/gen/t_sleep.c
263
sleeptest(int (*test)(struct timespec *, struct timespec *),
tests/lib/libc/gen/t_sleep.c
301
(*test)(&tslp, &tremain);
tests/lib/libc/hash/t_hmac.c
128
test();
tests/lib/libc/locale/t_btowc.c
117
h_btowc(struct test *t)
tests/lib/libc/locale/t_btowc.c
165
struct test *t;
tests/lib/libc/locale/t_btowc.c
179
struct test *t;
tests/lib/libc/locale/t_btowc.c
79
h_iso10646(struct test *t)
tests/lib/libc/locale/t_digittoint.c
71
h_digittoint(const struct test *t)
tests/lib/libc/locale/t_digittoint.c
96
struct test *t;
tests/lib/libc/locale/t_mbrtowc.c
176
h_ctype2(const struct test *t, bool use_mbstate)
tests/lib/libc/locale/t_mbrtowc.c
294
struct test *t;
tests/lib/libc/locale/t_mbrtowc.c
314
struct test *t;
tests/lib/libc/locale/t_mbsnrtowcs.c
67
const struct test *t;
tests/lib/libc/locale/t_mbstowcs.c
189
struct test *t;
tests/lib/libc/locale/t_sprintf.c
108
h_sprintf(const struct test *t)
tests/lib/libc/locale/t_sprintf.c
127
h_strto(const struct test *t)
tests/lib/libc/locale/t_sprintf.c
177
h_sscanf(const struct test *t)
tests/lib/libc/locale/t_sprintf.c
200
struct test *t;
tests/lib/libc/locale/t_sprintf.c
214
struct test *t;
tests/lib/libc/locale/t_sprintf.c
228
struct test *t;
tests/lib/libc/locale/t_toupper.c
100
struct test *t;
tests/lib/libc/locale/t_toupper.c
116
struct test *t;
tests/lib/libc/locale/t_toupper.c
66
h_swapcase(const struct test *t, int upperp)
tests/lib/libc/locale/t_wcscoll.c
113
h_wcscoll(const struct test *t)
tests/lib/libc/locale/t_wcscoll.c
138
struct test *t;
tests/lib/libc/locale/t_wcstod.c
396
struct test *t;
tests/lib/libc/locale/t_wcstod.c
427
struct test *t;
tests/lib/libc/locale/t_wctomb.c
103
h_wctomb(const struct test *t, char tc)
tests/lib/libc/locale/t_wctomb.c
168
struct test *t;
tests/lib/libc/locale/t_wctomb.c
184
struct test *t;
tests/lib/libc/locale/t_wctomb.c
200
struct test *t;
tests/lib/libc/locale/t_wctype.c
142
h_ctype(const struct test *t)
tests/lib/libc/locale/t_wctype.c
270
struct test *t;
tests/lib/libc/setjmp/t_setjmp.c
154
h_check(enum test test)
tests/lib/libc/setjmp/t_setjmp.c
166
switch (test) {
tests/lib/libc/setjmp/t_setjmp.c
177
switch (test) {
tests/lib/libc/setjmp/t_setjmp.c
204
switch (test) {
tests/lib/libc/setjmp/t_setjmp.c
230
switch (test) {
tests/lib/libc/setjmp/t_setjmp.c
250
switch (test) {
tests/lib/libc/setjmp/t_threadjmp.c
102
h_check(int test)
tests/lib/libc/setjmp/t_threadjmp.c
113
if (test == TEST_SETJMP || test == TEST_SIGSETJMP_SAVE)
tests/lib/libc/setjmp/t_threadjmp.c
115
else if (test == TEST_U_SETJMP || test == TEST_SIGSETJMP_NOSAVE)
tests/lib/libc/setjmp/t_threadjmp.c
129
if (test == TEST_SETJMP)
tests/lib/libc/setjmp/t_threadjmp.c
131
else if (test == TEST_U_SETJMP)
tests/lib/libc/setjmp/t_threadjmp.c
148
if (test == TEST_SETJMP)
tests/lib/libc/setjmp/t_threadjmp.c
150
else if (test == TEST_U_SETJMP)
tests/lib/libc/stdlib/t_strtoi.c
117
struct test t[] = {
tests/lib/libc/stdlib/t_strtoi.c
159
struct test f[] = {
tests/lib/libc/stdlib/t_strtoi.c
209
struct test t[] = {
tests/lib/libc/stdlib/t_strtoi.c
254
struct test t[] = {
tests/lib/libc/stdlib/t_strtoi.c
310
struct test t[] = {
tests/lib/libc/stdlib/t_strtoi.c
342
struct test t[] = {
tests/lib/libc/stdlib/t_strtoi.c
57
static void check(struct test *, intmax_t, char *, int);
tests/lib/libc/stdlib/t_strtoi.c
60
check(struct test *t, intmax_t rv, char *end, int rstatus)
tests/lib/libc/stdlib/t_strtol.c
189
struct test t[] = {
tests/lib/libc/stdlib/t_strtol.c
228
struct test t[] = {
tests/lib/libc/stdlib/t_strtol.c
234
struct test t[] = {
tests/lib/libc/stdlib/t_strtol.c
265
struct test t[] = {
tests/lib/libc/stdlib/t_strtol.c
50
check(struct test *t, long int li, long long int lli, intmax_t ji, char *end)
tests/lib/libc/stdlib/t_strtol.c
79
struct test t[] = {
tests/lib/libc/string/t_strcoll.c
61
h_ordering(const struct test *t)
tests/lib/libc/string/t_strcoll.c
92
struct test *t;
tests/lib/libc/sys/t_fork.c
241
#define RAISE(test, sig) \
tests/lib/libc/sys/t_fork.c
242
ATF_TC(test); \
tests/lib/libc/sys/t_fork.c
243
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_fork.c
250
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_fork.c
332
#define NESTED(test, fn, flags) \
tests/lib/libc/sys/t_fork.c
333
ATF_TC(test); \
tests/lib/libc/sys/t_fork.c
334
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_fork.c
341
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_mkdir.c
187
const char **test;
tests/lib/libc/sys/t_mkdir.c
189
for (test = &tests[0]; *test != NULL; ++test) {
tests/lib/libc/sys/t_mkdir.c
191
(void)printf("Checking \"%s\"\n", *test);
tests/lib/libc/sys/t_mkdir.c
192
(void)rmdir(*test);
tests/lib/libc/sys/t_mkdir.c
194
ATF_REQUIRE(mkdir(*test, 0777) == 0);
tests/lib/libc/sys/t_mkdir.c
195
ATF_REQUIRE(rename(*test, "foo") == 0);
tests/lib/libc/sys/t_mkdir.c
196
ATF_REQUIRE(rename("foo/", *test) == 0);
tests/lib/libc/sys/t_mkdir.c
197
ATF_REQUIRE(rmdir(*test) == 0);
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
444
#define BYTES_TRANSFER(test, operation, size, type) \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
445
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
446
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
453
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
669
#define BYTES_TRANSFER_ALIGNMENT(test, operation) \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
670
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
671
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
678
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
822
#define BYTES_TRANSFER_EOF(test, operation) \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
823
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
824
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_bytetransfer_wait.h
831
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_eventmask_wait.h
82
#define EVENTMASK_PRESERVED(test, event) \
tests/lib/libc/sys/t_ptrace_eventmask_wait.h
83
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_eventmask_wait.h
84
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_eventmask_wait.h
90
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_exec_wait.h
154
#define TRACEME_VFORK_EXEC(test, masked, ignored) \
tests/lib/libc/sys/t_ptrace_exec_wait.h
155
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_exec_wait.h
156
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_exec_wait.h
164
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_exec_wait.h
300
#define TRACEME_EXEC(test, masked, ignored) \
tests/lib/libc/sys/t_ptrace_exec_wait.h
301
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_exec_wait.h
302
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_exec_wait.h
310
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_kill_wait.h
77
#define PTRACE_KILL(test, type) \
tests/lib/libc/sys/t_ptrace_kill_wait.h
78
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_kill_wait.h
79
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_kill_wait.h
85
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
351
#define TRACEME_LWPINFO(test, threads, iter) \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
352
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
353
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
360
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
617
#define ATTACH_LWPINFO(test, threads) \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
618
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
619
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_lwp_wait.h
627
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_misc_wait.h
105
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_misc_wait.h
97
#define USER_VA0_DISABLE(test, operation) \
tests/lib/libc/sys/t_ptrace_misc_wait.h
98
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_misc_wait.h
99
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_register_wait.h
161
#define ACCESS_REGS(test, regset, aux) \
tests/lib/libc/sys/t_ptrace_register_wait.h
162
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_register_wait.h
163
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_register_wait.h
169
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_sigchld.c
209
#define TRACEME_RAISE(test, sig) \
tests/lib/libc/sys/t_ptrace_sigchld.c
210
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_sigchld.c
211
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_sigchld.c
218
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_siginfo_wait.h
118
#define PTRACE_SIGINFO(test, faked) \
tests/lib/libc/sys/t_ptrace_siginfo_wait.h
119
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_siginfo_wait.h
120
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_siginfo_wait.h
127
static int test##_caught = 0; \
tests/lib/libc/sys/t_ptrace_siginfo_wait.h
130
test##_sighandler(int sig, siginfo_t *info, void *ctx) \
tests/lib/libc/sys/t_ptrace_siginfo_wait.h
142
++ test##_caught; \
tests/lib/libc/sys/t_ptrace_siginfo_wait.h
145
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_siginfo_wait.h
148
ptrace_siginfo(faked, test##_sighandler, & test##_caught); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1010
#define TRACEME_SENDSIGNAL_HANDLE(test, sig) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1011
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1012
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1019
static int test##_caught = 0; \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1022
test##_sighandler(int arg) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1026
++ test##_caught; \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1029
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1032
traceme_sendsignal_handle(sig, test##_sighandler, & test##_caught); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1108
#define TRACEME_SENDSIGNAL_MASKED(test, sig) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1109
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1110
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1117
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1198
#define TRACEME_SENDSIGNAL_IGNORED(test, sig) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1199
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1200
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1207
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1334
#define TRACEME_SENDSIGNAL_SIMPLE(test, sig) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1335
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1336
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1343
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
147
#define TRACEME_RAISE(test, sig) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
148
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
149
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1491
#define TRACEME_VFORK_RAISE(test, sig) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1492
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1493
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1500
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
155
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1580
#define TRACEME_VFORK_CRASH(test, sig) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1581
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1582
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1589
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1666
#define TRACEME_VFORK_SIGNALMASKED_CRASH(test, sig) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1667
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1668
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1675
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1754
#define TRACEME_VFORK_SIGNALIGNORED_CRASH(test, sig) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1755
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1756
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
1763
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2086
#define UNRELATED_TRACER_SEES_CRASH(test, sig) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2087
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2088
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2095
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2107
#define UNRELATED_TRACER_SEES_SIGNALMASKED_CRASH(test, sig) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2108
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2109
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2116
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2133
#define UNRELATED_TRACER_SEES_SIGNALIGNORED_CRASH(test, sig) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2134
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2135
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
2142
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
262
#define TRACEME_RAISESIGNAL_IGNORED(test, sig) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
263
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
264
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
271
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
355
#define TRACEME_RAISESIGNAL_MASKED(test, sig) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
356
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
357
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
364
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
481
#define TRACEME_CRASH(test, sig) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
482
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
483
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
489
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
699
#define TRACEME_SIGNALMASKED_CRASH(test, sig) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
700
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
701
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
708
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
921
#define TRACEME_SIGNALIGNORED_CRASH(test, sig) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
922
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_signal_wait.h
923
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_signal_wait.h
930
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_step_wait.h
199
#define PTRACE_STEP(test, N, setstep) \
tests/lib/libc/sys/t_ptrace_step_wait.h
200
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_step_wait.h
201
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_step_wait.h
207
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_threads_wait.h
232
#define TRACE_THREADS(test, trace_create, trace_exit, mask) \
tests/lib/libc/sys/t_ptrace_threads_wait.h
233
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_threads_wait.h
234
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_threads_wait.h
242
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_threads_wait.h
962
#define THREAD_CONCURRENT_TEST(test, sig_hdl, bps, sigs, wps, descr) \
tests/lib/libc/sys/t_ptrace_threads_wait.h
963
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_threads_wait.h
964
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_threads_wait.h
969
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_topology_wait.h
675
#define TRACEE_SEES_ITS_ORIGINAL_PARENT(test, type, descr) \
tests/lib/libc/sys/t_ptrace_topology_wait.h
676
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_topology_wait.h
677
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_topology_wait.h
684
ATF_TC_BODY(test, tc) \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4258
#define X86_REGISTER_TEST(test, regset, regs, regmode, descr) \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4259
ATF_TC(test); \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4260
ATF_TC_HEAD(test, tc) \
tests/lib/libc/sys/t_ptrace_x86_wait.h
4265
ATF_TC_BODY(test, tc) \
tests/lib/libnvmm/h_io_assist.c
285
const struct test *test)
tests/lib/libnvmm/h_io_assist.c
290
size = (size_t)test->code_end - (size_t)test->code_begin;
tests/lib/libnvmm/h_io_assist.c
297
memcpy(instbuf, test->code_begin, size);
tests/lib/libnvmm/h_io_assist.c
299
if (test->in) {
tests/lib/libnvmm/h_io_assist.c
300
strcpy(iobuf, test->wanted);
tests/lib/libnvmm/h_io_assist.c
302
strcpy(databuf, test->wanted);
tests/lib/libnvmm/h_io_assist.c
307
if (test->in) {
tests/lib/libnvmm/h_io_assist.c
313
if (!strcmp(res, test->wanted)) {
tests/lib/libnvmm/h_io_assist.c
314
printf("Test '%s' passed\n", test->name);
tests/lib/libnvmm/h_io_assist.c
316
printf("Test '%s' failed, wanted '%s', got '%s'\n", test->name,
tests/lib/libnvmm/h_io_assist.c
317
test->wanted, res);
tests/lib/libnvmm/h_io_assist.c
336
static const struct test tests[] = {
tests/lib/libnvmm/h_mem_assist.c
138
const struct test *test)
tests/lib/libnvmm/h_mem_assist.c
143
size = (size_t)test->code_end - (size_t)test->code_begin;
tests/lib/libnvmm/h_mem_assist.c
146
memcpy(instbuf, test->code_begin, size);
tests/lib/libnvmm/h_mem_assist.c
150
res = (uint64_t *)(mmiobuf + test->off);
tests/lib/libnvmm/h_mem_assist.c
151
if (*res == test->wanted) {
tests/lib/libnvmm/h_mem_assist.c
152
printf("Test '%s' passed\n", test->name);
tests/lib/libnvmm/h_mem_assist.c
154
printf("Test '%s' failed, wanted 0x%lx, got 0x%lx\n", test->name,
tests/lib/libnvmm/h_mem_assist.c
155
test->wanted, *res);
tests/lib/libnvmm/h_mem_assist.c
179
static const struct test tests64[] = {
tests/lib/libnvmm/h_mem_assist.c
387
static const struct test tests16[] = {
tests/net/net/t_bind.c
152
test(AF_INET);
tests/net/net/t_bind.c
165
test(AF_INET6);
tests/net/net/t_bind.c
179
test(AF_INET);
tests/net/net/t_bind.c
180
test(AF_INET6);
tests/net/net/t_mapped.c
259
test(0, AF_INET, AF_INET);
tests/net/net/t_mapped.c
271
test(0, AF_INET6, AF_INET);
tests/net/net/t_mapped.c
284
test(0, AF_INET, AF_INET6);
tests/net/net/t_mapped.c
297
test(0, AF_INET6, AF_INET6);
tests/net/net/t_mapped.c
315
test(0, AF_INET, AF_INET);
tests/net/net/t_mapped.c
317
test(0, AF_INET6, AF_INET);
tests/net/net/t_mapped.c
318
test(0, AF_INET6, AF_INET6);
tests/net/net/t_unix.c
412
ATF_REQUIRE_MSG(test(false, false, false, 254) == -1,
tests/net/net/t_unix.c
427
ATF_REQUIRE_MSG(test(false, false, false, 253) == 0,
tests/net/net/t_unix.c
441
ATF_REQUIRE_MSG(test(false, true, false, 100) == 0,
tests/net/net/t_unix.c
535
ATF_REQUIRE_MSG(test(true, true, false, 100) == 0,
tests/net/net/t_unix.c
549
ATF_REQUIRE_MSG(test(true, true, true, 100) == 0,
tests/net/net/t_unix.c
574
test(false, false, false, atoi(argv[1]));
tests/net/net/t_unix.c
575
test(false, true, false, atoi(argv[1]));
tests/net/net/t_unix.c
576
test(true, false, false, atoi(argv[1]));
tests/net/net/t_unix.c
577
test(true, true, false, atoi(argv[1]));
tests/net/net/t_unix.c
578
test(true, true, true, atoi(argv[1]));
tests/net/sys/t_rfc6056.c
130
test("localhost", "http", AF_INET, i);
tests/net/sys/t_rfc6056.c
143
test("localhost", "http", AF_INET6, i);
tests/usr.bin/indent/fmt_decl.c
157
MAXALIGN(offsetof(int, test)) + MAXIMUM_ALIGNOF;
tests/usr.bin/xlint/lint1/msg_331.c
13
test(bool);
tests/usr.bin/xlint/lint1/msg_331.c
18
test(b && b);
tests/usr.bin/xlint/lint1/msg_331.c
22
test(c && b);
tests/usr.bin/xlint/lint1/msg_331.c
26
test(i && b);
tests/usr.bin/xlint/lint1/msg_331.c
28
test(c != '\0');
tests/usr.bin/xlint/lint1/msg_331.c
29
test(i != 0);
tests/usr.bin/xlint/lint1/msg_332.c
13
test(bool);
tests/usr.bin/xlint/lint1/msg_332.c
18
test(b && b);
tests/usr.bin/xlint/lint1/msg_332.c
22
test(b && c);
tests/usr.bin/xlint/lint1/msg_332.c
26
test(b && i);
tests/usr.bin/xlint/lint1/msg_332.c
28
test(c != '\0');
tests/usr.bin/xlint/lint1/msg_332.c
29
test(i != 0);
tests/usr.bin/xlint/lint1/msg_336.c
13
test(bool);
tests/usr.bin/xlint/lint1/msg_336.c
20
test(b + i);
tests/usr.bin/xlint/lint1/msg_336.c
22
test(b);
tests/usr.bin/xlint/lint1/msg_336.c
24
test(i != 0);
tests/usr.bin/xlint/lint1/msg_337.c
13
test(bool);
tests/usr.bin/xlint/lint1/msg_337.c
20
test(i + b);
tests/usr.bin/xlint/lint1/msg_337.c
22
test(b);
tests/usr.bin/xlint/lint1/msg_337.c
24
test(i != 0);
usr.bin/apropos/apropos.c
235
char test;
usr.bin/apropos/apropos.c
242
for (test = *str++, len = strlen(str); *bp;)
usr.bin/apropos/apropos.c
243
if (test == *bp++ && !strncmp(bp, str, len))
usr.bin/unzip/unzip.c
935
error_count += test(a, e);
usr.sbin/btattach/btattach.c
228
test(argv[0], cflag, Cflag);
usr.sbin/btattach/btattach.c
52
static void test(const char *, tcflag_t, tcflag_t);
usr.sbin/lpr/lpr/lpr.c
114
static int test(const char *);
usr.sbin/lpr/lpr/lpr.c
345
if ((f = test(arg = *argv++)) < 0)
usr.sbin/makefs/cd9660.c
347
int test;
usr.sbin/makefs/cd9660.c
353
test = cd9660_valid_d_chars(val);
usr.sbin/makefs/cd9660.c
355
test = cd9660_valid_a_chars(val);
usr.sbin/makefs/cd9660.c
356
if (test) {
usr.sbin/makefs/cd9660.c
358
if (test == 2)
usr.sbin/npf/npftest/npftest.c
197
bool test, ok, fail, tname_matched;
usr.sbin/npf/npftest/npftest.c
204
test = false;
usr.sbin/npf/npftest/npftest.c
236
test = true;
usr.sbin/npf/npftest/npftest.c
239
test = true;
usr.sbin/npf/npftest/npftest.c
264
if ((benchmark != NULL) == test && (stream && !interface)) {
usr.sbin/npf/npftest/npftest.c
287
if (test) {
usr.sbin/npf/npftest/npftest.c
324
if (test && config) {
usr.sbin/pf/pfs/pfs.c
461
int test = 0;
usr.sbin/pf/pfs/pfs.c
512
test=1;
usr.sbin/pf/pfs/pfs.c
525
if (set == 0 && dump == 0 && restore == 0 && test == 0)
usr.sbin/pf/pfs/pfs.c
531
if (test == 1) {
usr.sbin/puffs/mount_psshfs/subr.c
100
struct psshfs_dir *test;
usr.sbin/puffs/mount_psshfs/subr.c
104
test = &bdir[i];
usr.sbin/puffs/mount_psshfs/subr.c
105
if (test->valid != 1)
usr.sbin/puffs/mount_psshfs/subr.c
107
if (strcmp(test->entryname, name) == 0)
usr.sbin/puffs/mount_psshfs/subr.c
108
return test;
usr.sbin/puffs/mount_psshfs/subr.c
117
struct psshfs_dir *test;
usr.sbin/puffs/mount_psshfs/subr.c
121
test = &bdir[i];
usr.sbin/puffs/mount_psshfs/subr.c
122
if (test->valid != 1)
usr.sbin/puffs/mount_psshfs/subr.c
124
if (test->entry == entry)
usr.sbin/puffs/mount_psshfs/subr.c
125
return test;
usr.sbin/sysinst/bsddisklabel.c
1648
struct disk_part_info test;
usr.sbin/sysinst/bsddisklabel.c
1651
wanted->parts, j, &test))
usr.sbin/sysinst/bsddisklabel.c
1653
if (test.start == want->cur_start &&
usr.sbin/sysinst/bsddisklabel.c
1654
test.size == want->size)
usr.sbin/sysinst/disks.c
2380
const struct disk_partitions *test)
usr.sbin/sysinst/disks.c
2385
if (sel->selection[i].parts == test)
usr.sbin/sysinst/disks.c
2396
const struct disk_partitions *test, part_id test_id)
usr.sbin/sysinst/disks.c
2401
if (sel->selection[i].parts == test &&