Symbol: test
bin/pax/pat_rep.c
467
char test;
bin/pax/pat_rep.c
492
if ((test = *string++) == '\0')
bin/pax/pat_rep.c
512
while ((test = *string) != '\0') {
bin/pax/pat_rep.c
522
if (((test = *string++) == '\0') ||
bin/pax/pat_rep.c
523
((pattern = range_match(pattern, test)) == NULL))
bin/pax/pat_rep.c
537
range_match(char *pattern, int test)
bin/pax/pat_rep.c
556
if ((c <= test) && (test <= c2))
bin/pax/pat_rep.c
559
} else if (c == test)
bin/sh/eval.c
235
evaltree(n->nif.test, EV_TESTED);
bin/sh/jobs.c
1428
cmdtxt(n->nif.test);
bin/sh/parser.c
439
if ((n1->nif.test = list(0)) == NULL)
bin/sh/parser.c
448
if ((n2->nif.test = list(0)) == NULL)
crypto/heimdal/lib/krb5/store-test.c
96
int test = 1;
crypto/heimdal/lib/krb5/store-test.c
98
if(*(char*)&test)
crypto/heimdal/lib/krb5/test_config.c
110
test[0].res = list0;
crypto/heimdal/lib/krb5/test_config.c
111
test[1].res = list1;
crypto/heimdal/lib/krb5/test_config.c
112
test[2].res = list2;
crypto/heimdal/lib/krb5/test_config.c
114
for (i = 0; i < sizeof(test)/sizeof(*test); i++) {
crypto/heimdal/lib/krb5/test_config.c
115
check_config_file(context, test[i].fl, test[i].res, 0);
crypto/heimdal/lib/krb5/test_config.c
116
check_config_file(context, test[i].fl, test[i].res, 1);
crypto/heimdal/lib/krb5/test_config.c
93
} test[] = {
crypto/heimdal/lib/roken/fnmatch.c
107
while ((test = *string) != EOS) {
crypto/heimdal/lib/roken/fnmatch.c
110
if (test == '/' && flags & FNM_PATHNAME)
crypto/heimdal/lib/roken/fnmatch.c
142
rangematch(const char *pattern, int test, int flags)
crypto/heimdal/lib/roken/fnmatch.c
169
if (c <= test && test <= c2)
crypto/heimdal/lib/roken/fnmatch.c
171
} else if (c == test)
crypto/heimdal/lib/roken/fnmatch.c
65
char c, test;
crypto/heimdal/lib/wind/test-bidi.c
47
static struct test passing_cases[] = {
crypto/heimdal/lib/wind/test-bidi.c
53
static struct test failing_cases[] = {
crypto/heimdal/lib/wind/test-bidi.c
65
const struct test *t = &passing_cases[i];
crypto/heimdal/lib/wind/test-bidi.c
73
const struct test *t = &failing_cases[i];
crypto/heimdal/lib/wind/test-normalize.c
172
failures += test(buf, lineno);
crypto/krb5/src/lib/crypto/crypto_tests/t_cksums.c
187
struct test *test;
crypto/krb5/src/lib/crypto/crypto_tests/t_cksums.c
197
test = &test_cases[i];
crypto/krb5/src/lib/crypto/crypto_tests/t_cksums.c
198
if (test->enctype != 0) {
crypto/krb5/src/lib/crypto/crypto_tests/t_cksums.c
200
kb.enctype = test->enctype;
crypto/krb5/src/lib/crypto/crypto_tests/t_cksums.c
201
kb.length = test->keybits.length;
crypto/krb5/src/lib/crypto/crypto_tests/t_cksums.c
202
kb.contents = (unsigned char *)test->keybits.data;
crypto/krb5/src/lib/crypto/crypto_tests/t_cksums.c
206
ret = krb5_c_make_checksum(context, test->sumtype, kbp, test->usage,
crypto/krb5/src/lib/crypto/crypto_tests/t_cksums.c
207
&test->plaintext, &cksum);
crypto/krb5/src/lib/crypto/crypto_tests/t_cksums.c
211
krb5_cksumtype_to_string(test->sumtype, buf, sizeof(buf));
crypto/krb5/src/lib/crypto/crypto_tests/t_cksums.c
213
printf("Plaintext: %.*s\n", (int)test->plaintext.length,
crypto/krb5/src/lib/crypto/crypto_tests/t_cksums.c
214
test->plaintext.data);
crypto/krb5/src/lib/crypto/crypto_tests/t_cksums.c
216
if (test->enctype != 0) {
crypto/krb5/src/lib/crypto/crypto_tests/t_cksums.c
217
krb5_enctype_to_name(test->enctype, FALSE, buf, sizeof(buf));
crypto/krb5/src/lib/crypto/crypto_tests/t_cksums.c
219
printhex("Key: ", test->keybits.data, test->keybits.length);
crypto/krb5/src/lib/crypto/crypto_tests/t_cksums.c
220
printf("Key usage: %d\n", (int)test->usage);
crypto/krb5/src/lib/crypto/crypto_tests/t_cksums.c
224
if (test->cksum.length != cksum.length ||
crypto/krb5/src/lib/crypto/crypto_tests/t_cksums.c
225
memcmp(test->cksum.data, cksum.contents, cksum.length) != 0) {
crypto/krb5/src/lib/crypto/crypto_tests/t_cksums.c
233
ret = krb5_c_verify_checksum(context, kbp, test->usage,
crypto/krb5/src/lib/crypto/crypto_tests/t_cksums.c
234
&test->plaintext, &cksum, &valid);
crypto/krb5/src/lib/crypto/crypto_tests/t_cksums.c
246
if (test->sumtype == mtype) {
crypto/krb5/src/lib/crypto/crypto_tests/t_cksums.c
250
ret = krb5_c_verify_checksum(context, kbp, test->usage,
crypto/krb5/src/lib/crypto/crypto_tests/t_cksums.c
251
&test->plaintext, &cksum, &valid);
crypto/krb5/src/lib/crypto/crypto_tests/t_decrypt.c
590
struct test *test;
crypto/krb5/src/lib/crypto/crypto_tests/t_decrypt.c
598
test = &test_cases[i];
crypto/krb5/src/lib/crypto/crypto_tests/t_decrypt.c
600
kb.enctype = test->enctype;
crypto/krb5/src/lib/crypto/crypto_tests/t_decrypt.c
601
kb.length = test->keybits.length;
crypto/krb5/src/lib/crypto/crypto_tests/t_decrypt.c
602
kb.contents = (unsigned char *)test->keybits.data;
crypto/krb5/src/lib/crypto/crypto_tests/t_decrypt.c
603
ret = alloc_data(&plain, test->ciphertext.length);
crypto/krb5/src/lib/crypto/crypto_tests/t_decrypt.c
606
enc.enctype = test->enctype;
crypto/krb5/src/lib/crypto/crypto_tests/t_decrypt.c
608
enc.ciphertext = test->ciphertext;
crypto/krb5/src/lib/crypto/crypto_tests/t_decrypt.c
609
if (krb5_c_decrypt(context, &kb, test->usage, NULL, &enc,
crypto/krb5/src/lib/crypto/crypto_tests/t_decrypt.c
614
assert(plain.length >= test->plaintext.length);
crypto/krb5/src/lib/crypto/crypto_tests/t_decrypt.c
615
if (memcmp(plain.data, test->plaintext.data,
crypto/krb5/src/lib/crypto/crypto_tests/t_decrypt.c
616
test->plaintext.length) != 0) {
crypto/krb5/src/lib/crypto/crypto_tests/t_derive.c
316
struct test *test;
crypto/krb5/src/lib/crypto/crypto_tests/t_derive.c
328
test = &test_cases[i];
crypto/krb5/src/lib/crypto/crypto_tests/t_derive.c
330
kb.enctype = test->enctype;
crypto/krb5/src/lib/crypto/crypto_tests/t_derive.c
331
kb.length = test->inkey.length;
crypto/krb5/src/lib/crypto/crypto_tests/t_derive.c
332
kb.contents = (unsigned char *)test->inkey.data;
crypto/krb5/src/lib/crypto/crypto_tests/t_derive.c
335
enc = get_enc_provider(test->enctype);
crypto/krb5/src/lib/crypto/crypto_tests/t_derive.c
336
hash = get_hash_provider(test->enctype);
crypto/krb5/src/lib/crypto/crypto_tests/t_derive.c
337
if (test->expected_key.length == enc->keylength) {
crypto/krb5/src/lib/crypto/crypto_tests/t_derive.c
338
ret = krb5int_derive_key(enc, hash, inkey, &key, &test->constant,
crypto/krb5/src/lib/crypto/crypto_tests/t_derive.c
339
test->alg);
crypto/krb5/src/lib/crypto/crypto_tests/t_derive.c
343
ret = alloc_data(&rnd, test->expected_key.length);
crypto/krb5/src/lib/crypto/crypto_tests/t_derive.c
346
&test->constant, test->alg);
crypto/krb5/src/lib/crypto/crypto_tests/t_derive.c
352
krb5_enctype_to_name(test->enctype, FALSE, buf, sizeof(buf));
crypto/krb5/src/lib/crypto/crypto_tests/t_derive.c
357
printhex("Constant: ", test->constant.data, test->constant.length);
crypto/krb5/src/lib/crypto/crypto_tests/t_derive.c
360
assert(outcmp.length == test->expected_key.length);
crypto/krb5/src/lib/crypto/crypto_tests/t_derive.c
361
if (memcmp(outcmp.data, test->expected_key.data, outcmp.length) != 0) {
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
110
test ("Seeding random number generator",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
132
test ("Initializing a keyblock",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
134
test ("Generating random keyblock",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
136
test ("Creating opaque key from keyblock",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
147
test ("Encrypting (c)",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
150
test ("Decrypting",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
152
test ("Comparing", compare_results (&in, &check));
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
156
test ("Encrypting (k)",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
159
test ("Decrypting",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
161
test ("Comparing", compare_results (&in, &check));
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
174
test("IOV stream decrypting (c)",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
176
test("Comparing results",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
181
test("IOV stream decrypting (k)",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
183
test("Comparing results",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
199
test("Setting up iov lengths",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
211
test("iov encrypting (c)",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
218
test("iov decrypting",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
220
test("Comparing results",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
224
test("iov encrypting (k)",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
231
test("iov decrypting",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
233
test("Comparing results",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
240
test ("init_state",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
242
test ("Encrypting with state",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
245
test ("Encrypting again with state",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
248
test ("free_state",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
250
test ("init_state",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
252
test ("Decrypting with state",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
254
test ("Decrypting again with state",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
256
test ("free_state",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
258
test ("Comparing",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
260
test ("Comparing",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
268
test ("Initializing an RC4 keyblock",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
270
test ("Generating random RC4 key",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
276
test ("Encrypting with RC4 key usage 8",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
279
test ("Decrypting with RC4 key usage 9",
crypto/krb5/src/lib/crypto/crypto_tests/t_encrypt.c
281
test ("Comparing", compare_results (&in, &check));
crypto/krb5/src/lib/crypto/crypto_tests/t_prf.c
125
const struct test *test;
crypto/krb5/src/lib/crypto/crypto_tests/t_prf.c
128
test = &tests[i];
crypto/krb5/src/lib/crypto/crypto_tests/t_prf.c
130
kb.enctype = test->enctype;
crypto/krb5/src/lib/crypto/crypto_tests/t_prf.c
131
kb.length = test->keybits.length;
crypto/krb5/src/lib/crypto/crypto_tests/t_prf.c
132
kb.contents = (uint8_t *)test->keybits.data;
crypto/krb5/src/lib/crypto/crypto_tests/t_prf.c
134
ret = krb5_c_prf_length(NULL, test->enctype, &prfsz);
crypto/krb5/src/lib/crypto/crypto_tests/t_sha2.c
44
struct test sha256_tests[] = {
crypto/krb5/src/lib/crypto/crypto_tests/t_sha2.c
63
struct test sha384_tests[] = {
crypto/krb5/src/lib/crypto/crypto_tests/t_sha2.c
90
hash_test(const struct krb5_hash_provider *hash, struct test *tests)
crypto/krb5/src/lib/crypto/crypto_tests/t_sha2.c
92
struct test *t;
crypto/krb5/src/lib/crypto/crypto_tests/t_str2key.c
467
struct test *test;
crypto/krb5/src/lib/crypto/crypto_tests/t_str2key.c
474
test = &test_cases[i];
crypto/krb5/src/lib/crypto/crypto_tests/t_str2key.c
475
string = string2data(test->string);
crypto/krb5/src/lib/crypto/crypto_tests/t_str2key.c
476
ret = krb5_init_keyblock(context, test->enctype, 0, &keyblock);
crypto/krb5/src/lib/crypto/crypto_tests/t_str2key.c
478
k5_allow_weak_pbkdf2iter = test->allow_weak;
crypto/krb5/src/lib/crypto/crypto_tests/t_str2key.c
479
ret = krb5_c_string_to_key_with_params(context, test->enctype,
crypto/krb5/src/lib/crypto/crypto_tests/t_str2key.c
480
&string, &test->salt,
crypto/krb5/src/lib/crypto/crypto_tests/t_str2key.c
481
&test->params, keyblock);
crypto/krb5/src/lib/crypto/crypto_tests/t_str2key.c
482
if (ret != test->expected_err) {
crypto/krb5/src/lib/crypto/crypto_tests/t_str2key.c
488
krb5_enctype_to_name(test->enctype, FALSE, buf, sizeof(buf));
crypto/krb5/src/lib/crypto/crypto_tests/t_str2key.c
491
printf("String: %s\n", test->string);
crypto/krb5/src/lib/crypto/crypto_tests/t_str2key.c
492
printhex("Salt: ", test->salt.data, test->salt.length);
crypto/krb5/src/lib/crypto/crypto_tests/t_str2key.c
493
printhex("Params: ", test->params.data, test->params.length);
crypto/krb5/src/lib/crypto/crypto_tests/t_str2key.c
494
if (test->expected_err == 0)
crypto/krb5/src/lib/crypto/crypto_tests/t_str2key.c
497
printf("Expected error: %d\n", (int)test->expected_err);
crypto/krb5/src/lib/crypto/crypto_tests/t_str2key.c
499
if (test->expected_err != 0) {
crypto/krb5/src/lib/crypto/crypto_tests/t_str2key.c
503
assert(keyblock->length == test->expected_key.length);
crypto/krb5/src/lib/crypto/crypto_tests/t_str2key.c
504
if (memcmp(keyblock->contents, test->expected_key.data,
crypto/krb5/src/lib/crypto/crypto_tests/vectors.c
380
} test[] = {
crypto/krb5/src/lib/crypto/crypto_tests/vectors.c
407
for (j = 0; j < sizeof(test)/sizeof(test[0]); j++) {
crypto/krb5/src/lib/crypto/crypto_tests/vectors.c
409
test[j].count, test[j].pass);
crypto/krb5/src/lib/crypto/crypto_tests/vectors.c
410
if (isprint(test[j].salt[0]))
crypto/krb5/src/lib/crypto/crypto_tests/vectors.c
411
printf("\"%s\")\n", test[j].salt);
crypto/krb5/src/lib/crypto/crypto_tests/vectors.c
413
char *s = test[j].salt;
crypto/krb5/src/lib/crypto/crypto_tests/vectors.c
421
pass.data = test[j].pass;
crypto/krb5/src/lib/crypto/crypto_tests/vectors.c
423
salt.data = test[j].salt;
crypto/krb5/src/lib/crypto/crypto_tests/vectors.c
425
err = krb5int_pbkdf2_hmac_sha1 (&d, test[j].count, &pass, &salt);
crypto/krb5/src/lib/crypto/crypto_tests/vectors.c
435
err = krb5int_pbkdf2_hmac_sha1 (&d, test[j].count, &pass, &salt);
crypto/krb5/src/lib/gssapi/generic/t_seqstate.c
171
struct test *t;
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
276
const struct test *t;
crypto/krb5/src/lib/krb5/krb/t_ad_fx_armor.c
23
test(krb5_init_context(&context));
crypto/krb5/src/lib/krb5/krb/t_ad_fx_armor.c
26
test(krb5_cc_default(context, &ccache));
crypto/krb5/src/lib/krb5/krb/t_ad_fx_armor.c
27
test(krb5_cc_get_principal(context, ccache, &creds.client));
crypto/krb5/src/lib/krb5/krb/t_ad_fx_armor.c
28
test(krb5_parse_name(context, argv[1], &creds.server));
crypto/krb5/src/lib/krb5/krb/t_ad_fx_armor.c
29
test(krb5_get_credentials(context, 0, ccache, &creds, &out_creds));
crypto/krb5/src/lib/krb5/krb/t_ad_fx_armor.c
30
test(krb5_cc_destroy(context, ccache));
crypto/krb5/src/lib/krb5/krb/t_ad_fx_armor.c
31
test(krb5_cc_default(context, &ccache));
crypto/krb5/src/lib/krb5/krb/t_ad_fx_armor.c
32
test(krb5_cc_initialize(context, ccache, out_creds->client));
crypto/krb5/src/lib/krb5/krb/t_ad_fx_armor.c
33
test(krb5_cc_store_cred(context, ccache, out_creds));
crypto/krb5/src/lib/krb5/krb/t_ad_fx_armor.c
34
test(krb5_cc_close(context,ccache));
crypto/krb5/src/lib/krb5/krb/t_sname_match.c
86
struct test *t;
crypto/krb5/src/plugins/preauth/spake/t_vectors.c
382
run_test(const struct test *t)
crypto/krb5/src/util/support/fnmatch.c
100
} else if (c == test)
crypto/krb5/src/util/support/fnmatch.c
111
char c, test;
crypto/krb5/src/util/support/fnmatch.c
162
while ((test = FOLDCASE(*string, flags)) != EOS) {
crypto/krb5/src/util/support/fnmatch.c
171
if (test == '/' && flags & FNM_PATHNAME)
crypto/krb5/src/util/support/fnmatch.c
68
rangematch(const char *pattern, int test, int flags)
crypto/krb5/src/util/support/fnmatch.c
98
if (c <= test && test <= c2)
crypto/krb5/src/util/support/t_base64.c
75
const struct test *t;
crypto/krb5/src/util/support/t_utf16.c
86
struct test *t;
crypto/openssh/openbsd-compat/fnmatch.c
104
classmatch(const char *pattern, char test, int foldcase, const char **ep)
crypto/openssh/openbsd-compat/fnmatch.c
129
if (cc->isctype((unsigned char)test))
crypto/openssh/openbsd-compat/regress/strduptest.c
42
test("");
crypto/openssh/openbsd-compat/regress/strduptest.c
43
test("a");
crypto/openssh/openbsd-compat/regress/strduptest.c
44
test("\0");
crypto/openssh/openbsd-compat/regress/strduptest.c
45
test("abcdefghijklmnopqrstuvwxyz");
crypto/openssh/openbsd-compat/regress/strtonumtest.c
62
test("1", 0, 10, 1);
crypto/openssh/openbsd-compat/regress/strtonumtest.c
63
test("0", -2, 5, 1);
crypto/openssh/openbsd-compat/regress/strtonumtest.c
64
test("0", 2, 5, 0);
crypto/openssh/openbsd-compat/regress/strtonumtest.c
65
test("0", 2, LLONG_MAX, 0);
crypto/openssh/openbsd-compat/regress/strtonumtest.c
66
test("-2", 0, LLONG_MAX, 0);
crypto/openssh/openbsd-compat/regress/strtonumtest.c
67
test("0", -5, LLONG_MAX, 1);
crypto/openssh/openbsd-compat/regress/strtonumtest.c
68
test("-3", -3, LLONG_MAX, 1);
crypto/openssh/openbsd-compat/regress/strtonumtest.c
69
test("-9223372036854775808", LLONG_MIN, LLONG_MAX, 1);
crypto/openssh/openbsd-compat/regress/strtonumtest.c
70
test("9223372036854775807", LLONG_MIN, LLONG_MAX, 1);
crypto/openssh/openbsd-compat/regress/strtonumtest.c
71
test("-9223372036854775809", LLONG_MIN, LLONG_MAX, 0);
crypto/openssh/openbsd-compat/regress/strtonumtest.c
72
test("9223372036854775808", LLONG_MIN, LLONG_MAX, 0);
crypto/openssh/openbsd-compat/regress/strtonumtest.c
73
test("1000000000000000000000000", LLONG_MIN, LLONG_MAX, 0);
crypto/openssh/openbsd-compat/regress/strtonumtest.c
74
test("-1000000000000000000000000", LLONG_MIN, LLONG_MAX, 0);
crypto/openssh/openbsd-compat/regress/strtonumtest.c
75
test("-2", 10, -1, 0);
crypto/openssh/openbsd-compat/regress/strtonumtest.c
76
test("-2", -10, -1, 1);
crypto/openssh/openbsd-compat/regress/strtonumtest.c
77
test("-20", -10, -1, 0);
crypto/openssh/openbsd-compat/regress/strtonumtest.c
78
test("20", -10, -1, 0);
crypto/openssh/servconf.c
1128
if (ci == NULL || (ci->test && ci->user == NULL)) {
crypto/openssh/servconf.c
1140
if (ci == NULL || (ci->test && ci->user == NULL)) {
crypto/openssh/servconf.c
1154
if (ci == NULL || (ci->test && ci->host == NULL)) {
crypto/openssh/servconf.c
1166
if (ci == NULL || (ci->test && ci->address == NULL)) {
crypto/openssh/servconf.c
1189
if (ci == NULL || (ci->test && ci->laddress == NULL)) {
crypto/openssh/servconf.c
1221
if (ci == NULL || (ci->test && ci->lport == -1)) {
crypto/openssh/servconf.c
1235
if (ci == NULL || (ci->test && ci->rdomain == NULL)) {
crypto/openssh/servconf.h
268
int test; /* test mode, allow some attributes to be
crypto/openssh/sshd.c
1347
connection_info->test = 1;
crypto/openssl/apps/s_client.c
2370
BIO *test;
crypto/openssl/apps/s_client.c
2372
test = BIO_new(BIO_f_nbio_test());
crypto/openssl/apps/s_client.c
2373
if (test == NULL) {
crypto/openssl/apps/s_client.c
2378
sbio = BIO_push(test, sbio);
crypto/openssl/apps/s_server.c
2651
BIO *test;
crypto/openssl/apps/s_server.c
2653
test = BIO_new(BIO_f_nbio_test());
crypto/openssl/apps/s_server.c
2654
if (test == NULL) {
crypto/openssl/apps/s_server.c
2660
sbio = BIO_push(test, sbio);
crypto/openssl/apps/s_server.c
3321
BIO *test;
crypto/openssl/apps/s_server.c
3323
test = BIO_new(BIO_f_nbio_test());
crypto/openssl/apps/s_server.c
3324
if (test == NULL) {
crypto/openssl/apps/s_server.c
3330
sbio = BIO_push(test, sbio);
crypto/openssl/crypto/engine/eng_openssl.c
215
memcpy(&test(ctx)->key[0], key, n);
crypto/openssl/crypto/engine/eng_openssl.c
216
RC4_set_key(&test(ctx)->ks, n, test(ctx)->key);
crypto/openssl/crypto/engine/eng_openssl.c
226
RC4(&test(ctx)->ks, inl, in, out);
crypto/openssl/crypto/ffc/ffc_params_generate.c
200
BIGNUM *W, *X, *tmp, *c, *test;
crypto/openssl/crypto/ffc/ffc_params_generate.c
206
test = BN_CTX_get(ctx);
crypto/openssl/crypto/ffc/ffc_params_generate.c
211
if (!BN_lshift(test, BN_value_one(), L - 1))
crypto/openssl/crypto/ffc/ffc_params_generate.c
263
|| !BN_add(X, X, test)
crypto/openssl/crypto/ffc/ffc_params_generate.c
286
if (BN_cmp(p, test) >= 0) {
crypto/openssl/crypto/ffc/ffc_params_generate.c
525
BIGNUM *tmp, *pm1, *e, *test;
crypto/openssl/crypto/ffc/ffc_params_generate.c
582
test = BN_CTX_get(ctx);
crypto/openssl/crypto/ffc/ffc_params_generate.c
682
if (!BN_lshift(test, BN_value_one(), L - 1))
crypto/openssl/crypto/ffc/ffc_params_generate.c
817
BIGNUM *r0, *test, *tmp, *g = NULL, *q = NULL, *p = NULL;
crypto/openssl/crypto/ffc/ffc_params_generate.c
897
test = BN_CTX_get(ctx);
crypto/openssl/crypto/ffc/ffc_params_generate.c
898
if (test == NULL)
crypto/openssl/crypto/ffc/ffc_params_generate.c
901
if (!BN_lshift(test, BN_value_one(), L - 1))
crypto/openssl/crypto/ffc/ffc_params_generate.c
993
if (!BN_sub(test, p, BN_value_one()))
crypto/openssl/crypto/ffc/ffc_params_generate.c
996
if (!BN_div(r0, NULL, test, q, ctx))
crypto/openssl/crypto/ffc/ffc_params_generate.c
998
if (!generate_unverifiable_g(ctx, mont, g, tmp, p, r0, test, &hret))
crypto/openssl/crypto/rsa/rsa_local.h
192
int ossl_rsa_fips186_4_gen_prob_primes(RSA *rsa, RSA_ACVP_TEST *test,
crypto/openssl/crypto/rsa/rsa_sp800_56b_gen.c
55
int ossl_rsa_fips186_4_gen_prob_primes(RSA *rsa, RSA_ACVP_TEST *test,
crypto/openssl/crypto/rsa/rsa_sp800_56b_gen.c
70
if (test != NULL) {
crypto/openssl/crypto/rsa/rsa_sp800_56b_gen.c
71
Xp1 = test->Xp1;
crypto/openssl/crypto/rsa/rsa_sp800_56b_gen.c
72
Xp2 = test->Xp2;
crypto/openssl/crypto/rsa/rsa_sp800_56b_gen.c
73
Xq1 = test->Xq1;
crypto/openssl/crypto/rsa/rsa_sp800_56b_gen.c
74
Xq2 = test->Xq2;
crypto/openssl/crypto/rsa/rsa_sp800_56b_gen.c
75
Xp = test->Xp;
crypto/openssl/crypto/rsa/rsa_sp800_56b_gen.c
76
Xq = test->Xq;
crypto/openssl/crypto/rsa/rsa_sp800_56b_gen.c
77
p1 = test->p1;
crypto/openssl/crypto/rsa/rsa_sp800_56b_gen.c
78
p2 = test->p2;
crypto/openssl/crypto/rsa/rsa_sp800_56b_gen.c
79
q1 = test->q1;
crypto/openssl/crypto/rsa/rsa_sp800_56b_gen.c
80
q2 = test->q2;
crypto/openssl/crypto/sha/keccak1600.c
1193
unsigned char test[168] = { '\xf3', '\x3' };
crypto/openssl/crypto/sha/keccak1600.c
1263
test[167] = '\x80';
crypto/openssl/crypto/sha/keccak1600.c
1264
SHA3_sponge(test, sizeof(test), out, sizeof(out), sizeof(test));
crypto/openssl/include/internal/refcount.h
292
#define REF_ASSERT_ISNT(test) \
crypto/openssl/include/internal/refcount.h
293
(void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
crypto/openssl/providers/fips/self_test_kats.c
297
EVP_RAND_CTX *test = NULL, *drbg = NULL;
crypto/openssl/providers/fips/self_test_kats.c
310
test = EVP_RAND_CTX_new(rand, NULL);
crypto/openssl/providers/fips/self_test_kats.c
312
if (test == NULL)
crypto/openssl/providers/fips/self_test_kats.c
317
if (!EVP_RAND_CTX_set_params(test, drbg_params))
crypto/openssl/providers/fips/self_test_kats.c
324
drbg = EVP_RAND_CTX_new(rand, test);
crypto/openssl/providers/fips/self_test_kats.c
343
if (!EVP_RAND_instantiate(test, strength, 0, NULL, 0, drbg_params))
crypto/openssl/providers/fips/self_test_kats.c
352
if (!EVP_RAND_CTX_set_params(test, drbg_params))
crypto/openssl/providers/fips/self_test_kats.c
363
if (!EVP_RAND_CTX_set_params(test, drbg_params))
crypto/openssl/providers/fips/self_test_kats.c
392
EVP_RAND_CTX_free(test);
crypto/openssl/test/asynciotest.c
289
static int test_asyncio(int test)
crypto/openssl/test/asynciotest.c
311
if (test == 1)
crypto/openssl/test/bioprinttest.c
190
static int dofptest(int test, int sub, double val, const char *width, int prec)
crypto/openssl/test/bioprinttest.c
210
printf(" /* %d.%02d */ { \"%s\"", test, sub, result);
crypto/openssl/test/bioprinttest.c
213
} else if (!TEST_str_eq(fpexpected[test][sub][i], result)) {
crypto/openssl/test/bioprinttest.c
215
test, format, fpexpected[test][sub][i], result);
crypto/openssl/test/bntest.c
1980
const MPITEST *test = &kSignedTests_BE[i];
crypto/openssl/test/bntest.c
1985
|| !TEST_true(BN_asc2bn(&bn, test->base10)))
crypto/openssl/test/bntest.c
1993
i = sizeof(scratch) - test->mpi_len;
crypto/openssl/test/bntest.c
1997
|| !TEST_mem_eq(test->mpi, test->mpi_len, scratch + i, test->mpi_len))
crypto/openssl/test/bntest.c
2020
i = sizeof(reversed) - test->mpi_len;
crypto/openssl/test/bntest.c
2024
|| !TEST_mem_eq(test->mpi, test->mpi_len, reversed + i, test->mpi_len))
crypto/openssl/test/bntest.c
2247
const MPITEST *test = &kMPITests[i];
crypto/openssl/test/bntest.c
2254
|| !TEST_true(BN_asc2bn(&bn, test->base10)))
crypto/openssl/test/bntest.c
2261
|| !TEST_mem_eq(test->mpi, test->mpi_len, scratch, mpi_len))
crypto/openssl/test/bntest.c
3093
const MOD_EXP_TEST *test = &ModExpTests[i];
crypto/openssl/test/bntest.c
3100
|| !TEST_true(BN_dec2bn(&base, test->base))
crypto/openssl/test/bntest.c
3101
|| !TEST_true(BN_dec2bn(&exponent, test->exp))
crypto/openssl/test/bntest.c
3102
|| !TEST_true(BN_dec2bn(&modulo, test->mod)))
crypto/openssl/test/bntest.c
3111
if (!TEST_mem_eq(s, strlen(s), test->res, strlen(test->res)))
crypto/openssl/test/bntest.c
3127
const MOD_EXP_TEST *test = &ModExpTests[i];
crypto/openssl/test/bntest.c
3134
|| !TEST_true(BN_dec2bn(&base, test->base))
crypto/openssl/test/bntest.c
3135
|| !TEST_true(BN_dec2bn(&exponent, test->exp))
crypto/openssl/test/bntest.c
3136
|| !TEST_true(BN_dec2bn(&modulo, test->mod)))
crypto/openssl/test/bntest.c
3149
if (!TEST_mem_eq(s, strlen(s), test->res, strlen(test->res)))
crypto/openssl/test/cert_comp_test.c
123
static int test_ssl_cert_comp(int test)
crypto/openssl/test/cert_comp_test.c
157
if (test == 3 && expected_client == expected_server) {
crypto/openssl/test/cert_comp_test.c
167
if (test == 3) {
crypto/openssl/test/cert_comp_test.c
182
if (test == 2) {
crypto/openssl/test/cert_comp_test.c
188
if (test == 1 || test == 2 || test == 3) {
crypto/openssl/test/cert_comp_test.c
204
if (test == 0) {
crypto/openssl/test/cert_comp_test.c
211
if (test == 3) {
crypto/openssl/test/cert_comp_test.c
231
if (test == 2) {
crypto/openssl/test/cmactest.c
121
|| !TEST_false(CMAC_Update(ctx, test[0].data, test[0].data_len))
crypto/openssl/test/cmactest.c
125
|| !TEST_false(CMAC_Update(ctx, test[0].data, test[0].data_len))
crypto/openssl/test/cmactest.c
127
|| !TEST_true(CMAC_Init(ctx, test[0].key, test[0].key_len, NULL, NULL))
crypto/openssl/test/cmactest.c
129
|| !TEST_true(CMAC_Update(ctx, test[0].data, test[0].data_len))
crypto/openssl/test/cmactest.c
133
|| !TEST_false(CMAC_Update(ctx, test[0].data, test[0].data_len)))
crypto/openssl/test/cmactest.c
154
for (case_idx = 0; case_idx < OSSL_NELEM(test); case_idx++) {
crypto/openssl/test/cmactest.c
155
size_t str_len = strlen((char *)test[case_idx].data);
crypto/openssl/test/cmactest.c
156
size_t fill_len = test[case_idx].data_len - str_len;
crypto/openssl/test/cmactest.c
160
memcpy(&test[case_idx].data[fill_idx], test[case_idx].data, str_len);
crypto/openssl/test/cmactest.c
164
memcpy(&test[case_idx].data[fill_idx], test[case_idx].data, fill_len);
crypto/openssl/test/cmactest.c
170
if (!TEST_true(CMAC_Init(ctx, test[0].key, test[0].key_len,
crypto/openssl/test/cmactest.c
172
|| !TEST_true(CMAC_Update(ctx, test[0].data, test[0].data_len))
crypto/openssl/test/cmactest.c
177
if (!TEST_str_eq(p, test[0].mac))
crypto/openssl/test/cmactest.c
180
if (!TEST_true(CMAC_Init(ctx, test[1].key, test[1].key_len,
crypto/openssl/test/cmactest.c
182
|| !TEST_true(CMAC_Update(ctx, test[1].data, test[1].data_len))
crypto/openssl/test/cmactest.c
187
if (!TEST_str_eq(p, test[1].mac))
crypto/openssl/test/cmactest.c
190
if (!TEST_true(CMAC_Init(ctx, test[2].key, test[2].key_len, NULL, NULL))
crypto/openssl/test/cmactest.c
191
|| !TEST_true(CMAC_Update(ctx, test[2].data, test[2].data_len))
crypto/openssl/test/cmactest.c
195
if (!TEST_str_eq(p, test[2].mac))
crypto/openssl/test/cmactest.c
199
|| !TEST_true(CMAC_Update(ctx, test[2].data, test[2].data_len))
crypto/openssl/test/cmactest.c
203
if (!TEST_str_eq(p, test[2].mac))
crypto/openssl/test/cmactest.c
208
|| !TEST_true(CMAC_Init(ctx, test[2].key, test[2].key_len, NULL, NULL))
crypto/openssl/test/cmactest.c
209
|| !TEST_true(CMAC_Update(ctx, test[2].data, test[2].data_len))
crypto/openssl/test/cmactest.c
213
if (!TEST_str_eq(p, test[2].mac))
crypto/openssl/test/cmactest.c
217
if (!TEST_true(CMAC_Init(ctx, test[3].key, test[3].key_len,
crypto/openssl/test/cmactest.c
219
|| !TEST_true(CMAC_Update(ctx, test[3].data, test[3].data_len))
crypto/openssl/test/cmactest.c
223
if (!TEST_str_eq(p, test[3].mac))
crypto/openssl/test/cmactest.c
226
if (!TEST_true(CMAC_Init(ctx, test[4].key, test[4].key_len,
crypto/openssl/test/cmactest.c
228
|| !TEST_true(CMAC_Update(ctx, test[4].data, test[4].data_len))
crypto/openssl/test/cmactest.c
232
if (!TEST_str_eq(p, test[4].mac))
crypto/openssl/test/cmactest.c
235
if (!TEST_true(CMAC_Init(ctx, test[5].key, test[5].key_len,
crypto/openssl/test/cmactest.c
237
|| !TEST_true(CMAC_Update(ctx, test[5].data, test[5].data_len))
crypto/openssl/test/cmactest.c
241
if (!TEST_str_eq(p, test[5].mac))
crypto/openssl/test/cmactest.c
245
if (!TEST_true(CMAC_Init(ctx, test[6].key, test[6].key_len,
crypto/openssl/test/cmactest.c
247
|| !TEST_true(CMAC_Update(ctx, test[6].data, test[6].data_len))
crypto/openssl/test/cmactest.c
251
if (!TEST_str_eq(p, test[6].mac))
crypto/openssl/test/cmactest.c
256
if (!TEST_true(CMAC_Init(ctx, test[7].key, test[7].key_len,
crypto/openssl/test/cmactest.c
258
|| !TEST_true(CMAC_Update(ctx, test[7].data, test[7].data_len))
crypto/openssl/test/cmactest.c
262
if (!TEST_str_eq(p, test[7].mac))
crypto/openssl/test/cmactest.c
285
if (!TEST_true(CMAC_Init(ctx, test[0].key, test[0].key_len,
crypto/openssl/test/cmactest.c
287
|| !TEST_true(CMAC_Update(ctx, test[0].data, test[0].data_len))
crypto/openssl/test/cmactest.c
293
if (!TEST_str_eq(p, test[0].mac))
crypto/openssl/test/cmactest.c
40
} test[] = {
crypto/openssl/test/ectest.c
1289
const struct nistp_test_params *test = nistp_tests_params + idx;
crypto/openssl/test/ectest.c
1298
test->degree);
crypto/openssl/test/ectest.c
1310
|| !TEST_ptr(NISTP = EC_GROUP_new_by_curve_name(test->nid))
crypto/openssl/test/ectest.c
1311
|| !TEST_true(BN_hex2bn(&p, test->p))
crypto/openssl/test/ectest.c
1313
|| !TEST_true(BN_hex2bn(&a, test->a))
crypto/openssl/test/ectest.c
1314
|| !TEST_true(BN_hex2bn(&b, test->b))
crypto/openssl/test/ectest.c
1320
|| !TEST_true(BN_hex2bn(&x, test->Qx))
crypto/openssl/test/ectest.c
1321
|| !TEST_true(BN_hex2bn(&y, test->Qy))
crypto/openssl/test/ectest.c
1331
|| !TEST_true(BN_hex2bn(&x, test->Gx))
crypto/openssl/test/ectest.c
1332
|| !TEST_true(BN_hex2bn(&y, test->Gy))
crypto/openssl/test/ectest.c
1334
|| !TEST_true(BN_hex2bn(&order, test->order))
crypto/openssl/test/ectest.c
1336
|| !TEST_int_eq(EC_GROUP_get_degree(NISTP), test->degree))
crypto/openssl/test/ectest.c
1340
if (!TEST_true(BN_hex2bn(&n, test->d)))
crypto/openssl/test/ectest.c
779
struct c2_curve_test *const test = char2_curve_tests + n;
crypto/openssl/test/ectest.c
789
|| !TEST_true(BN_hex2bn(&p, test->p))
crypto/openssl/test/ectest.c
790
|| !TEST_true(BN_hex2bn(&a, test->a))
crypto/openssl/test/ectest.c
791
|| !TEST_true(BN_hex2bn(&b, test->b))
crypto/openssl/test/ectest.c
796
|| !TEST_true(BN_hex2bn(&x, test->x))
crypto/openssl/test/ectest.c
797
|| !TEST_true(BN_hex2bn(&y, test->y))
crypto/openssl/test/ectest.c
809
test->y_bit,
crypto/openssl/test/ectest.c
812
|| !TEST_true(BN_hex2bn(&z, test->order))
crypto/openssl/test/ectest.c
813
|| !TEST_true(BN_hex2bn(&cof, test->cof))
crypto/openssl/test/ectest.c
817
TEST_info("%s -- Generator", test->name);
crypto/openssl/test/ectest.c
821
if (!TEST_true(BN_hex2bn(&z, test->y))
crypto/openssl/test/ectest.c
832
|| !TEST_true(BN_hex2bn(&z, test->order))
crypto/openssl/test/ectest.c
833
|| !TEST_true(BN_hex2bn(&cof, test->cof))
crypto/openssl/test/ectest.c
836
TEST_info("%s -- Generator:", test->name);
crypto/openssl/test/ectest.c
841
if (!TEST_int_eq(EC_GROUP_get_degree(group), test->degree)
crypto/openssl/test/helpers/handshake.c
490
const SSL_TEST_CTX *test,
crypto/openssl/test/helpers/handshake.c
500
test->max_fragment_size),
crypto/openssl/test/helpers/handshake.c
505
test->max_fragment_size),
crypto/openssl/test/helpers/handshake.c
510
test->max_fragment_size),
crypto/openssl/test/helpers/handshake.c
704
if (test->compress_certificates) {
crypto/openssl/test/helpers/ssl_test_ctx.c
295
IMPLEMENT_SSL_TEST_BOOL_OPTION(SSL_TEST_CTX, test, compression_expected)
crypto/openssl/test/helpers/ssl_test_ctx.c
351
IMPLEMENT_SSL_TEST_STRING_OPTION(SSL_TEST_CTX, test, expected_npn_protocol)
crypto/openssl/test/helpers/ssl_test_ctx.c
354
IMPLEMENT_SSL_TEST_STRING_OPTION(SSL_TEST_CTX, test, expected_alpn_protocol)
crypto/openssl/test/helpers/ssl_test_ctx.c
363
IMPLEMENT_SSL_TEST_STRING_OPTION(SSL_TEST_CTX, test, expected_session_ticket_app_data)
crypto/openssl/test/helpers/ssl_test_ctx.c
443
IMPLEMENT_SSL_TEST_BOOL_OPTION(SSL_TEST_CTX, test, resumption_expected)
crypto/openssl/test/helpers/ssl_test_ctx.c
445
IMPLEMENT_SSL_TEST_BOOL_OPTION(SSL_TEST_CTX, test, use_sctp)
crypto/openssl/test/helpers/ssl_test_ctx.c
446
IMPLEMENT_SSL_TEST_BOOL_OPTION(SSL_TEST_CTX, test, compress_certificates)
crypto/openssl/test/helpers/ssl_test_ctx.c
447
IMPLEMENT_SSL_TEST_BOOL_OPTION(SSL_TEST_CTX, test, enable_client_sctp_label_bug)
crypto/openssl/test/helpers/ssl_test_ctx.c
448
IMPLEMENT_SSL_TEST_BOOL_OPTION(SSL_TEST_CTX, test, enable_server_sctp_label_bug)
crypto/openssl/test/helpers/ssl_test_ctx.c
478
IMPLEMENT_SSL_TEST_INT_OPTION(SSL_TEST_CTX, test, app_data_size)
crypto/openssl/test/helpers/ssl_test_ctx.c
482
IMPLEMENT_SSL_TEST_INT_OPTION(SSL_TEST_CTX, test, max_fragment_size)
crypto/openssl/test/helpers/ssl_test_ctx.c
641
IMPLEMENT_SSL_TEST_STRING_OPTION(SSL_TEST_CTX, test, expected_cipher)
crypto/openssl/test/helpers/ssl_test_ctx.c
650
IMPLEMENT_SSL_TEST_STRING_OPTION(SSL_TEST_CTX, test, fips_version)
crypto/openssl/test/hexstr_test.c
102
if (test->sep == ':') {
crypto/openssl/test/hexstr_test.c
103
if (!TEST_str_eq(out, test->in))
crypto/openssl/test/hexstr_test.c
105
} else if (!TEST_str_ne(out, test->in)) {
crypto/openssl/test/hexstr_test.c
109
if (!TEST_ptr_null(buf = OPENSSL_hexstr2buf(test->in, &len)))
crypto/openssl/test/hexstr_test.c
124
struct testdata *test = &tbl_testdata[test_index];
crypto/openssl/test/hexstr_test.c
126
return TEST_true(OPENSSL_hexstr2buf_ex(buf, sizeof(buf), &len, test->in, ':'))
crypto/openssl/test/hexstr_test.c
127
&& TEST_mem_eq(buf, len, test->expected, test->expected_len)
crypto/openssl/test/hexstr_test.c
132
&& TEST_str_eq(out, test->in)
crypto/openssl/test/hexstr_test.c
74
struct testdata *test = &tbl_testdata[test_index];
crypto/openssl/test/hexstr_test.c
76
if (!TEST_ptr(buf = ossl_hexstr2buf_sep(test->in, &len, test->sep))
crypto/openssl/test/hexstr_test.c
77
|| !TEST_mem_eq(buf, len, test->expected, test->expected_len)
crypto/openssl/test/hexstr_test.c
78
|| !TEST_ptr(out = ossl_buf2hexstr_sep(buf, len, test->sep))
crypto/openssl/test/hexstr_test.c
79
|| !TEST_str_eq(out, test->in))
crypto/openssl/test/hexstr_test.c
95
struct testdata *test = &tbl_testdata[test_index];
crypto/openssl/test/hexstr_test.c
97
if (test->sep != '_') {
crypto/openssl/test/hexstr_test.c
98
if (!TEST_ptr(buf = OPENSSL_hexstr2buf(test->in, &len))
crypto/openssl/test/hexstr_test.c
99
|| !TEST_mem_eq(buf, len, test->expected, test->expected_len)
crypto/openssl/test/hmactest.c
100
test[idx].data, test[idx].data_len, NULL, NULL),
crypto/openssl/test/hmactest.c
103
return TEST_ptr(p) && TEST_str_eq(p, test[idx].digest);
crypto/openssl/test/hmactest.c
116
|| !TEST_false(HMAC_Update(ctx, test[4].data, test[4].data_len))
crypto/openssl/test/hmactest.c
118
|| !TEST_false(HMAC_Update(ctx, test[4].data, test[4].data_len)))
crypto/openssl/test/hmactest.c
142
|| !TEST_false(HMAC_Update(ctx, test[4].data, test[4].data_len))
crypto/openssl/test/hmactest.c
143
|| !TEST_false(HMAC_Init_ex(ctx, test[4].key, -1, EVP_sha1(), NULL)))
crypto/openssl/test/hmactest.c
146
if (!TEST_true(HMAC_Init_ex(ctx, test[4].key, test[4].key_len, EVP_sha1(), NULL))
crypto/openssl/test/hmactest.c
147
|| !TEST_true(HMAC_Update(ctx, test[4].data, test[4].data_len))
crypto/openssl/test/hmactest.c
152
if (!TEST_ptr(p) || !TEST_str_eq(p, test[4].digest))
crypto/openssl/test/hmactest.c
158
if (!TEST_true(HMAC_Init_ex(ctx, test[5].key, test[5].key_len, EVP_sha256(), NULL))
crypto/openssl/test/hmactest.c
160
|| !TEST_true(HMAC_Update(ctx, test[5].data, test[5].data_len))
crypto/openssl/test/hmactest.c
165
if (!TEST_ptr(p) || !TEST_str_eq(p, test[5].digest))
crypto/openssl/test/hmactest.c
168
if (!TEST_true(HMAC_Init_ex(ctx, test[6].key, test[6].key_len, NULL, NULL))
crypto/openssl/test/hmactest.c
169
|| !TEST_true(HMAC_Update(ctx, test[6].data, test[6].data_len))
crypto/openssl/test/hmactest.c
173
if (!TEST_ptr(p) || !TEST_str_eq(p, test[6].digest))
crypto/openssl/test/hmactest.c
178
|| !TEST_true(HMAC_Update(ctx, test[6].data, test[6].data_len))
crypto/openssl/test/hmactest.c
182
if (!TEST_ptr(p) || !TEST_str_eq(p, test[6].digest))
crypto/openssl/test/hmactest.c
190
|| !TEST_true(HMAC_Update(ctx, test[6].data, test[6].data_len))
crypto/openssl/test/hmactest.c
194
if (!TEST_ptr(p) || !TEST_str_eq(p, test[6].digest))
crypto/openssl/test/hmactest.c
208
p = pt(HMAC(EVP_sha1(), NULL, 0, test[4].data, test[4].data_len,
crypto/openssl/test/hmactest.c
211
if (!TEST_ptr(p) || !TEST_str_eq(p, test[4].digest))
crypto/openssl/test/hmactest.c
228
if (!TEST_true(HMAC_Init_ex(ctx, test[5].key, test[5].key_len, EVP_sha256(), NULL))
crypto/openssl/test/hmactest.c
229
|| !TEST_true(HMAC_Update(ctx, test[5].data, test[5].data_len))
crypto/openssl/test/hmactest.c
231
|| !TEST_false(HMAC_Update(ctx, test[5].data, test[5].data_len))
crypto/openssl/test/hmactest.c
254
if (!TEST_true(HMAC_Init_ex(ctx, test[7].key, test[7].key_len, EVP_sha1(), NULL))
crypto/openssl/test/hmactest.c
255
|| !TEST_true(HMAC_Update(ctx, test[7].data, test[7].data_len))
crypto/openssl/test/hmactest.c
261
if (!TEST_ptr(p) || !TEST_str_eq(p, test[7].digest))
crypto/openssl/test/hmactest.c
41
} test[8] = {
crypto/openssl/test/hmactest.c
92
ebcdic2ascii(test[0].data, test[0].data, test[0].data_len);
crypto/openssl/test/hmactest.c
93
ebcdic2ascii(test[1].data, test[1].data, test[1].data_len);
crypto/openssl/test/hmactest.c
94
ebcdic2ascii(test[2].key, test[2].key, test[2].key_len);
crypto/openssl/test/hmactest.c
95
ebcdic2ascii(test[2].data, test[2].data, test[2].data_len);
crypto/openssl/test/hmactest.c
99
test[idx].key, test[idx].key_len,
crypto/openssl/test/lhash_test.c
195
IMPLEMENT_HT_VALUE_TYPE_FNS(int, test, static)
crypto/openssl/test/pkcs12_api_test.c
159
static int pkcs12_create_ex2_test(int test)
crypto/openssl/test/pkcs12_api_test.c
171
if (test == 0) {
crypto/openssl/test/pkcs12_api_test.c
195
} else if (test == 1) {
crypto/openssl/test/pkcs12_api_test.c
206
} else if (test == 2) {
crypto/openssl/test/poly1305_internal_test.c
1102
const TESTDATA test = tests[idx];
crypto/openssl/test/poly1305_internal_test.c
1103
const unsigned char *in = test.input.data;
crypto/openssl/test/poly1305_internal_test.c
1104
size_t inlen = test.input.size;
crypto/openssl/test/poly1305_internal_test.c
1105
const unsigned char *key = test.key.data;
crypto/openssl/test/poly1305_internal_test.c
1106
const unsigned char *expected = test.expected.data;
crypto/openssl/test/poly1305_internal_test.c
1107
size_t expectedlen = test.expected.size;
crypto/openssl/test/servername_test.c
244
static int test_servername(int test)
crypto/openssl/test/servername_test.c
250
return sni_test_fns[test]();
crypto/openssl/test/siphash_internal_test.c
1838
TESTDATA test = tests[idx];
crypto/openssl/test/siphash_internal_test.c
1841
size_t inlen = test.idx;
crypto/openssl/test/siphash_internal_test.c
1842
unsigned char *expected = test.expected.data;
crypto/openssl/test/siphash_internal_test.c
1843
size_t expectedlen = test.expected.size;
crypto/openssl/test/sslapitest.c
1492
static int test_ktls(int test)
crypto/openssl/test/sslapitest.c
1497
OPENSSL_assert(test / 4 < (int)NUM_KTLS_TEST_CIPHERS);
crypto/openssl/test/sslapitest.c
1498
cipher = &ktls_test_ciphers[test / 4];
crypto/openssl/test/sslapitest.c
1500
cis_ktls = (test & 1) != 0;
crypto/openssl/test/sslapitest.c
1501
sis_ktls = (test & 2) != 0;
crypto/openssl/test/sslapitest.c
1507
static int test_ktls_sendfile(int test)
crypto/openssl/test/sslapitest.c
1510
int tst = test >> 1;
crypto/openssl/test/sslapitest.c
1516
test & 1);
crypto/openssl/test/sslapitest.c
9602
static int test_session_timeout(int test)
crypto/openssl/test/sslbuffertest.c
113
if (test >= 1 && (!TEST_true(SSL_free_buffers(clientssl)) || !TEST_true(checkbuffers(clientssl, 0))))
crypto/openssl/test/sslbuffertest.c
115
if (test >= 2 && (!TEST_true(SSL_alloc_buffers(clientssl)) || !TEST_true(checkbuffers(clientssl, 1))))
crypto/openssl/test/sslbuffertest.c
118
if (test >= 3 && (!TEST_true(SSL_alloc_buffers(clientssl)) || !TEST_true(checkbuffers(clientssl, 1))))
crypto/openssl/test/sslbuffertest.c
120
if (test >= 4 && (!TEST_true(SSL_free_buffers(clientssl)) || !TEST_true(checkbuffers(clientssl, 0))))
crypto/openssl/test/sslbuffertest.c
131
TEST_error("Test %d failed: Failed to write app data\n", test);
crypto/openssl/test/sslbuffertest.c
144
if (test >= 5 && (!TEST_true(SSL_free_buffers(serverssl)) || !TEST_true(checkbuffers(serverssl, 0))))
crypto/openssl/test/sslbuffertest.c
147
if (test >= 6 && (!TEST_true(SSL_free_buffers(serverssl)) || !TEST_true(checkbuffers(serverssl, 0))))
crypto/openssl/test/sslbuffertest.c
149
if (test >= 7 && (!TEST_true(SSL_alloc_buffers(serverssl)) || !TEST_true(checkbuffers(serverssl, 1))))
crypto/openssl/test/sslbuffertest.c
151
if (test >= 8 && (!TEST_true(SSL_free_buffers(serverssl)) || !TEST_true(checkbuffers(serverssl, 0))))
crypto/openssl/test/sslbuffertest.c
161
TEST_error("Test %d failed: Failed to read app data\n", test);
crypto/openssl/test/sslbuffertest.c
194
static int test_free_buffers(int test)
crypto/openssl/test/sslbuffertest.c
201
int i, pipeline = test > 3;
crypto/openssl/test/sslbuffertest.c
208
test -= 4;
crypto/openssl/test/sslbuffertest.c
237
if (test == 0) {
crypto/openssl/test/sslbuffertest.c
262
switch (test) {
crypto/openssl/test/sslbuffertest.c
281
if (test != 3)
crypto/openssl/test/sslbuffertest.c
78
static int test_func(int test)
crypto/openssl/test/sslbuffertest.c
89
TEST_error("Test %d failed: Create SSL objects failed\n", test);
crypto/openssl/test/sslbuffertest.c
94
TEST_error("Test %d failed: Create SSL connection failed\n", test);
crypto/openssl/test/strtoultest.c
62
struct strtoul_test_entry *test = &strtoul_tests[idx];
crypto/openssl/test/strtoultest.c
67
err = OPENSSL_strtoul(test->input, &endptr, test->base, &val);
crypto/openssl/test/strtoultest.c
72
if (!TEST_int_eq(err, test->expect_err))
crypto/openssl/test/strtoultest.c
77
if (!TEST_ptr_eq(endptr, &test->input[test->expect_endptr_offset]))
crypto/openssl/test/strtoultest.c
83
if (test->expect_err == 1) {
crypto/openssl/test/strtoultest.c
84
if (!TEST_ulong_eq(val, test->expect_val))
crypto/openssl/test/test_test.c
22
#define TEST(expected, test) test_case((expected), #test, (test))
crypto/openssl/test/test_test.c
24
static int test_case(int expected, const char *test, int result)
crypto/openssl/test/test_test.c
27
fprintf(stderr, "# FATAL: %s != %d\n", test, expected);
crypto/openssl/test/x509_acert_test.c
125
const struct ietf_type_test_data *test = &ietf_syntax_tests[idx];
crypto/openssl/test/x509_acert_test.c
130
p = test->data;
crypto/openssl/test/x509_acert_test.c
132
ias = d2i_OSSL_IETF_ATTR_SYNTAX(NULL, &p, test->len);
crypto/openssl/test/x509_acert_test.c
134
if ((test->valid && !TEST_ptr(ias))
crypto/openssl/test/x509_acert_test.c
135
|| (!test->valid && !TEST_ptr_null(ias)))
lib/libc/gen/fnmatch.c
236
rangematch(const char *pattern, wchar_t test, const char *string, int flags,
lib/libc/gen/fnmatch.c
262
test = towlower(test);
lib/libc/gen/fnmatch.c
312
if (test != *wp++)
lib/libc/gen/fnmatch.c
361
len = __collate_equiv_match(ec, NULL, 0, test,
lib/libc/gen/fnmatch.c
385
if (iswctype(test, charclass)) {
lib/libc/gen/fnmatch.c
448
c <= test && test <= c2 :
lib/libc/gen/fnmatch.c
449
__wcollate_range_cmp(c, test) <= 0
lib/libc/gen/fnmatch.c
450
&& __wcollate_range_cmp(test, c2) <= 0
lib/libc/gen/fnmatch.c
455
} else if (c == test) {
lib/libc/string/strtok.c
108
char blah[80], test[80];
lib/libc/string/strtok.c
115
strcpy(test, "This;is.a:test:of=the/string\\tokenizer-function.");
lib/libc/string/strtok.c
116
for (word = strtok(test, sep); word; word = strtok(NULL, sep))
lib/libc/string/strtok.c
118
strcpy(test, "This;is.a:test:of=the/string\\tokenizer-function.");
lib/libc/string/strtok.c
120
for (word = strtok_r(test, sep, &brkt); word;
lib/libnv/tests/nv_array_tests.cc
767
nvlist_t *nvl, *test[5], *nasted;
lib/libnv/tests/nv_array_tests.cc
774
for (i = 0; i < nitems(test); i++) {
lib/libnv/tests/nv_array_tests.cc
775
test[i] = nvlist_create(0);
lib/libnv/tests/nv_array_tests.cc
776
ATF_REQUIRE(test[i] != NULL);
lib/libnv/tests/nv_array_tests.cc
777
nvlist_add_number(test[i], "nvl/number", i);
lib/libnv/tests/nv_array_tests.cc
778
ATF_REQUIRE(nvlist_error(test[i]) == 0);
lib/libnv/tests/nv_array_tests.cc
782
nvlist_add_nvlist_array(nvl, "nvl/nvlist_array", test, nitems(test));
lib/libnv/tests/nv_array_tests.cc
786
nvlist_add_nvlist_array(nasted, "nvl/nvl/nvlist_array", test,
lib/libnv/tests/nv_array_tests.cc
787
nitems(test));
lib/libnv/tests/nv_array_tests.cc
801
} else if (index >= 1 && index <= nitems(test)) {
lib/libnv/tests/nv_array_tests.cc
803
} else if (index == nitems(test) + 1) {
lib/libnv/tests/nv_array_tests.cc
805
} else if (index == nitems(test) + 2) {
lib/libnv/tests/nv_array_tests.cc
807
} else if (index >= nitems(test) + 3 &&
lib/libnv/tests/nv_array_tests.cc
808
index <= 2 * nitems(test) + 2) {
lib/libnv/tests/nv_array_tests.cc
810
} else if (index == 2 * nitems(test) + 3) {
lib/libnv/tests/nv_array_tests.cc
826
for (i = 0; i < nitems(test); i++)
lib/libnv/tests/nv_array_tests.cc
827
nvlist_destroy(test[i]);
lib/libnv/tests/nv_array_tests.cc
835
nvlist_t *nvl, *test[5], *nasted;
lib/libnv/tests/nv_array_tests.cc
842
test[i] = nvlist_create(0);
lib/libnv/tests/nv_array_tests.cc
843
ATF_REQUIRE(test[i] != NULL);
lib/libnv/tests/nv_array_tests.cc
844
nvlist_add_number(test[i], "nvl/number", i);
lib/libnv/tests/nv_array_tests.cc
845
ATF_REQUIRE(nvlist_error(test[i]) == 0);
lib/libnv/tests/nv_array_tests.cc
849
nvlist_add_nvlist_array(nvl, "nvl/nvlist_array", test, 5);
lib/libnv/tests/nv_array_tests.cc
853
nvlist_add_nvlist_array(nasted, "nvl/nvl/nvlist_array", test, 5);
lib/libnv/tests/nv_array_tests.cc
900
nvlist_destroy(test[i]);
lib/libutil/tests/trimdomain-nodomain_test.c
60
testit(const char *input, int hostsize, const char *output, const char *test)
lib/libutil/tests/trimdomain-nodomain_test.c
69
printf("not ok %d - %s\n", tests, test);
lib/libutil/tests/trimdomain-nodomain_test.c
72
printf("ok %d - %s\n", tests, test);
lib/libutil/tests/trimdomain_test.c
60
testit(const char *input, int hostsize, const char *output, const char *test)
lib/libutil/tests/trimdomain_test.c
69
printf("not ok %d - %s\n", tests, test);
lib/libutil/tests/trimdomain_test.c
72
printf("ok %d - %s\n", tests, test);
lib/msun/tests/cexp_test.c
196
test(cexp, CMPLXL(finites[i], 0.0),
lib/msun/tests/cexp_test.c
199
test(cexp, CMPLXL(finites[i], -0.0),
lib/msun/tests/cexp_test.c
217
test(cexp, CMPLXL(0.0, finites[i]),
lib/msun/tests/cexp_test.c
220
test(cexp, CMPLXL(-0.0, finites[i]),
lib/msun/tests/cexp_test.c
82
test(cexp, x, result, exceptmask, excepts, checksign); \
lib/msun/tests/ctrig_test.c
100
test(func, x, result, exceptmask, excepts, checksign); \
lib/msun/tests/ctrig_test.c
101
test(func##f, x, result, exceptmask, excepts, checksign); \
lib/msun/tests/exponential_test.c
68
test(exp, x, result, exceptmask, excepts); \
lib/msun/tests/exponential_test.c
69
test(expf, x, result, exceptmask, excepts); \
lib/msun/tests/exponential_test.c
70
test(exp2, x, result, exceptmask, excepts); \
lib/msun/tests/exponential_test.c
71
test(exp2f, x, result, exceptmask, excepts); \
lib/msun/tests/exponential_test.c
80
test(exp2l, x, result, exceptmask, excepts); \
lib/msun/tests/exponential_test.c
86
test(expm1, x, result, exceptmask, excepts); \
lib/msun/tests/exponential_test.c
87
test(expm1f, x, result, exceptmask, excepts); \
lib/msun/tests/fma_test.c
112
test(fmaf, -FLT_MIN, FLT_MIN, 0.0, -0.0,
lib/msun/tests/fma_test.c
114
test(fma, -DBL_MIN, DBL_MIN, 0.0, -0.0,
lib/msun/tests/fma_test.c
116
test(fmal, -LDBL_MIN, LDBL_MIN, 0.0, -0.0,
lib/msun/tests/fma_test.c
150
test(fmaf, FLT_MAX, FLT_MAX, -INFINITY, -INFINITY, ALL_STD_EXCEPT, 0);
lib/msun/tests/fma_test.c
151
test(fma, DBL_MAX, DBL_MAX, -INFINITY, -INFINITY, ALL_STD_EXCEPT, 0);
lib/msun/tests/fma_test.c
152
test(fmal, LDBL_MAX, LDBL_MAX, -INFINITY, -INFINITY,
lib/msun/tests/fma_test.c
154
test(fmaf, FLT_MAX, -FLT_MAX, INFINITY, INFINITY, ALL_STD_EXCEPT, 0);
lib/msun/tests/fma_test.c
155
test(fma, DBL_MAX, -DBL_MAX, INFINITY, INFINITY, ALL_STD_EXCEPT, 0);
lib/msun/tests/fma_test.c
156
test(fmal, LDBL_MAX, -LDBL_MAX, INFINITY, INFINITY,
lib/msun/tests/fma_test.c
171
test(fmaf, FLT_MIN, FLT_MIN, NAN, NAN, ALL_STD_EXCEPT, 0);
lib/msun/tests/fma_test.c
172
test(fma, DBL_MIN, DBL_MIN, NAN, NAN, ALL_STD_EXCEPT, 0);
lib/msun/tests/fma_test.c
173
test(fmal, LDBL_MIN, LDBL_MIN, NAN, NAN, ALL_STD_EXCEPT, 0);
lib/msun/tests/fma_test.c
174
test(fmaf, FLT_MAX, FLT_MAX, NAN, NAN, ALL_STD_EXCEPT, 0);
lib/msun/tests/fma_test.c
175
test(fma, DBL_MAX, DBL_MAX, NAN, NAN, ALL_STD_EXCEPT, 0);
lib/msun/tests/fma_test.c
176
test(fmal, LDBL_MAX, LDBL_MAX, NAN, NAN, ALL_STD_EXCEPT, 0);
lib/msun/tests/fma_test.c
187
test(fmaf, one, one, 0x1.0p-100, 1.0 + FLT_EPSILON,
lib/msun/tests/fma_test.c
189
test(fma, one, one, 0x1.0p-200, 1.0 + DBL_EPSILON,
lib/msun/tests/fma_test.c
191
test(fmal, one, one, 0x1.0p-200, 1.0 + LDBL_EPSILON,
lib/msun/tests/fma_test.c
200
test(fmaf, -one, one, -0x1.0p-100, -(1.0 + FLT_EPSILON),
lib/msun/tests/fma_test.c
202
test(fma, -one, one, -0x1.0p-200, -(1.0 + DBL_EPSILON),
lib/msun/tests/fma_test.c
204
test(fmal, -one, one, -0x1.0p-200, -(1.0 + LDBL_EPSILON),
lib/msun/tests/fma_test.c
213
test(fmaf, one, one, -0x1.0p-100, 1.0 - FLT_EPSILON / 2,
lib/msun/tests/fma_test.c
215
test(fma, one, one, -0x1.0p-200, 1.0 - DBL_EPSILON / 2,
lib/msun/tests/fma_test.c
217
test(fmal, one, one, -0x1.0p-200, 1.0 - LDBL_EPSILON / 2,
lib/msun/tests/fma_test.c
226
test(fmaf, -one, one, 0x1.0p-100, -1.0 + FLT_EPSILON / 2,
lib/msun/tests/fma_test.c
228
test(fma, -one, one, 0x1.0p-200, -1.0 + DBL_EPSILON / 2,
lib/msun/tests/fma_test.c
230
test(fmal, -one, one, 0x1.0p-200, -1.0 + LDBL_EPSILON / 2,
lib/msun/tests/fma_test.c
246
test(fmaf, 0x1.0p-50, 0x1.0p-50, 1.0, 1.0 + FLT_EPSILON,
lib/msun/tests/fma_test.c
248
test(fma, 0x1.0p-100, 0x1.0p-100, 1.0, 1.0 + DBL_EPSILON,
lib/msun/tests/fma_test.c
250
test(fmal, 0x1.0p-100, 0x1.0p-100, 1.0, 1.0 + LDBL_EPSILON,
lib/msun/tests/fma_test.c
259
test(fmaf, -0x1.0p-50, 0x1.0p-50, -1.0, -(1.0 + FLT_EPSILON),
lib/msun/tests/fma_test.c
261
test(fma, -0x1.0p-100, 0x1.0p-100, -1.0, -(1.0 + DBL_EPSILON),
lib/msun/tests/fma_test.c
263
test(fmal, -0x1.0p-100, 0x1.0p-100, -1.0, -(1.0 + LDBL_EPSILON),
lib/msun/tests/fma_test.c
272
test(fmaf, -0x1.0p-50, -0x1.0p-50, -1.0,
lib/msun/tests/fma_test.c
274
test(fma, -0x1.0p-100, -0x1.0p-100, -1.0,
lib/msun/tests/fma_test.c
276
test(fmal, -0x1.0p-100, -0x1.0p-100, -1.0,
lib/msun/tests/fma_test.c
285
test(fmaf, 0x1.0p-50, -0x1.0p-50, 1.0, 1.0 - FLT_EPSILON / 2,
lib/msun/tests/fma_test.c
287
test(fma, 0x1.0p-100, -0x1.0p-100, 1.0, 1.0 - DBL_EPSILON / 2,
lib/msun/tests/fma_test.c
289
test(fmal, 0x1.0p-100, -0x1.0p-100, 1.0, 1.0 - LDBL_EPSILON / 2,
lib/msun/tests/fma_test.c
435
test(fma, 0x1.8000000000001p0, 0x1.8000000000001p0,
lib/msun/tests/fma_test.c
439
test(fma, 0x1.8000000000001p0, 0x1.8000000000001p0,
lib/msun/tests/fma_test.c
443
test(fma, 0x1.8000000000001p0, 0x1.8000000000001p0,
lib/msun/tests/fma_test.c
448
test(fmaf, 0x1.800002p+0, 0x1.800002p+0, -0x1.000002p-46, 0x1.200002p+1,
lib/msun/tests/fma_test.c
451
test(fmaf, 0x1.800002p+0, 0x1.800002p+0, -0x1.000002p-46, 0x1.200002p+1,
lib/msun/tests/fma_test.c
454
test(fmaf, 0x1.800002p+0, 0x1.800002p+0, -0x1.000002p-46, 0x1.200004p+1,
lib/msun/tests/fma_test.c
459
test(fmal, 0x1.4p+0L, 0x1.0000000000000004p+0L, 0x1p-128L,
lib/msun/tests/fma_test.c
462
test(fmal, 0x1.8000000000000000000000000001p+0L,
lib/msun/tests/fma_test.c
61
test(fma, (double)(x), (double)(y), (double)(z), \
lib/msun/tests/fma_test.c
63
test(fmaf, (float)(x), (float)(y), (float)(z), \
lib/msun/tests/fma_test.c
65
test(fmal, (x), (y), (z), (result), (exceptmask), (excepts)); \
lib/msun/tests/fma_test.c
71
test((func), (x), (y), (z), (rn), (exceptmask), (excepts)); \
lib/msun/tests/fma_test.c
73
test((func), (x), (y), (z), (ru), (exceptmask), (excepts)); \
lib/msun/tests/fma_test.c
75
test((func), (x), (y), (z), (rd), (exceptmask), (excepts)); \
lib/msun/tests/fma_test.c
77
test((func), (x), (y), (z), (rz), (exceptmask), (excepts)); \
lib/msun/tests/invctrig_test.c
88
test(func, x, result, exceptmask, excepts, checksign); \
lib/msun/tests/invctrig_test.c
89
test(func##f, x, result, exceptmask, excepts, checksign); \
lib/msun/tests/logarithm_test.c
160
test(log, 1.0, 0.0, ALL_STD_EXCEPT, 0);
lib/msun/tests/logarithm_test.c
161
test(logf, 1.0, 0.0, ALL_STD_EXCEPT, 0);
lib/msun/tests/logarithm_test.c
162
test(log2, 1.0, 0.0, ALL_STD_EXCEPT, 0);
lib/msun/tests/logarithm_test.c
163
test(log2f, 1.0, 0.0, ALL_STD_EXCEPT, 0);
lib/msun/tests/logarithm_test.c
164
test(log10, 1.0, 0.0, ALL_STD_EXCEPT, 0);
lib/msun/tests/logarithm_test.c
165
test(log10f, 1.0, 0.0, ALL_STD_EXCEPT, 0);
lib/msun/tests/logarithm_test.c
74
test(log, x, result, exceptmask, excepts); \
lib/msun/tests/logarithm_test.c
75
test(logf, x, result, exceptmask, excepts); \
lib/msun/tests/logarithm_test.c
76
test(logl, x, result, exceptmask, excepts); \
lib/msun/tests/logarithm_test.c
77
test(log2, x, result, exceptmask, excepts); \
lib/msun/tests/logarithm_test.c
78
test(log2f, x, result, exceptmask, excepts); \
lib/msun/tests/logarithm_test.c
79
test(log2l, x, result, exceptmask, excepts); \
lib/msun/tests/logarithm_test.c
80
test(log10, x, result, exceptmask, excepts); \
lib/msun/tests/logarithm_test.c
81
test(log10f, x, result, exceptmask, excepts); \
lib/msun/tests/logarithm_test.c
82
test(log10l, x, result, exceptmask, excepts); \
lib/msun/tests/logarithm_test.c
87
test(log1p, x, result, exceptmask, excepts); \
lib/msun/tests/logarithm_test.c
88
test(log1pf, x, result, exceptmask, excepts); \
lib/msun/tests/logarithm_test.c
89
test(log1pl, x, result, exceptmask, excepts); \
lib/msun/tests/lrint_test.c
100
test(lrintf, 0x80000000.0p0f, IGNORE, FE_INVALID);
lib/msun/tests/lrint_test.c
101
test(lrintf, 0x7fffff80.0p0f, 0x7fffff80l, 0);
lib/msun/tests/lrint_test.c
104
test(lrint, 0x8000000000000000.0p0, IGNORE, FE_INVALID);
lib/msun/tests/lrint_test.c
105
test(lrintf, 0x8000000000000000.0p0f, IGNORE, FE_INVALID);
lib/msun/tests/lrint_test.c
106
test(lrint, 0x7ffffffffffffc00.0p0, 0x7ffffffffffffc00l, 0);
lib/msun/tests/lrint_test.c
107
test(lrintf, 0x7fffff8000000000.0p0f, 0x7fffff8000000000l, 0);
lib/msun/tests/lrint_test.c
108
test(lrint, -0x8000000000000800.0p0, IGNORE, FE_INVALID);
lib/msun/tests/lrint_test.c
109
test(lrintf, -0x8000010000000000.0p0f, IGNORE, FE_INVALID);
lib/msun/tests/lrint_test.c
110
test(lrint, -0x8000000000000000.0p0, (long long)-0x8000000000000000ul, 0);
lib/msun/tests/lrint_test.c
111
test(lrintf, -0x8000000000000000.0p0f, (long long)-0x8000000000000000ul, 0);
lib/msun/tests/lrint_test.c
118
test(llrint, 0x8000000000000000.0p0, IGNORE, FE_INVALID);
lib/msun/tests/lrint_test.c
119
test(llrintf, 0x8000000000000000.0p0f, IGNORE, FE_INVALID);
lib/msun/tests/lrint_test.c
120
test(llrint, 0x7ffffffffffffc00.0p0, 0x7ffffffffffffc00ll, 0);
lib/msun/tests/lrint_test.c
121
test(llrintf, 0x7fffff8000000000.0p0f, 0x7fffff8000000000ll, 0);
lib/msun/tests/lrint_test.c
122
test(llrint, -0x8000000000000800.0p0, IGNORE, FE_INVALID);
lib/msun/tests/lrint_test.c
123
test(llrintf, -0x8000010000000000.0p0f, IGNORE, FE_INVALID);
lib/msun/tests/lrint_test.c
124
test(llrint, -0x8000000000000000.0p0, (long long)-0x8000000000000000ull, 0);
lib/msun/tests/lrint_test.c
125
test(llrintf, -0x8000000000000000.0p0f, (long long)-0x8000000000000000ull, 0);
lib/msun/tests/lrint_test.c
54
test(lrint, x, result, excepts); \
lib/msun/tests/lrint_test.c
55
test(lrintf, x, result, excepts); \
lib/msun/tests/lrint_test.c
56
test(lrintl, x, result, excepts); \
lib/msun/tests/lrint_test.c
57
test(llrint, x, result, excepts); \
lib/msun/tests/lrint_test.c
58
test(llrintf, x, result, excepts); \
lib/msun/tests/lrint_test.c
59
test(llrintl, x, result, excepts); \
lib/msun/tests/lrint_test.c
86
test(lrint, 0x7fffffff.8p0, IGNORE, FE_INVALID);
lib/msun/tests/lrint_test.c
87
test(lrint, -0x80000000.4p0, (long)-0x80000000l, FE_INEXACT);
lib/msun/tests/lrint_test.c
90
test(lrint, -0x80000000.8p0, IGNORE, FE_INVALID);
lib/msun/tests/lrint_test.c
91
test(lrint, 0x80000000.0p0, IGNORE, FE_INVALID);
lib/msun/tests/lrint_test.c
92
test(lrint, 0x7fffffff.4p0, 0x7fffffffl, FE_INEXACT);
lib/msun/tests/lrint_test.c
93
test(lrintf, 0x80000000.0p0f, IGNORE, FE_INVALID);
lib/msun/tests/lrint_test.c
94
test(lrintf, 0x7fffff80.0p0f, 0x7fffff80l, 0);
lib/msun/tests/lrint_test.c
97
test(lrint, 0x7fffffff.8p0, 0x7fffffffl, FE_INEXACT);
lib/msun/tests/lrint_test.c
98
test(lrint, -0x80000000.8p0, -0x80000000l, FE_INEXACT);
lib/msun/tests/lrint_test.c
99
test(lrint, 0x80000000.0p0, IGNORE, FE_INVALID);
lib/msun/tests/lround_test.c
103
test(llround, 0x8000000000000000.0p0, IGNORE, FE_INVALID);
lib/msun/tests/lround_test.c
104
test(llroundf, 0x8000000000000000.0p0f, IGNORE, FE_INVALID);
lib/msun/tests/lround_test.c
105
test(llround, 0x7ffffffffffffc00.0p0, 0x7ffffffffffffc00ll, 0);
lib/msun/tests/lround_test.c
106
test(llroundf, 0x7fffff8000000000.0p0f, 0x7fffff8000000000ll, 0);
lib/msun/tests/lround_test.c
107
test(llround, -0x8000000000000800.0p0, IGNORE, FE_INVALID);
lib/msun/tests/lround_test.c
108
test(llroundf, -0x8000010000000000.0p0f, IGNORE, FE_INVALID);
lib/msun/tests/lround_test.c
109
test(llround, -0x8000000000000000.0p0, (long long)-0x8000000000000000ll, 0);
lib/msun/tests/lround_test.c
110
test(llroundf, -0x8000000000000000.0p0f, (long long)-0x8000000000000000ll, 0);
lib/msun/tests/lround_test.c
57
test(lround, x, result, excepts); \
lib/msun/tests/lround_test.c
58
test(lroundf, x, result, excepts); \
lib/msun/tests/lround_test.c
59
test(llround, x, result, excepts); \
lib/msun/tests/lround_test.c
60
test(llroundf, x, result, excepts); \
lib/msun/tests/lround_test.c
82
test(lround, 0x7fffffff.8p0, IGNORE, FE_INVALID);
lib/msun/tests/lround_test.c
83
test(lround, -0x80000000.8p0, IGNORE, FE_INVALID);
lib/msun/tests/lround_test.c
84
test(lround, 0x80000000.0p0, IGNORE, FE_INVALID);
lib/msun/tests/lround_test.c
85
test(lround, 0x7fffffff.4p0, 0x7fffffffl, FE_INEXACT);
lib/msun/tests/lround_test.c
86
test(lround, -0x80000000.4p0, -0x80000000l, FE_INEXACT);
lib/msun/tests/lround_test.c
87
test(lroundf, 0x80000000.0p0f, IGNORE, FE_INVALID);
lib/msun/tests/lround_test.c
88
test(lroundf, 0x7fffff80.0p0f, 0x7fffff80l, 0);
lib/msun/tests/lround_test.c
90
test(lround, 0x8000000000000000.0p0, IGNORE, FE_INVALID);
lib/msun/tests/lround_test.c
91
test(lroundf, 0x8000000000000000.0p0f, IGNORE, FE_INVALID);
lib/msun/tests/lround_test.c
92
test(lround, 0x7ffffffffffffc00.0p0, 0x7ffffffffffffc00l, 0);
lib/msun/tests/lround_test.c
93
test(lroundf, 0x7fffff8000000000.0p0f, 0x7fffff8000000000l, 0);
lib/msun/tests/lround_test.c
94
test(lround, -0x8000000000000800.0p0, IGNORE, FE_INVALID);
lib/msun/tests/lround_test.c
95
test(lroundf, -0x8000010000000000.0p0f, IGNORE, FE_INVALID);
lib/msun/tests/lround_test.c
96
test(lround, -0x8000000000000000.0p0, (long)-0x8000000000000000l, 0);
lib/msun/tests/lround_test.c
97
test(lroundf, -0x8000000000000000.0p0f, (long)-0x8000000000000000l, 0);
lib/msun/tests/next_test.c
101
test##prec(copysign##prec(1.0, nextafter##prec(0.0, -0.0)), -1.0, 0); \
lib/msun/tests/next_test.c
102
test##prec(copysign##prec(1.0, nextafter##prec(-0.0, 0.0)), 1.0, 0); \
lib/msun/tests/next_test.c
103
test##prec(copysign##prec(1.0, nexttoward##prec(0.0, -0.0)), -1.0, 0);\
lib/msun/tests/next_test.c
104
test##prec(copysign##prec(1.0, nexttoward##prec(-0.0, 0.0)), 1.0, 0)
lib/msun/tests/next_test.c
112
test##prec(next(-0.0, 42.0), eps, ex_under); \
lib/msun/tests/next_test.c
113
test##prec(next(0.0, -42.0), -eps, ex_under); \
lib/msun/tests/next_test.c
114
test##prec(next(0.0, INFINITY), eps, ex_under); \
lib/msun/tests/next_test.c
115
test##prec(next(-0.0, -INFINITY), -eps, ex_under)
lib/msun/tests/next_test.c
162
test(nexttoward(1.0, 1.0 + ldbl_eps), 1.0 + DBL_EPSILON, 0);
lib/msun/tests/next_test.c
234
test(idd(nextafter(DBL_MAX, INFINITY)), INFINITY, ex_over);
lib/msun/tests/next_test.c
235
test(idd(nextafter(INFINITY, 0.0)), DBL_MAX, 0);
lib/msun/tests/next_test.c
236
test(idd(nexttoward(DBL_MAX, DBL_MAX * 2.0L)), INFINITY, ex_over);
lib/msun/tests/next_test.c
238
test(idd(nexttoward(INFINITY, DBL_MAX * 2.0L)), DBL_MAX, 0);
lib/msun/tests/next_test.c
60
test##prec(nextafter##prec((arg1), (arg2)), (ans), (ex)); \
lib/msun/tests/next_test.c
61
test##prec(nexttoward##prec((arg1), (arg2)), (ans), (ex)); \
lib/msun/tests/rem_test.c
63
test(4, 4, 0, 1);
lib/msun/tests/rem_test.c
64
test(0, 3.0, 0, 0);
lib/msun/tests/rem_test.c
67
test(3.0, 4, -1, 1);
lib/msun/tests/rem_test.c
68
test(3.0, -4, -1, -1);
lib/msun/tests/rem_test.c
70
test(4.5 * 7.5, 4.5, -2.25, 8); /* we should get the even one */
lib/msun/tests/rem_test.c
90
test(0x1.fp100, 0x1.ep-40, -0x1.cp-41, 143165577);
lib/msun/tests/rem_test.c
98
test(0x1.66666cp+120, 0x1p+71, 0.0, 1476395008);
lib/msun/tests/trig_test.c
69
test(prefix, x, (double)result, exceptmask, excepts); \
lib/msun/tests/trig_test.c
70
test(prefix##f, x, (float)result, exceptmask, excepts); \
lib/msun/tests/trig_test.c
71
test(prefix##l, x, result, exceptmask, excepts); \
lib/msun/tests/trig_test.c
75
test(prefix, x, (double)result, exceptmask, excepts); \
lib/msun/tests/trig_test.c
76
test(prefix##f, x, (float)result, exceptmask, excepts); \
sbin/pfctl/pfctl_parser.c
2068
append_addr(struct pfr_buffer *b, char *s, int test, int opts)
sbin/pfctl/pfctl_parser.c
2080
rv = append_addr_host(b, n, test, not);
sbin/pfctl/pfctl_parser.c
2096
append_addr_host(struct pfr_buffer *b, struct node_host *n, int test, int not)
sbin/pfctl/pfctl_parser.c
2120
if ((test && (not || addr.pfra_net != bits)) ||
sbin/routed/radix.c
203
int test, b, rn_b;
sbin/routed/radix.c
255
test = (*cp ^ *cp2) & 0xff; /* find first bit that differs */
sbin/routed/radix.c
256
for (b = 7; (test >>= 1) > 0;)
sbin/setkey/test-policy.c
71
int test(char *buf, int family);
sbin/setkey/test-policy.c
86
test(buf, PF_INET);
sbin/setkey/test-policy.c
89
test(buf, PF_INET6);
sys/cam/ata/ata_da.c
1677
u_int test = arg2;
sys/cam/ata/ata_da.c
1680
tmpout = !!(*flags & test);
sys/cam/scsi/scsi_da.c
2703
u_int test = arg2;
sys/cam/scsi/scsi_da.c
2706
tmpout = !!(*flags & test);
sys/cddl/dev/dtrace/dtrace_test.c
38
SDT_PROVIDER_DEFINE(test);
sys/cddl/dev/dtrace/dtrace_test.c
40
SDT_PROBE_DEFINE6(test, , , sdttest, "int", "int", "int", "int", "int",
sys/cddl/dev/dtrace/dtrace_test.c
86
SDT_PROBE6(test, , , sdttest, 1, 2, 3, 4, 5, 6);
sys/dev/bwi/bwirf.c
767
uint32_t test_lim, test;
sys/dev/bwi/bwirf.c
901
test = 0;
sys/dev/bwi/bwirf.c
940
test += PHY_READ(mac, 0x2d);
sys/dev/bwi/bwirf.c
951
++test;
sys/dev/bwi/bwirf.c
952
test >>= 8;
sys/dev/bwi/bwirf.c
954
if (test > test_lim)
sys/dev/bwn/if_bwn_phy_g.c
2375
struct bwn_loctl orig, test;
sys/dev/bwn/if_bwn_phy_g.c
2404
memcpy(&test, &orig, sizeof(struct bwn_loctl));
sys/dev/bwn/if_bwn_phy_g.c
2405
test.i += modifiers[i - 1].i * d->multipler;
sys/dev/bwn/if_bwn_phy_g.c
2406
test.q += modifiers[i - 1].q * d->multipler;
sys/dev/bwn/if_bwn_phy_g.c
2407
if ((test.i != prev.i || test.q != prev.q) &&
sys/dev/bwn/if_bwn_phy_g.c
2408
(abs(test.i) <= 16 && abs(test.q) <= 16)) {
sys/dev/bwn/if_bwn_phy_g.c
2409
bwn_lo_write(mac, &test);
sys/dev/bwn/if_bwn_phy_g.c
2413
memcpy(probe, &test,
sys/dev/bwn/if_bwn_phy_g.c
2421
memcpy(&prev, &test, sizeof(prev));
sys/dev/ioat/ioat_test.c
108
tx->length = test->buffer_size;
sys/dev/ioat/ioat_test.c
111
if (test->testkind == IOAT_TEST_DMA_8K)
sys/dev/ioat/ioat_test.c
112
tx->buf[i] = malloc(test->buffer_size, M_IOAT_TEST,
sys/dev/ioat/ioat_test.c
115
tx->buf[i] = contigmalloc(test->buffer_size,
sys/dev/ioat/ioat_test.c
142
struct ioat_test *test;
sys/dev/ioat/ioat_test.c
146
test = tx->test;
sys/dev/ioat/ioat_test.c
152
if (test->testkind == IOAT_TEST_FILL) {
sys/dev/ioat/ioat_test.c
159
} else if (test->testkind == IOAT_TEST_DMA) {
sys/dev/ioat/ioat_test.c
162
} else if (test->testkind == IOAT_TEST_RAW_DMA) {
sys/dev/ioat/ioat_test.c
163
if (test->raw_write)
sys/dev/ioat/ioat_test.c
164
dst = test->raw_vtarget;
sys/dev/ioat/ioat_test.c
175
struct ioat_test *test;
sys/dev/ioat/ioat_test.c
181
test = tx->test;
sys/dev/ioat/ioat_test.c
183
if (test->verify && !ioat_compare_ok(tx)) {
sys/dev/ioat/ioat_test.c
185
atomic_add_32(&test->status[IOAT_TEST_MISCOMPARE], tx->depth);
sys/dev/ioat/ioat_test.c
186
} else if (!test->too_late)
sys/dev/ioat/ioat_test.c
187
atomic_add_32(&test->status[IOAT_TEST_OK], tx->depth);
sys/dev/ioat/ioat_test.c
190
TAILQ_REMOVE(&test->pend_q, tx, entry);
sys/dev/ioat/ioat_test.c
191
TAILQ_INSERT_TAIL(&test->free_q, tx, entry);
sys/dev/ioat/ioat_test.c
192
wakeup(&test->free_q);
sys/dev/ioat/ioat_test.c
197
ioat_test_prealloc_memory(struct ioat_test *test, int index)
sys/dev/ioat/ioat_test.c
202
for (i = 0; i < test->transactions; i++) {
sys/dev/ioat/ioat_test.c
203
tx = ioat_test_transaction_create(test, test->chain_depth * 2);
sys/dev/ioat/ioat_test.c
206
test->status[IOAT_TEST_NO_MEMORY]++;
sys/dev/ioat/ioat_test.c
210
TAILQ_INSERT_HEAD(&test->free_q, tx, entry);
sys/dev/ioat/ioat_test.c
212
tx->test = test;
sys/dev/ioat/ioat_test.c
213
tx->depth = test->chain_depth;
sys/dev/ioat/ioat_test.c
219
for (k = 0; k < test->chain_depth; k++) {
sys/dev/ioat/ioat_test.c
229
ioat_test_release_memory(struct ioat_test *test)
sys/dev/ioat/ioat_test.c
233
TAILQ_FOREACH_SAFE(tx, &test->free_q, entry, s)
sys/dev/ioat/ioat_test.c
235
TAILQ_INIT(&test->free_q);
sys/dev/ioat/ioat_test.c
237
TAILQ_FOREACH_SAFE(tx, &test->pend_q, entry, s)
sys/dev/ioat/ioat_test.c
239
TAILQ_INIT(&test->pend_q);
sys/dev/ioat/ioat_test.c
243
ioat_test_submit_1_tx(struct ioat_test *test, bus_dmaengine_t dma)
sys/dev/ioat/ioat_test.c
255
while (TAILQ_EMPTY(&test->free_q))
sys/dev/ioat/ioat_test.c
256
msleep(&test->free_q, &ioat_test_lk, 0, "test_submit", 0);
sys/dev/ioat/ioat_test.c
258
tx = TAILQ_FIRST(&test->free_q);
sys/dev/ioat/ioat_test.c
259
TAILQ_REMOVE(&test->free_q, tx, entry);
sys/dev/ioat/ioat_test.c
260
TAILQ_INSERT_HEAD(&test->pend_q, tx, entry);
sys/dev/ioat/ioat_test.c
263
if (test->testkind != IOAT_TEST_MEMCPY)
sys/dev/ioat/ioat_test.c
266
if (test->testkind == IOAT_TEST_MEMCPY) {
sys/dev/ioat/ioat_test.c
276
if (test->testkind == IOAT_TEST_RAW_DMA) {
sys/dev/ioat/ioat_test.c
277
if (test->raw_write)
sys/dev/ioat/ioat_test.c
278
dest = test->raw_target;
sys/dev/ioat/ioat_test.c
280
src = test->raw_target;
sys/dev/ioat/ioat_test.c
291
if (test->testkind == IOAT_TEST_DMA ||
sys/dev/ioat/ioat_test.c
292
test->testkind == IOAT_TEST_RAW_DMA)
sys/dev/ioat/ioat_test.c
295
else if (test->testkind == IOAT_TEST_FILL) {
sys/dev/ioat/ioat_test.c
299
} else if (test->testkind == IOAT_TEST_DMA_8K) {
sys/dev/ioat/ioat_test.c
307
} else if (test->testkind == IOAT_TEST_DMA_8K_PB) {
sys/dev/ioat/ioat_test.c
315
} else if (test->testkind == IOAT_TEST_DMA_CRC) {
sys/dev/ioat/ioat_test.c
322
} else if (test->testkind == IOAT_TEST_DMA_CRC_COPY) {
sys/dev/ioat/ioat_test.c
333
if (test->testkind == IOAT_TEST_MEMCPY)
sys/dev/ioat/ioat_test.c
343
atomic_add_32(&test->status[IOAT_TEST_NO_DMA_ENGINE], tx->depth);
sys/dev/ioat/ioat_test.c
345
TAILQ_REMOVE(&test->pend_q, tx, entry);
sys/dev/ioat/ioat_test.c
346
TAILQ_INSERT_HEAD(&test->free_q, tx, entry);
sys/dev/ioat/ioat_test.c
355
struct ioat_test *test;
sys/dev/ioat/ioat_test.c
360
test = arg;
sys/dev/ioat/ioat_test.c
361
memset(__DEVOLATILE(void *, test->status), 0, sizeof(test->status));
sys/dev/ioat/ioat_test.c
363
if ((test->testkind == IOAT_TEST_DMA_8K ||
sys/dev/ioat/ioat_test.c
364
test->testkind == IOAT_TEST_DMA_8K_PB) &&
sys/dev/ioat/ioat_test.c
365
test->buffer_size != 2 * PAGE_SIZE) {
sys/dev/ioat/ioat_test.c
367
test->status[IOAT_TEST_INVALID_INPUT]++;
sys/dev/ioat/ioat_test.c
371
if (test->buffer_size > 1024 * 1024) {
sys/dev/ioat/ioat_test.c
373
test->status[IOAT_TEST_NO_MEMORY]++;
sys/dev/ioat/ioat_test.c
377
if (test->chain_depth * 2 > IOAT_MAX_BUFS) {
sys/dev/ioat/ioat_test.c
380
test->status[IOAT_TEST_NO_MEMORY]++;
sys/dev/ioat/ioat_test.c
384
if (btoc((uint64_t)test->buffer_size * test->chain_depth *
sys/dev/ioat/ioat_test.c
385
test->transactions) > (physmem / 4)) {
sys/dev/ioat/ioat_test.c
388
test->status[IOAT_TEST_NO_MEMORY]++;
sys/dev/ioat/ioat_test.c
392
if ((uint64_t)test->transactions * test->chain_depth > (1<<16)) {
sys/dev/ioat/ioat_test.c
395
test->status[IOAT_TEST_NO_MEMORY]++;
sys/dev/ioat/ioat_test.c
399
if (test->testkind >= IOAT_NUM_TESTKINDS) {
sys/dev/ioat/ioat_test.c
401
(unsigned)test->testkind);
sys/dev/ioat/ioat_test.c
402
test->status[IOAT_TEST_INVALID_INPUT]++;
sys/dev/ioat/ioat_test.c
406
dmaengine = ioat_get_dmaengine(test->channel_index, M_NOWAIT);
sys/dev/ioat/ioat_test.c
409
test->status[IOAT_TEST_NO_DMA_ENGINE]++;
sys/dev/ioat/ioat_test.c
414
if (test->testkind == IOAT_TEST_FILL &&
sys/dev/ioat/ioat_test.c
419
test->status[IOAT_TEST_INVALID_INPUT]++;
sys/dev/ioat/ioat_test.c
423
if (test->coalesce_period > ioat->intrdelay_max) {
sys/dev/ioat/ioat_test.c
426
(unsigned)test->coalesce_period);
sys/dev/ioat/ioat_test.c
427
test->status[IOAT_TEST_INVALID_INPUT]++;
sys/dev/ioat/ioat_test.c
430
error = ioat_set_interrupt_coalesce(dmaengine, test->coalesce_period);
sys/dev/ioat/ioat_test.c
431
if (error == ENODEV && test->coalesce_period == 0)
sys/dev/ioat/ioat_test.c
435
test->status[IOAT_TEST_INVALID_INPUT]++;
sys/dev/ioat/ioat_test.c
439
if (test->zero_stats)
sys/dev/ioat/ioat_test.c
442
if (test->testkind == IOAT_TEST_RAW_DMA) {
sys/dev/ioat/ioat_test.c
443
if (test->raw_is_virtual) {
sys/dev/ioat/ioat_test.c
444
test->raw_vtarget = (void *)test->raw_target;
sys/dev/ioat/ioat_test.c
445
test->raw_target = vtophys(test->raw_vtarget);
sys/dev/ioat/ioat_test.c
447
test->raw_vtarget = pmap_mapdev(test->raw_target,
sys/dev/ioat/ioat_test.c
448
test->buffer_size);
sys/dev/ioat/ioat_test.c
453
TAILQ_INIT(&test->free_q);
sys/dev/ioat/ioat_test.c
454
TAILQ_INIT(&test->pend_q);
sys/dev/ioat/ioat_test.c
456
if (test->duration == 0)
sys/dev/ioat/ioat_test.c
458
index, test->transactions);
sys/dev/ioat/ioat_test.c
462
rc = ioat_test_prealloc_memory(test, index);
sys/dev/ioat/ioat_test.c
469
test->too_late = false;
sys/dev/ioat/ioat_test.c
471
end = start + (((sbintime_t)test->duration * hz) / 1000);
sys/dev/ioat/ioat_test.c
474
if (test->duration == 0 && loops >= test->transactions)
sys/dev/ioat/ioat_test.c
476
else if (test->duration != 0 && time_after(ticks, end)) {
sys/dev/ioat/ioat_test.c
477
test->too_late = true;
sys/dev/ioat/ioat_test.c
481
ioat_test_submit_1_tx(test, dmaengine);
sys/dev/ioat/ioat_test.c
488
while (!TAILQ_EMPTY(&test->pend_q))
sys/dev/ioat/ioat_test.c
489
msleep(&test->free_q, &ioat_test_lk, 0, "ioattestcompl", hz);
sys/dev/ioat/ioat_test.c
495
ioat_test_release_memory(test);
sys/dev/ioat/ioat_test.c
497
if (test->testkind == IOAT_TEST_RAW_DMA && !test->raw_is_virtual)
sys/dev/ioat/ioat_test.c
498
pmap_unmapdev(test->raw_vtarget, test->buffer_size);
sys/dev/ioat/ioat_test.c
66
struct ioat_test *test;
sys/dev/ioat/ioat_test.c
98
test_transaction *ioat_test_transaction_create(struct ioat_test *test,
sys/dev/isci/scil/scic_sds_controller.c
4765
U8 test = oem_params->controller.ssc_sata_tx_spread_level;
sys/dev/isci/scil/scic_sds_controller.c
4766
if ( !((test == 0x0) || (test == 0x2) || (test == 0x3) ||
sys/dev/isci/scil/scic_sds_controller.c
4767
(test == 0x6) || (test == 0x7)) )
sys/dev/isci/scil/scic_sds_controller.c
4770
test = oem_params->controller.ssc_sas_tx_spread_level;
sys/dev/isci/scil/scic_sds_controller.c
4773
if ( !((test == 0x0) || (test == 0x2) || (test == 0x3)) )
sys/dev/isci/scil/scic_sds_controller.c
4779
if ( !((test == 0x0) || (test == 0x3) || (test == 0x6)) )
sys/dev/mxge/if_mxge.c
471
char *test = " ";
sys/dev/mxge/if_mxge.c
489
test = "read";
sys/dev/mxge/if_mxge.c
499
test = "write";
sys/dev/mxge/if_mxge.c
510
test = "read/write";
sys/dev/mxge/if_mxge.c
519
test, status);
sys/dev/rndtest/rndtest.c
155
rv |= (*rndtest_funcs[i].test)(rsp);
sys/dev/rndtest/rndtest.c
62
int (*test)(struct rndtest_state *);
sys/dev/vt/vt_buf.c
193
vtbuf_in_this_range(int begin, int test, int end, int sz)
sys/dev/vt/vt_buf.c
201
return (test >= begin || test < end);
sys/dev/vt/vt_buf.c
203
return (test >= begin && test < end);
sys/dev/vt/vt_buf.c
58
static int vtbuf_in_this_range(int begin, int test, int end, int sz);
sys/dev/wbwd/wbwd.c
309
int test = arg2;
sys/dev/wbwd/wbwd.c
312
if (test && val == 0) {
sys/dev/wbwd/wbwd.c
321
if (test)
sys/dev/xen/netback/netback_unit_tests.c
225
tests[i].test(buffer, buflen);
sys/dev/xen/netback/netback_unit_tests.c
98
testcase_t *test;
sys/libkern/fnmatch.c
103
while ((test = *string) != EOS) {
sys/libkern/fnmatch.c
106
if (test == '/' && flags & FNM_PATHNAME)
sys/libkern/fnmatch.c
157
rangematch(const char *pattern, char test, int flags, char **newp)
sys/libkern/fnmatch.c
173
test = tolower((unsigned char)test);
sys/libkern/fnmatch.c
205
if (c <= test && test <= c2)
sys/libkern/fnmatch.c
207
} else if (c == test)
sys/libkern/fnmatch.c
58
char c, test;
sys/net/pfvar.h
2067
SDT_PROBE2(pf, , test, reason_set, x, __LINE__); \
sys/net/pfvar.h
337
SDT_PROBE_DECLARE(pf, , test, reason_set);
sys/net/radix.c
279
int test, b, rn_bit;
sys/net/radix.c
319
test = (*cp ^ *cp2) & 0xff; /* find first bit that differs */
sys/net/radix.c
320
for (b = 7; (test >>= 1) > 0;)
sys/netpfil/pf/pf.c
12099
SDT_PROBE4(pf, ip, test, done, action, reason, r, s);
sys/netpfil/pf/pf.c
123
SDT_PROBE_DEFINE2(pf, , test, reason_set, "int", "int");
sys/netpfil/pf/pf.c
124
SDT_PROBE_DEFINE4(pf, ip, test, done, "int", "int", "struct pf_krule *",
sys/netpfil/pf/pf.c
139
SDT_PROBE_DEFINE4(pf, sctp, multihome, test, "struct pfi_kkif *",
sys/netpfil/pf/pf.c
155
SDT_PROBE_DEFINE2(pf, eth, test_rule, test, "int", "struct pf_keth_rule *");
sys/netpfil/pf/pf.c
5748
SDT_PROBE2(pf, eth, test_rule, test, r->nr, r);
sys/netpfil/pf/pf.c
8276
SDT_PROBE4(pf, sctp, multihome, test, kif, r, j->pd.m, ret);
sys/security/mac_test/mac_test.c
82
static SYSCTL_NODE(_security_mac, OID_AUTO, test,
sys/sys/queue.h
218
#define QMD_ASSERT(test, fmt, ...) do {} while (0)
sys/tests/fib_lookup/fib_lookup.c
71
SYSCTL_NODE(_net_route, OID_AUTO, test, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
sys/tests/ktest.c
183
const struct ktest_test_info *test = NULL;
sys/tests/ktest.c
196
test = test_info;
sys/tests/ktest.c
202
if (test != NULL)
sys/tests/ktest.c
206
if (test == NULL)
sys/tests/ktest.c
222
if (test->parse != NULL && attrs.test_meta != NULL) {
sys/tests/ktest.c
223
error = test->parse(&ctx, attrs.test_meta);
sys/tests/ktest.c
230
KTEST_LOG_LEVEL(&ctx, LOG_INFO, "start running %s", test->name);
sys/tests/ktest.c
231
error = test->func(&ctx);
sys/tests/ktest.c
232
KTEST_LOG_LEVEL(&ctx, LOG_INFO, "end running %s", test->name);
sys/vm/vm_map.c
1036
#define SPLAY_LEFT_STEP(root, y, llist, rlist, test) do { \
sys/vm/vm_map.c
1053
if (y != llist && (test)) { \
sys/vm/vm_map.c
1077
#define SPLAY_RIGHT_STEP(root, y, llist, rlist, test) do { \
sys/vm/vm_map.c
1094
if (y != rlist && (test)) { \
tests/sys/file/dup_test.c
101
printf("ok %d - dup2(2) works\n", ++test);
tests/sys/file/dup_test.c
104
++test;
tests/sys/file/dup_test.c
107
test);
tests/sys/file/dup_test.c
109
printf("ok %d - dup2(2) returned a correct fd\n", test);
tests/sys/file/dup_test.c
112
++test;
tests/sys/file/dup_test.c
115
test);
tests/sys/file/dup_test.c
117
printf("ok %d - dup2(2) cleared close-on-exec\n", test);
tests/sys/file/dup_test.c
147
printf("ok %d - dup2(2) to itself works\n", ++test);
tests/sys/file/dup_test.c
150
++test;
tests/sys/file/dup_test.c
153
test);
tests/sys/file/dup_test.c
156
test);
tests/sys/file/dup_test.c
159
++test;
tests/sys/file/dup_test.c
161
printf("not ok %d - dup2(2) cleared close-on-exec\n", test);
tests/sys/file/dup_test.c
163
printf("ok %d - dup2(2) didn't clear close-on-exec\n", test);
tests/sys/file/dup_test.c
170
++test, fd2);
tests/sys/file/dup_test.c
172
printf("ok %d - fcntl(F_DUPFD) works\n", ++test);
tests/sys/file/dup_test.c
175
++test;
tests/sys/file/dup_test.c
179
test);
tests/sys/file/dup_test.c
181
printf("ok %d - fcntl(F_DUPFD) cleared close-on-exec\n", test);
tests/sys/file/dup_test.c
183
++test;
tests/sys/file/dup_test.c
187
printf("not ok %d - dup2(2) bypassed NOFILE limit\n", test);
tests/sys/file/dup_test.c
189
printf("ok %d - dup2(2) didn't bypass NOFILE limit\n", test);
tests/sys/file/dup_test.c
194
printf("ok %d - fcntl(F_DUP2FD) works\n", ++test);
tests/sys/file/dup_test.c
197
++test;
tests/sys/file/dup_test.c
201
test);
tests/sys/file/dup_test.c
204
test);
tests/sys/file/dup_test.c
207
++test;
tests/sys/file/dup_test.c
211
test);
tests/sys/file/dup_test.c
214
test);
tests/sys/file/dup_test.c
219
printf("ok %d - fcntl(F_DUP2FD) to itself works\n", ++test);
tests/sys/file/dup_test.c
222
++test;
tests/sys/file/dup_test.c
226
test);
tests/sys/file/dup_test.c
230
test);
tests/sys/file/dup_test.c
233
++test;
tests/sys/file/dup_test.c
236
test);
tests/sys/file/dup_test.c
239
test);
tests/sys/file/dup_test.c
241
++test;
tests/sys/file/dup_test.c
246
test);
tests/sys/file/dup_test.c
249
test);
tests/sys/file/dup_test.c
256
++test, fd2);
tests/sys/file/dup_test.c
258
printf("ok %d - fcntl(F_DUPFD_CLOEXEC) works\n", ++test);
tests/sys/file/dup_test.c
261
++test;
tests/sys/file/dup_test.c
265
test);
tests/sys/file/dup_test.c
268
test);
tests/sys/file/dup_test.c
273
printf("ok %d - fcntl(F_DUP2FD_CLOEXEC) works\n", ++test);
tests/sys/file/dup_test.c
276
++test;
tests/sys/file/dup_test.c
280
test);
tests/sys/file/dup_test.c
283
test);
tests/sys/file/dup_test.c
286
++test;
tests/sys/file/dup_test.c
290
test);
tests/sys/file/dup_test.c
293
test);
tests/sys/file/dup_test.c
300
++test;
tests/sys/file/dup_test.c
305
test);
tests/sys/file/dup_test.c
308
test);
tests/sys/file/dup_test.c
313
printf("ok %d - dup3(O_CLOEXEC) works\n", ++test);
tests/sys/file/dup_test.c
316
++test;
tests/sys/file/dup_test.c
320
test);
tests/sys/file/dup_test.c
323
test);
tests/sys/file/dup_test.c
326
++test;
tests/sys/file/dup_test.c
330
test);
tests/sys/file/dup_test.c
333
test);
tests/sys/file/dup_test.c
338
printf("ok %d - dup3(0) works\n", ++test);
tests/sys/file/dup_test.c
341
++test;
tests/sys/file/dup_test.c
345
test);
tests/sys/file/dup_test.c
348
test);
tests/sys/file/dup_test.c
351
++test;
tests/sys/file/dup_test.c
355
test);
tests/sys/file/dup_test.c
358
test);
tests/sys/file/dup_test.c
361
++test;
tests/sys/file/dup_test.c
364
"not ok %d - dup3(fd1, fd1, O_CLOEXEC) succeeded\n", test);
tests/sys/file/dup_test.c
366
printf("ok %d - dup3(fd1, fd1, O_CLOEXEC) failed\n", test);
tests/sys/file/dup_test.c
368
++test;
tests/sys/file/dup_test.c
371
"not ok %d - dup3(fd1, fd1, 0) succeeded\n", test);
tests/sys/file/dup_test.c
373
printf("ok %d - dup3(fd1, fd1, 0) failed\n", test);
tests/sys/file/dup_test.c
375
++test;
tests/sys/file/dup_test.c
380
test);
tests/sys/file/dup_test.c
383
test);
tests/sys/file/dup_test.c
390
++test, fd2);
tests/sys/file/dup_test.c
392
printf("ok %d - fcntl(F_DUPFD_CLOFORK) works\n", ++test);
tests/sys/file/dup_test.c
395
++test;
tests/sys/file/dup_test.c
399
test);
tests/sys/file/dup_test.c
402
test);
tests/sys/file/dup_test.c
407
printf("ok %d - dup3(O_CLOFORK) works\n", ++test);
tests/sys/file/dup_test.c
410
++test;
tests/sys/file/dup_test.c
414
test);
tests/sys/file/dup_test.c
417
test);
tests/sys/file/dup_test.c
420
++test;
tests/sys/file/dup_test.c
424
test);
tests/sys/file/dup_test.c
427
test);
tests/sys/file/dup_test.c
432
printf("ok %d - dup3(0) works\n", ++test);
tests/sys/file/dup_test.c
435
++test;
tests/sys/file/dup_test.c
439
test);
tests/sys/file/dup_test.c
442
test);
tests/sys/file/dup_test.c
445
++test;
tests/sys/file/dup_test.c
449
test);
tests/sys/file/dup_test.c
452
test);
tests/sys/file/dup_test.c
455
++test;
tests/sys/file/dup_test.c
458
"not ok %d - dup3(fd1, fd1, O_CLOFORK) succeeded\n", test);
tests/sys/file/dup_test.c
460
printf("ok %d - dup3(fd1, fd1, O_CLOFORK) failed\n", test);
tests/sys/file/dup_test.c
462
++test;
tests/sys/file/dup_test.c
465
"not ok %d - dup3(fd1, fd1, 0) succeeded\n", test);
tests/sys/file/dup_test.c
467
printf("ok %d - dup3(fd1, fd1, 0) failed\n", test);
tests/sys/file/dup_test.c
469
++test;
tests/sys/file/dup_test.c
474
test);
tests/sys/file/dup_test.c
477
test);
tests/sys/file/dup_test.c
83
int orgfd, fd1, fd2, test = 0;
tests/sys/file/dup_test.c
92
printf("ok %d - dup(2) works\n", ++test);
tests/sys/file/flock_helper.c
128
#define FAIL(test) \
tests/sys/file/flock_helper.c
130
if (test) { \
tests/sys/file/flock_helper.c
131
printf("FAIL (%s)\n", #test); \
tests/sys/file/flock_helper.c
1525
static struct test tests[] = {
tests/sys/kern/listener_wakeup.c
208
struct test const *test;
tests/sys/kern/listener_wakeup.c
217
ctx->result = sleep_syscalls[ctx->test->sleep](ctx->s);
tests/sys/kern/listener_wakeup.c
230
struct test const *t = &tests[i];
tests/sys/kern/listener_wakeup.c
232
.test = t,
tests/sys/netmap/ctrl-api-test.c
2044
testfunc_t test;
tests/sys/netmap/ctrl-api-test.c
2050
.test = f, .name = #f \
tests/sys/netmap/ctrl-api-test.c
2316
ret = tests[i].test(&ctxcopy);
tests/sys/sound/pcm_read_write.c
132
const struct afmt_test_data *test;
tests/sys/sound/pcm_read_write.c
138
test = &afmt_tests[i];
tests/sys/sound/pcm_read_write.c
142
memcpy(src, test->buffer, test->size);
tests/sys/sound/pcm_read_write.c
145
expected = test->value;
tests/sys/sound/pcm_read_write.c
146
result = pcm_sample_read(src, test->format);
tests/sys/sound/pcm_read_write.c
149
test->label, expected, result);
tests/sys/sound/pcm_read_write.c
152
expected = local_calc_limit(test->value, test->size * 8);
tests/sys/sound/pcm_read_write.c
153
result = pcm_sample_read_calc(src, test->format);
tests/sys/sound/pcm_read_write.c
156
test->label, expected, result);
tests/sys/sound/pcm_read_write.c
159
expected = local_normalize(test->value, test->size * 8, 32);
tests/sys/sound/pcm_read_write.c
160
result = pcm_sample_read_norm(src, test->format);
tests/sys/sound/pcm_read_write.c
163
test->label, expected, result);
tests/sys/sound/pcm_read_write.c
175
const struct afmt_test_data *test;
tests/sys/sound/pcm_read_write.c
182
test = &afmt_tests[i];
tests/sys/sound/pcm_read_write.c
185
memcpy(expected, test->buffer, sizeof(expected));
tests/sys/sound/pcm_read_write.c
187
value = test->value;
tests/sys/sound/pcm_read_write.c
188
pcm_sample_write(dst, value, test->format);
tests/sys/sound/pcm_read_write.c
192
"result={0x%02x, 0x%02x, 0x%02x, 0x%02x}, ", test->label,
tests/sys/sound/pcm_read_write.c
197
memcpy(expected, test->buffer, sizeof(expected));
tests/sys/sound/pcm_read_write.c
199
value = local_calc_limit(test->value, test->size * 8);
tests/sys/sound/pcm_read_write.c
200
if (value != test->value) {
tests/sys/sound/pcm_read_write.c
205
if (test->format & AFMT_BIGENDIAN)
tests/sys/sound/pcm_read_write.c
210
pcm_sample_write_calc(dst, value, test->format);
tests/sys/sound/pcm_read_write.c
214
"result={0x%02x, 0x%02x, 0x%02x, 0x%02x}, ", test->label,
tests/sys/sound/pcm_read_write.c
219
memcpy(expected, test->buffer, sizeof(expected));
tests/sys/sound/pcm_read_write.c
221
value = local_normalize(test->value, test->size * 8, 32);
tests/sys/sound/pcm_read_write.c
222
pcm_sample_write_norm(dst, value, test->format);
tests/sys/sound/pcm_read_write.c
226
"result={0x%02x, 0x%02x, 0x%02x, 0x%02x}, ", test->label,
tests/sys/sound/pcm_read_write.c
240
const struct afmt_test_data *test;
tests/sys/sound/pcm_read_write.c
245
test = &afmt_tests[i];
tests/sys/sound/pcm_read_write.c
248
bits = AFMT_BIT(test->format);
tests/sys/sound/pcm_read_write.c
249
ATF_CHECK_MSG(bits == test->size * 8,
tests/sys/sound/pcm_read_write.c
251
i, test->size * 8, bits);
tests/sys/sys/bitstring_test.c
42
bitstring_run_stack_test(testfunc_t *test, int nbits)
tests/sys/sys/bitstring_test.c
46
test(bitstr, nbits, "stack");
tests/sys/sys/bitstring_test.c
50
bitstring_run_heap_test(testfunc_t *test, int nbits)
tests/sys/sys/bitstring_test.c
54
test(bitstr, nbits, "heap");
tests/sys/sys/bitstring_test.c
59
bitstring_test_runner(testfunc_t *test)
tests/sys/sys/bitstring_test.c
74
bitstring_run_stack_test(test, bitstr_sizes[i]);
tests/sys/sys/bitstring_test.c
75
bitstring_run_heap_test(test, bitstr_sizes[i]);
tools/regression/doat/doat.c
106
tests = calloc(NUM_OF_TESTS + 1, sizeof(struct test));
tools/regression/doat/doat.c
67
struct test *tests;
tools/regression/fsx/fsx.c
1214
test();
tools/regression/net80211/ccmp/test_ccmp.c
526
test##n##_key, sizeof(test##n##_key), \
tools/regression/net80211/ccmp/test_ccmp.c
527
test##n##_plaintext, sizeof(test##n##_plaintext), \
tools/regression/net80211/ccmp/test_ccmp.c
528
test##n##_encrypted, sizeof(test##n##_encrypted) \
tools/regression/net80211/tkip/test_tkip.c
113
test##n##_key, sizeof(test##n##_key), \
tools/regression/net80211/tkip/test_tkip.c
114
test##n##_phase1, sizeof(test##n##_phase1), \
tools/regression/net80211/tkip/test_tkip.c
115
test##n##_phase2, sizeof(test##n##_phase2), \
tools/regression/net80211/tkip/test_tkip.c
116
test##n##_plaintext, sizeof(test##n##_plaintext), \
tools/regression/net80211/tkip/test_tkip.c
117
test##n##_encrypted, sizeof(test##n##_encrypted) \
tools/regression/net80211/wep/test_wep.c
131
test##n##_key, sizeof(test##n##_key), \
tools/regression/net80211/wep/test_wep.c
132
test##n##_plaintext, sizeof(test##n##_plaintext), \
tools/regression/net80211/wep/test_wep.c
133
test##n##_encrypted, sizeof(test##n##_encrypted) \
tools/regression/netinet/ipdivert/ipdivert.c
105
fail(test, "bind");
tools/regression/netinet/ipdivert/ipdivert.c
107
fail(test, "bind");
tools/regression/netinet/ipdivert/ipdivert.c
110
failx(test, "bind");
tools/regression/netinet/ipdivert/ipdivert.c
117
const char *test;
tools/regression/netinet/ipdivert/ipdivert.c
123
test = "create_close";
tools/regression/netinet/ipdivert/ipdivert.c
124
s1 = ipdivert_create(test);
tools/regression/netinet/ipdivert/ipdivert.c
125
ipdivert_close(test, s1);
tools/regression/netinet/ipdivert/ipdivert.c
126
ok(test);
tools/regression/netinet/ipdivert/ipdivert.c
131
test = "create_bind_close";
tools/regression/netinet/ipdivert/ipdivert.c
132
s1 = ipdivert_create(test);
tools/regression/netinet/ipdivert/ipdivert.c
133
ipdivert_bind(test, s1, 1000, 0);
tools/regression/netinet/ipdivert/ipdivert.c
134
ipdivert_close(test, s1);
tools/regression/netinet/ipdivert/ipdivert.c
135
ok(test);
tools/regression/netinet/ipdivert/ipdivert.c
141
test = "create2_bind2_close2";
tools/regression/netinet/ipdivert/ipdivert.c
142
s1 = ipdivert_create(test);
tools/regression/netinet/ipdivert/ipdivert.c
143
s2 = ipdivert_create(test);
tools/regression/netinet/ipdivert/ipdivert.c
144
ipdivert_bind(test, s1, 1000, 0);
tools/regression/netinet/ipdivert/ipdivert.c
145
ipdivert_bind(test, s2, 1001, 0);
tools/regression/netinet/ipdivert/ipdivert.c
146
ipdivert_close(test, s1);
tools/regression/netinet/ipdivert/ipdivert.c
147
ipdivert_close(test, s2);
tools/regression/netinet/ipdivert/ipdivert.c
148
ok(test);
tools/regression/netinet/ipdivert/ipdivert.c
154
test = "create2_bind2_conflict_close2";
tools/regression/netinet/ipdivert/ipdivert.c
155
s1 = ipdivert_create(test);
tools/regression/netinet/ipdivert/ipdivert.c
156
s2 = ipdivert_create(test);
tools/regression/netinet/ipdivert/ipdivert.c
157
ipdivert_bind(test, s1, 1000, 0);
tools/regression/netinet/ipdivert/ipdivert.c
158
ipdivert_bind(test, s2, 1000, EADDRINUSE);
tools/regression/netinet/ipdivert/ipdivert.c
159
ipdivert_close(test, s1);
tools/regression/netinet/ipdivert/ipdivert.c
160
ipdivert_close(test, s2);
tools/regression/netinet/ipdivert/ipdivert.c
161
ok(test);
tools/regression/netinet/ipdivert/ipdivert.c
50
ok(const char *test)
tools/regression/netinet/ipdivert/ipdivert.c
53
fprintf(stderr, "%s: OK\n", test);
tools/regression/netinet/ipdivert/ipdivert.c
57
fail(const char *test, const char *note)
tools/regression/netinet/ipdivert/ipdivert.c
60
fprintf(stderr, "%s - %s: FAIL (%s)\n", test, note, strerror(errno));
tools/regression/netinet/ipdivert/ipdivert.c
65
failx(const char *test, const char *note)
tools/regression/netinet/ipdivert/ipdivert.c
68
fprintf(stderr, "%s - %s: FAIL\n", test, note);
tools/regression/netinet/ipdivert/ipdivert.c
73
ipdivert_create(const char *test)
tools/regression/netinet/ipdivert/ipdivert.c
79
fail(test, "socket");
tools/regression/netinet/ipdivert/ipdivert.c
84
ipdivert_close(const char *test, int s)
tools/regression/netinet/ipdivert/ipdivert.c
88
fail(test, "close");
tools/regression/netinet/ipdivert/ipdivert.c
92
ipdivert_bind(const char *test, int s, u_short port, int expect)
tools/regression/netinet/udpconnectjail/udpconnectjail.c
110
test("in jail", &sin);
tools/regression/netinet/udpconnectjail/udpconnectjail.c
92
test("not in jail", &sin);
tools/regression/netinet/udpzerobyte/udpzerobyte.c
123
test(PF_INET, "PF_INET", (struct sockaddr *)&sin, sizeof(sin));
tools/regression/netinet/udpzerobyte/udpzerobyte.c
131
test(PF_INET6, "PF_INET6", (struct sockaddr *)&sin6, sizeof(sin6));
tools/regression/netinet/udpzerobyte/udpzerobyte.c
140
test(PF_LOCAL, "PF_LOCAL", (struct sockaddr *)&sun, sizeof(sun));
tools/regression/posixsem/test.c
122
test = *testp;
tools/regression/posixsem/test.c
123
test->rt_function();
tools/regression/posixsem/test.c
40
static struct regression_test *test;
tools/regression/posixsem/test.c
55
if (test->rt_name)
tools/regression/posixsem/test.c
56
printf(" - %s", test->rt_name);
tools/regression/priv/main.c
362
static int tests_count = sizeof(tests) / sizeof(struct test);
tools/regression/priv/main.c
365
expect(const char *test, int error, int expected_error, int expected_errno)
tools/regression/priv/main.c
371
warnx("%s: returned 0", test);
tools/regression/priv/main.c
376
warn("%s: returned (%d, %d)", test, error, errno);
tools/regression/priv/main.c
379
warn("%s: returned (%d, %d)", test, error, errno);
tools/regression/priv/main.c
385
setup_dir(const char *test, char *dpathp, uid_t uid, gid_t gid, mode_t mode)
tools/regression/priv/main.c
390
err(-1, "test %s: mkdtemp", test);
tools/regression/priv/main.c
393
err(-1, "test %s: chown(%s, %d, %d)", test, dpathp, uid,
tools/regression/priv/main.c
397
err(-1, "test %s: chmod(%s, 0%o)", test, dpathp, mode);
tools/regression/priv/main.c
401
setup_file(const char *test, char *fpathp, uid_t uid, gid_t gid, mode_t mode)
tools/regression/priv/main.c
408
err(-1, "test %s: mkstemp", test);
tools/regression/priv/main.c
411
err(-1, "test %s: fchown(%s, %d, %d)", test, fpathp, uid,
tools/regression/priv/main.c
415
err(-1, "test %s: chmod(%s, 0%o)", test, fpathp, mode);
tools/regression/priv/main.c
424
set_creds(const char *test, uid_t uid, gid_t gid)
tools/regression/priv/main.c
427
err(-1, "test %s: setegid(%d)", test, gid);
tools/regression/priv/main.c
429
err(-1, "test %s: setgroups(NULL)", test);
tools/regression/priv/main.c
431
err(-1, "test %s: seteuid(%d)", test, uid);
tools/regression/priv/main.c
435
enter_jail(const char *test)
tools/regression/priv/main.c
456
err(-1, "test %s: jail", test);
tools/regression/priv/main.c
460
run_child(struct test *test, int asroot, int injail)
tools/regression/priv/main.c
463
setprogname(test->t_name);
tools/regression/priv/main.c
465
enter_jail(test->t_name);
tools/regression/priv/main.c
467
set_creds(test->t_name, UID_OWNER, GID_OWNER);
tools/regression/priv/main.c
468
test->t_test_func(asroot, injail, test);
tools/regression/priv/main.c
479
run(struct test *test, int asroot, int injail)
tools/regression/priv/main.c
483
if (test->t_setup_func != NULL) {
tools/regression/priv/main.c
484
if ((test->t_setup_func)(asroot, injail, test) != 0) {
tools/regression/priv/main.c
485
warnx("run(%s, %d, %d) setup failed", test->t_name,
tools/regression/priv/main.c
494
warn("run(%s, %d, %d) fork failed", test->t_name, asroot,
tools/regression/priv/main.c
499
run_child(test, asroot, injail);
tools/regression/priv/main.c
509
warn("test: waitpid %s", test->t_name);
tools/regression/priv/main.c
525
if (test->t_cleanup_func != NULL)
tools/regression/priv/main.c
526
test->t_cleanup_func(asroot, injail, test);
tools/regression/priv/main.c
68
static struct test tests[] = {
tools/regression/priv/main.h
100
void priv_audit_setaudit_addr(int, int, struct test *);
tools/regression/priv/main.h
101
void priv_audit_setaudit_cleanup(int, int, struct test *);
tools/regression/priv/main.h
103
int priv_clock_settime_setup(int, int, struct test *);
tools/regression/priv/main.h
104
void priv_clock_settime(int, int, struct test *);
tools/regression/priv/main.h
105
void priv_clock_settime_cleanup(int, int, struct test *);
tools/regression/priv/main.h
107
int priv_cred_setup(int, int, struct test *);
tools/regression/priv/main.h
108
void priv_cred_setuid(int, int, struct test *);
tools/regression/priv/main.h
109
void priv_cred_seteuid(int, int, struct test *);
tools/regression/priv/main.h
110
void priv_cred_setgid(int, int, struct test *);
tools/regression/priv/main.h
111
void priv_cred_setegid(int, int, struct test *);
tools/regression/priv/main.h
112
void priv_cred_setgroups(int, int, struct test *);
tools/regression/priv/main.h
113
void priv_cred_setreuid(int, int, struct test *);
tools/regression/priv/main.h
114
void priv_cred_setregid(int, int, struct test *);
tools/regression/priv/main.h
115
void priv_cred_setresuid(int, int, struct test *);
tools/regression/priv/main.h
116
void priv_cred_setresgid(int, int, struct test *);
tools/regression/priv/main.h
117
void priv_cred_cleanup(int, int, struct test *);
tools/regression/priv/main.h
119
int priv_io_setup(int, int, struct test *);
tools/regression/priv/main.h
120
void priv_io(int, int, struct test *);
tools/regression/priv/main.h
121
void priv_io_cleanup(int, int, struct test *);
tools/regression/priv/main.h
123
int priv_kenv_set_setup(int, int, struct test *);
tools/regression/priv/main.h
124
void priv_kenv_set(int, int, struct test *);
tools/regression/priv/main.h
125
void priv_kenv_set_cleanup(int, int, struct test *);
tools/regression/priv/main.h
127
int priv_kenv_unset_setup(int, int, struct test *);
tools/regression/priv/main.h
128
void priv_kenv_unset(int, int, struct test *);
tools/regression/priv/main.h
129
void priv_kenv_unset_cleanup(int, int, struct test *);
tools/regression/priv/main.h
131
int priv_msgbuf_privonly_setup(int, int, struct test *);
tools/regression/priv/main.h
132
void priv_msgbuf_privonly(int, int, struct test *);
tools/regression/priv/main.h
134
int priv_msgbuf_unprivok_setup(int, int, struct test *);
tools/regression/priv/main.h
135
void priv_msgbuf_unprivok(int, int, struct test *);
tools/regression/priv/main.h
137
void priv_msgbuf_cleanup(int, int, struct test *);
tools/regression/priv/main.h
139
void priv_netinet_ipsec_pfkey(int, int, struct test *);
tools/regression/priv/main.h
140
int priv_netinet_ipsec_policy4_bypass_setup(int, int, struct test *);
tools/regression/priv/main.h
141
void priv_netinet_ipsec_policy4_bypass(int, int, struct test *);
tools/regression/priv/main.h
142
int priv_netinet_ipsec_policy6_bypass_setup(int, int, struct test *);
tools/regression/priv/main.h
143
void priv_netinet_ipsec_policy6_bypass(int, int, struct test *);
tools/regression/priv/main.h
144
void priv_netinet_ipsec_policy_bypass_cleanup(int, int, struct test *);
tools/regression/priv/main.h
145
int priv_netinet_ipsec_policy4_entrust_setup(int, int, struct test *);
tools/regression/priv/main.h
146
void priv_netinet_ipsec_policy4_entrust(int, int, struct test *);
tools/regression/priv/main.h
147
int priv_netinet_ipsec_policy6_entrust_setup(int, int, struct test *);
tools/regression/priv/main.h
148
void priv_netinet_ipsec_policy6_entrust(int, int, struct test *);
tools/regression/priv/main.h
149
void priv_netinet_ipsec_policy_entrust_cleanup(int, int, struct test *);
tools/regression/priv/main.h
151
int priv_netinet_raw_setup(int, int, struct test *);
tools/regression/priv/main.h
152
void priv_netinet_raw(int, int, struct test *);
tools/regression/priv/main.h
153
void priv_netinet_raw_cleanup(int, int, struct test *);
tools/regression/priv/main.h
155
int priv_proc_setlogin_setup(int, int, struct test *);
tools/regression/priv/main.h
156
void priv_proc_setlogin(int, int, struct test *);
tools/regression/priv/main.h
157
void priv_proc_setlogin_cleanup(int, int, struct test *);
tools/regression/priv/main.h
159
int priv_proc_setrlimit_setup(int, int, struct test *);
tools/regression/priv/main.h
160
void priv_proc_setrlimit_raisemax(int, int, struct test *);
tools/regression/priv/main.h
161
void priv_proc_setrlimit_raisecur(int, int, struct test *);
tools/regression/priv/main.h
162
void priv_proc_setrlimit_raisecur_nopriv(int, int, struct test *);
tools/regression/priv/main.h
163
void priv_proc_setrlimit_cleanup(int, int, struct test *);
tools/regression/priv/main.h
165
int priv_sched_rtprio_setup(int, int, struct test *);
tools/regression/priv/main.h
166
void priv_sched_rtprio_curproc_normal(int, int, struct test *);
tools/regression/priv/main.h
167
void priv_sched_rtprio_curproc_idle(int, int, struct test *);
tools/regression/priv/main.h
168
void priv_sched_rtprio_curproc_realtime(int, int, struct test *);
tools/regression/priv/main.h
170
void priv_sched_rtprio_myproc_normal(int, int, struct test *);
tools/regression/priv/main.h
171
void priv_sched_rtprio_myproc_idle(int, int, struct test *);
tools/regression/priv/main.h
172
void priv_sched_rtprio_myproc_realtime(int, int, struct test *);
tools/regression/priv/main.h
174
void priv_sched_rtprio_aproc_normal(int, int, struct test *);
tools/regression/priv/main.h
175
void priv_sched_rtprio_aproc_idle(int, int, struct test *);
tools/regression/priv/main.h
176
void priv_sched_rtprio_aproc_realtime(int, int, struct test *);
tools/regression/priv/main.h
177
void priv_sched_rtprio_cleanup(int, int, struct test *);
tools/regression/priv/main.h
179
int priv_sched_setpriority_setup(int, int, struct test *);
tools/regression/priv/main.h
180
void priv_sched_setpriority_curproc(int, int, struct test *);
tools/regression/priv/main.h
181
void priv_sched_setpriority_myproc(int, int, struct test *);
tools/regression/priv/main.h
182
void priv_sched_setpriority_aproc(int, int, struct test *);
tools/regression/priv/main.h
183
void priv_sched_setpriority_cleanup(int, int, struct test *);
tools/regression/priv/main.h
185
int priv_settimeofday_setup(int, int, struct test *);
tools/regression/priv/main.h
186
void priv_settimeofday(int, int, struct test *);
tools/regression/priv/main.h
187
void priv_settimeofday_cleanup(int, int, struct test *);
tools/regression/priv/main.h
189
int priv_sysctl_write_setup(int, int, struct test *);
tools/regression/priv/main.h
190
void priv_sysctl_write(int, int, struct test *);
tools/regression/priv/main.h
191
void priv_sysctl_writejail(int, int, struct test *);
tools/regression/priv/main.h
192
void priv_sysctl_write_cleanup(int, int, struct test *);
tools/regression/priv/main.h
194
int priv_vfs_chflags_froot_setup(int, int, struct test *);
tools/regression/priv/main.h
195
void priv_vfs_chflags_froot_uflags(int, int, struct test *);
tools/regression/priv/main.h
196
void priv_vfs_chflags_froot_sflags(int, int, struct test *);
tools/regression/priv/main.h
198
int priv_vfs_chflags_fowner_setup(int, int, struct test *);
tools/regression/priv/main.h
199
void priv_vfs_chflags_fowner_uflags(int, int, struct test *);
tools/regression/priv/main.h
200
void priv_vfs_chflags_fowner_sflags(int, int, struct test *);
tools/regression/priv/main.h
202
int priv_vfs_chflags_fother_setup(int, int, struct test *);
tools/regression/priv/main.h
203
void priv_vfs_chflags_fother_uflags(int, int, struct test *);
tools/regression/priv/main.h
204
void priv_vfs_chflags_fother_sflags(int, int, struct test *);
tools/regression/priv/main.h
206
void priv_vfs_chflags_cleanup(int, int, struct test *);
tools/regression/priv/main.h
208
int priv_vfs_chmod_froot_setup(int, int, struct test *);
tools/regression/priv/main.h
209
void priv_vfs_chmod_froot(int, int, struct test *);
tools/regression/priv/main.h
211
int priv_vfs_chmod_fowner_setup(int, int, struct test *);
tools/regression/priv/main.h
212
void priv_vfs_chmod_fowner(int, int, struct test *);
tools/regression/priv/main.h
214
int priv_vfs_chmod_fother_setup(int, int, struct test *);
tools/regression/priv/main.h
215
void priv_vfs_chmod_fother(int, int, struct test *);
tools/regression/priv/main.h
217
void priv_vfs_chmod_cleanup(int, int, struct test *);
tools/regression/priv/main.h
219
int priv_vfs_chown_uid_setup(int, int, struct test *);
tools/regression/priv/main.h
220
void priv_vfs_chown_uid(int, int, struct test *);
tools/regression/priv/main.h
222
int priv_vfs_chown_mygid_setup(int, int, struct test *);
tools/regression/priv/main.h
223
void priv_vfs_chown_mygid(int, int, struct test *);
tools/regression/priv/main.h
225
int priv_vfs_chown_othergid_setup(int, int, struct test *);
tools/regression/priv/main.h
226
void priv_vfs_chown_othergid(int, int, struct test *);
tools/regression/priv/main.h
228
void priv_vfs_chown_cleanup(int, int, struct test *);
tools/regression/priv/main.h
230
int priv_vfs_chroot_setup(int, int, struct test *);
tools/regression/priv/main.h
231
void priv_vfs_chroot(int, int, struct test *);
tools/regression/priv/main.h
232
void priv_vfs_chroot_cleanup(int, int, struct test *);
tools/regression/priv/main.h
234
int priv_vfs_clearsugid_setup(int, int, struct test *);
tools/regression/priv/main.h
235
void priv_vfs_clearsugid_chgrp(int, int, struct test *);
tools/regression/priv/main.h
236
void priv_vfs_clearsugid_extattr(int, int, struct test *);
tools/regression/priv/main.h
237
void priv_vfs_clearsugid_write(int, int, struct test *);
tools/regression/priv/main.h
238
void priv_vfs_clearsugid_cleanup(int, int, struct test *);
tools/regression/priv/main.h
240
int priv_vfs_extattr_system_setup(int, int, struct test *);
tools/regression/priv/main.h
241
void priv_vfs_extattr_system(int, int, struct test *);
tools/regression/priv/main.h
242
void priv_vfs_extattr_system_cleanup(int, int, struct test *);
tools/regression/priv/main.h
244
int priv_vfs_fhopen_setup(int, int, struct test *);
tools/regression/priv/main.h
245
void priv_vfs_fhopen(int, int, struct test *);
tools/regression/priv/main.h
246
void priv_vfs_fhopen_cleanup(int, int, struct test *);
tools/regression/priv/main.h
248
int priv_vfs_fhstat_setup(int, int, struct test *);
tools/regression/priv/main.h
249
void priv_vfs_fhstat(int, int, struct test *);
tools/regression/priv/main.h
250
void priv_vfs_fhstat_cleanup(int, int, struct test *);
tools/regression/priv/main.h
252
int priv_vfs_fhstatfs_setup(int, int, struct test *);
tools/regression/priv/main.h
253
void priv_vfs_fhstatfs(int, int, struct test *);
tools/regression/priv/main.h
254
void priv_vfs_fhstatfs_cleanup(int, int, struct test *);
tools/regression/priv/main.h
256
int priv_vfs_generation_setup(int, int, struct test *);
tools/regression/priv/main.h
257
void priv_vfs_generation(int, int, struct test *);
tools/regression/priv/main.h
258
void priv_vfs_generation_cleanup(int, int, struct test *);
tools/regression/priv/main.h
260
int priv_vfs_getfh_setup(int, int, struct test *);
tools/regression/priv/main.h
261
void priv_vfs_getfh(int, int, struct test *);
tools/regression/priv/main.h
262
void priv_vfs_getfh_cleanup(int, int, struct test *);
tools/regression/priv/main.h
264
int priv_vfs_readwrite_fowner_setup(int, int, struct test *);
tools/regression/priv/main.h
265
void priv_vfs_readwrite_fowner(int, int, struct test *);
tools/regression/priv/main.h
267
int priv_vfs_readwrite_fgroup_setup(int, int, struct test *);
tools/regression/priv/main.h
268
void priv_vfs_readwrite_fgroup(int, int, struct test *);
tools/regression/priv/main.h
270
int priv_vfs_readwrite_fother_setup(int, int, struct test *);
tools/regression/priv/main.h
271
void priv_vfs_readwrite_fother(int, int, struct test *);
tools/regression/priv/main.h
273
void priv_vfs_readwrite_cleanup(int, int, struct test *);
tools/regression/priv/main.h
275
int priv_vfs_setgid_fowner_setup(int, int, struct test *);
tools/regression/priv/main.h
276
void priv_vfs_setgid_fowner(int, int, struct test *);
tools/regression/priv/main.h
278
int priv_vfs_setgid_fother_setup(int, int, struct test *);
tools/regression/priv/main.h
279
void priv_vfs_setgid_fother(int, int, struct test *);
tools/regression/priv/main.h
281
void priv_vfs_setgid_cleanup(int, int, struct test *);
tools/regression/priv/main.h
283
int priv_vfs_stickyfile_dir_fowner_setup(int, int, struct test *);
tools/regression/priv/main.h
285
void priv_vfs_stickyfile_dir_fowner(int, int, struct test *);
tools/regression/priv/main.h
286
int priv_vfs_stickyfile_dir_fother_setup(int, int, struct test *);
tools/regression/priv/main.h
287
void priv_vfs_stickyfile_dir_fother(int, int, struct test *);
tools/regression/priv/main.h
289
void priv_vfs_stickyfile_dir_cleanup(int, int, struct test *);
tools/regression/priv/main.h
291
int priv_vfs_stickyfile_file_fowner_setup(int, int, struct test *);
tools/regression/priv/main.h
292
void priv_vfs_stickyfile_file_fowner(int, int, struct test *);
tools/regression/priv/main.h
294
int priv_vfs_stickyfile_file_fother_setup(int, int, struct test *);
tools/regression/priv/main.h
295
void priv_vfs_stickyfile_file_fother(int, int, struct test *);
tools/regression/priv/main.h
297
void priv_vfs_stickyfile_file_cleanup(int, int, struct test *);
tools/regression/priv/main.h
299
int priv_vfs_utimes_froot_setup(int, int, struct test *);
tools/regression/priv/main.h
300
void priv_vfs_utimes_froot(int, int, struct test *);
tools/regression/priv/main.h
301
void priv_vfs_utimes_froot_null(int, int, struct test *);
tools/regression/priv/main.h
303
int priv_vfs_utimes_fowner_setup(int, int, struct test *);
tools/regression/priv/main.h
304
void priv_vfs_utimes_fowner(int, int, struct test *);
tools/regression/priv/main.h
305
void priv_vfs_utimes_fowner_null(int, int, struct test *);
tools/regression/priv/main.h
307
int priv_vfs_utimes_fother_setup(int, int, struct test *);
tools/regression/priv/main.h
308
void priv_vfs_utimes_fother(int, int, struct test *);
tools/regression/priv/main.h
309
void priv_vfs_utimes_fother_null(int, int, struct test *);
tools/regression/priv/main.h
311
void priv_vfs_utimes_cleanup(int, int, struct test *);
tools/regression/priv/main.h
313
int priv_vm_madv_protect_setup(int, int, struct test *);
tools/regression/priv/main.h
314
void priv_vm_madv_protect(int, int, struct test *);
tools/regression/priv/main.h
315
void priv_vm_madv_protect_cleanup(int, int, struct test *);
tools/regression/priv/main.h
317
int priv_vm_mlock_setup(int, int, struct test *);
tools/regression/priv/main.h
318
void priv_vm_mlock(int, int, struct test *);
tools/regression/priv/main.h
319
void priv_vm_mlock_cleanup(int, int, struct test *);
tools/regression/priv/main.h
321
int priv_vm_munlock_setup(int, int, struct test *);
tools/regression/priv/main.h
322
void priv_vm_munlock(int, int, struct test *);
tools/regression/priv/main.h
323
void priv_vm_munlock_cleanup(int, int, struct test *);
tools/regression/priv/main.h
47
void setup_dir(const char *test, char *dpathp, uid_t uid, gid_t gid,
tools/regression/priv/main.h
49
void setup_file(const char *test, char *fpathp, uid_t uid, gid_t gid,
tools/regression/priv/main.h
51
void expect(const char *test, int error, int expected_error,
tools/regression/priv/main.h
62
struct test *test);
tools/regression/priv/main.h
64
struct test *test);
tools/regression/priv/main.h
66
struct test *test);
tools/regression/priv/main.h
74
int priv_acct_setup(int, int, struct test *);
tools/regression/priv/main.h
75
void priv_acct_enable(int, int, struct test *);
tools/regression/priv/main.h
76
void priv_acct_disable(int, int, struct test *);
tools/regression/priv/main.h
77
void priv_acct_rotate(int, int, struct test *);
tools/regression/priv/main.h
78
void priv_acct_noopdisable(int, int, struct test *);
tools/regression/priv/main.h
79
void priv_acct_cleanup(int, int, struct test *);
tools/regression/priv/main.h
81
int priv_adjtime_setup(int, int, struct test *);
tools/regression/priv/main.h
82
void priv_adjtime_set(int, int, struct test *);
tools/regression/priv/main.h
83
void priv_adjtime_cleanup(int, int, struct test *);
tools/regression/priv/main.h
85
int priv_audit_submit_setup(int, int, struct test *);
tools/regression/priv/main.h
86
void priv_audit_submit(int, int, struct test *);
tools/regression/priv/main.h
87
void priv_audit_submit_cleanup(int, int, struct test *);
tools/regression/priv/main.h
89
int priv_audit_control_setup(int, int, struct test *);
tools/regression/priv/main.h
90
void priv_audit_control(int, int, struct test *);
tools/regression/priv/main.h
91
void priv_audit_control_cleanup(int, int, struct test *);
tools/regression/priv/main.h
93
int priv_audit_getaudit_setup(int, int, struct test *);
tools/regression/priv/main.h
94
void priv_audit_getaudit(int, int, struct test *);
tools/regression/priv/main.h
95
void priv_audit_getaudit_addr(int, int, struct test *);
tools/regression/priv/main.h
96
void priv_audit_getaudit_cleanup(int, int, struct test *);
tools/regression/priv/main.h
98
int priv_audit_setaudit_setup(int, int, struct test *);
tools/regression/priv/main.h
99
void priv_audit_setaudit(int, int, struct test *);
tools/regression/priv/priv_acct.c
100
priv_acct_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_acct.c
115
priv_acct_enable(int asroot, int injail, struct test *test)
tools/regression/priv/priv_acct.c
131
priv_acct_disable(int asroot, int injail, struct test *test)
tools/regression/priv/priv_acct.c
147
priv_acct_rotate(int asroot, int injail, struct test *test)
tools/regression/priv/priv_acct.c
163
priv_acct_noopdisable(int asroot, int injail, struct test *test)
tools/regression/priv/priv_acct.c
63
priv_acct_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_acct.c
83
if (test->t_test_func == priv_acct_enable ||
tools/regression/priv/priv_acct.c
84
test->t_test_func == priv_acct_noopdisable) {
tools/regression/priv/priv_acct.c
89
} else if (test->t_test_func == priv_acct_disable ||
tools/regression/priv/priv_acct.c
90
test->t_test_func == priv_acct_rotate) {
tools/regression/priv/priv_adjtime.c
49
priv_adjtime_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_adjtime.c
63
priv_adjtime_set(int asroot, int injail, struct test *test)
tools/regression/priv/priv_adjtime.c
79
priv_adjtime_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_audit_control.c
49
priv_audit_control_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_audit_control.c
60
priv_audit_control(int asroot, int injail, struct test *test)
tools/regression/priv/priv_audit_control.c
80
priv_audit_control_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_audit_getaudit.c
45
priv_audit_getaudit_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_audit_getaudit.c
56
priv_audit_getaudit(int asroot, int injail, struct test *test)
tools/regression/priv/priv_audit_getaudit.c
76
priv_audit_getaudit_addr(int asroot, int injail, struct test *test)
tools/regression/priv/priv_audit_getaudit.c
97
priv_audit_getaudit_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_audit_setaudit.c
104
priv_audit_setaudit_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_audit_setaudit.c
49
priv_audit_setaudit_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_audit_setaudit.c
65
priv_audit_setaudit(int asroot, int injail, struct test *test)
tools/regression/priv/priv_audit_setaudit.c
84
priv_audit_setaudit_addr(int asroot, int injail, struct test *test)
tools/regression/priv/priv_audit_submit.c
50
priv_audit_submit_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_audit_submit.c
61
priv_audit_submit(int asroot, int injail, struct test *test)
tools/regression/priv/priv_audit_submit.c
83
priv_audit_submit_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_clock_settime.c
48
priv_clock_settime_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_clock_settime.c
60
priv_clock_settime(int asroot, int injail, struct test *test)
tools/regression/priv/priv_clock_settime.c
79
priv_clock_settime_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_cred.c
104
priv_cred_setegid(int asroot, int injail, struct test *test)
tools/regression/priv/priv_cred.c
123
priv_cred_setgroups(int asroot, int injail, struct test *test)
tools/regression/priv/priv_cred.c
139
priv_cred_setreuid(int asroot, int injail, struct test *test)
tools/regression/priv/priv_cred.c
155
priv_cred_setregid(int asroot, int injail, struct test *test)
tools/regression/priv/priv_cred.c
171
priv_cred_setresuid(int asroot, int injail, struct test *test)
tools/regression/priv/priv_cred.c
187
priv_cred_setresgid(int asroot, int injail, struct test *test)
tools/regression/priv/priv_cred.c
203
priv_cred_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_cred.c
49
priv_cred_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_cred.c
56
priv_cred_setuid(int asroot, int injail, struct test *test)
tools/regression/priv/priv_cred.c
72
priv_cred_seteuid(int asroot, int injail, struct test *test)
tools/regression/priv/priv_cred.c
88
priv_cred_setgid(int asroot, int injail, struct test *test)
tools/regression/priv/priv_io.c
101
priv_io_cleanup(int asroot, int asjail, struct test *test)
tools/regression/priv/priv_io.c
56
priv_io_setup(int asroot, int asjail, struct test *test)
tools/regression/priv/priv_io.c
79
priv_io(int asroot, int injail, struct test *test)
tools/regression/priv/priv_kenv_set.c
46
priv_kenv_set_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_kenv_set.c
54
priv_kenv_set(int asroot, int injail, struct test *test)
tools/regression/priv/priv_kenv_set.c
70
priv_kenv_set_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_kenv_unset.c
46
priv_kenv_unset_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_kenv_unset.c
57
priv_kenv_unset(int asroot, int injail, struct test *test)
tools/regression/priv/priv_kenv_unset.c
73
priv_kenv_unset_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_msgbuf.c
124
priv_msgbuf_unprivok(int asroot, int injail, struct test *test)
tools/regression/priv/priv_msgbuf.c
141
priv_msgbuf_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_msgbuf.c
54
priv_msgbuf_privonly_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_msgbuf.c
79
priv_msgbuf_privonly(int asroot, int injail, struct test *test)
tools/regression/priv/priv_msgbuf.c
99
priv_msgbuf_unprivok_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_netinet_ipsec.c
101
return (priv_netinet_ipsec_policy_bypass_setup_af(asroot, injail, test,
tools/regression/priv/priv_netinet_ipsec.c
109
struct test *test, int af)
tools/regression/priv/priv_netinet_ipsec.c
143
struct test *test)
tools/regression/priv/priv_netinet_ipsec.c
146
return (priv_netinet_ipsec_policy_entrust_setup_af(asroot, injail, test,
tools/regression/priv/priv_netinet_ipsec.c
153
struct test *test)
tools/regression/priv/priv_netinet_ipsec.c
156
return (priv_netinet_ipsec_policy_entrust_setup_af(asroot, injail, test,
tools/regression/priv/priv_netinet_ipsec.c
162
priv_netinet_ipsec_pfkey(int asroot, int injail, struct test *test)
tools/regression/priv/priv_netinet_ipsec.c
193
priv_netinet_ipsec_policy_bypass_af(int asroot, int injail, struct test *test,
tools/regression/priv/priv_netinet_ipsec.c
230
priv_netinet_ipsec_policy4_bypass(int asroot, int injail, struct test *test)
tools/regression/priv/priv_netinet_ipsec.c
233
priv_netinet_ipsec_policy_bypass_af(asroot, injail, test, AF_INET);
tools/regression/priv/priv_netinet_ipsec.c
238
priv_netinet_ipsec_policy6_bypass(int asroot, int injail, struct test *test)
tools/regression/priv/priv_netinet_ipsec.c
241
priv_netinet_ipsec_policy_bypass_af(asroot, injail, test, AF_INET6);
tools/regression/priv/priv_netinet_ipsec.c
246
priv_netinet_ipsec_policy_entrust_af(int asroot, int injail, struct test *test,
tools/regression/priv/priv_netinet_ipsec.c
283
priv_netinet_ipsec_policy4_entrust(int asroot, int injail, struct test *test)
tools/regression/priv/priv_netinet_ipsec.c
286
priv_netinet_ipsec_policy_entrust_af(asroot, injail, test, AF_INET);
tools/regression/priv/priv_netinet_ipsec.c
291
priv_netinet_ipsec_policy6_entrust(int asroot, int injail, struct test *test)
tools/regression/priv/priv_netinet_ipsec.c
294
priv_netinet_ipsec_policy_entrust_af(asroot, injail, test, AF_INET6);
tools/regression/priv/priv_netinet_ipsec.c
300
struct test *test)
tools/regression/priv/priv_netinet_ipsec.c
315
struct test *test)
tools/regression/priv/priv_netinet_ipsec.c
54
struct test *test, int af)
tools/regression/priv/priv_netinet_ipsec.c
88
struct test *test)
tools/regression/priv/priv_netinet_ipsec.c
91
return (priv_netinet_ipsec_policy_bypass_setup_af(asroot, injail, test,
tools/regression/priv/priv_netinet_ipsec.c
98
struct test *test)
tools/regression/priv/priv_netinet_raw.c
46
priv_netinet_raw_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_netinet_raw.c
53
priv_netinet_raw(int asroot, int injail, struct test *test)
tools/regression/priv/priv_netinet_raw.c
77
priv_netinet_raw_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_proc_setlogin.c
48
priv_proc_setlogin_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_proc_setlogin.c
63
priv_proc_setlogin(int asroot, int injail, struct test *test)
tools/regression/priv/priv_proc_setlogin.c
81
priv_proc_setlogin_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_proc_setrlimit.c
112
struct test *test)
tools/regression/priv/priv_proc_setrlimit.c
139
priv_proc_setrlimit_raisecur(int asroot, int injail, struct test *test)
tools/regression/priv/priv_proc_setrlimit.c
162
priv_proc_setrlimit_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_proc_setrlimit.c
55
priv_proc_setrlimit_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_proc_setrlimit.c
84
priv_proc_setrlimit_raisemax(int asroot, int injail, struct test *test)
tools/regression/priv/priv_sched_rtprio.c
103
priv_sched_rtprio_curproc_normal(int asroot, int injail, struct test *test)
tools/regression/priv/priv_sched_rtprio.c
126
priv_sched_rtprio_curproc_idle(int asroot, int injail, struct test *test)
tools/regression/priv/priv_sched_rtprio.c
149
priv_sched_rtprio_curproc_realtime(int asroot, int injail, struct test *test)
tools/regression/priv/priv_sched_rtprio.c
172
priv_sched_rtprio_myproc_normal(int asroot, int injail, struct test *test)
tools/regression/priv/priv_sched_rtprio.c
195
priv_sched_rtprio_myproc_idle(int asroot, int injail, struct test *test)
tools/regression/priv/priv_sched_rtprio.c
218
priv_sched_rtprio_myproc_realtime(int asroot, int injail, struct test *test)
tools/regression/priv/priv_sched_rtprio.c
241
priv_sched_rtprio_aproc_normal(int asroot, int injail, struct test *test)
tools/regression/priv/priv_sched_rtprio.c
264
priv_sched_rtprio_aproc_idle(int asroot, int injail, struct test *test)
tools/regression/priv/priv_sched_rtprio.c
287
priv_sched_rtprio_aproc_realtime(int asroot, int injail, struct test *test)
tools/regression/priv/priv_sched_rtprio.c
310
priv_sched_rtprio_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_sched_rtprio.c
60
priv_sched_rtprio_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_sched_rtprio.c
69
if (test->t_test_func == priv_sched_rtprio_aproc_normal ||
tools/regression/priv/priv_sched_rtprio.c
70
test->t_test_func == priv_sched_rtprio_aproc_idle ||
tools/regression/priv/priv_sched_rtprio.c
71
test->t_test_func == priv_sched_rtprio_aproc_realtime) {
tools/regression/priv/priv_sched_rtprio.c
75
if (test->t_test_func == priv_sched_rtprio_myproc_normal ||
tools/regression/priv/priv_sched_rtprio.c
76
test->t_test_func == priv_sched_rtprio_myproc_idle ||
tools/regression/priv/priv_sched_rtprio.c
77
test->t_test_func == priv_sched_rtprio_myproc_realtime) {
tools/regression/priv/priv_sched_setpriority.c
114
priv_sched_setpriority_myproc(int asroot, int injail, struct test *test)
tools/regression/priv/priv_sched_setpriority.c
134
priv_sched_setpriority_aproc(int asroot, int injail, struct test *test)
tools/regression/priv/priv_sched_setpriority.c
154
priv_sched_setpriority_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_sched_setpriority.c
56
priv_sched_setpriority_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_sched_setpriority.c
65
if (test->t_test_func == priv_sched_setpriority_aproc) {
tools/regression/priv/priv_sched_setpriority.c
69
if (test->t_test_func == priv_sched_setpriority_myproc)
tools/regression/priv/priv_sched_setpriority.c
94
priv_sched_setpriority_curproc(int asroot, int injail, struct test *test)
tools/regression/priv/priv_settimeofday.c
48
priv_settimeofday_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_settimeofday.c
59
priv_settimeofday(int asroot, int injail, struct test *test)
tools/regression/priv/priv_settimeofday.c
78
priv_settimeofday_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_sysctl_write.c
104
priv_sysctl_writejail(int asroot, int injail, struct test *test)
tools/regression/priv/priv_sysctl_write.c
123
priv_sysctl_write_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_sysctl_write.c
57
priv_sysctl_write_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_sysctl_write.c
84
priv_sysctl_write(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_chflags.c
101
struct test *test)
tools/regression/priv/priv_vfs_chflags.c
125
struct test *test)
tools/regression/priv/priv_vfs_chflags.c
149
struct test *test)
tools/regression/priv/priv_vfs_chflags.c
173
struct test *test)
tools/regression/priv/priv_vfs_chflags.c
197
struct test *test)
tools/regression/priv/priv_vfs_chflags.c
221
struct test *test)
tools/regression/priv/priv_vfs_chflags.c
244
priv_vfs_chflags_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_chflags.c
68
priv_vfs_chflags_froot_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_chflags.c
79
struct test *test)
tools/regression/priv/priv_vfs_chflags.c
90
struct test *test)
tools/regression/priv/priv_vfs_chmod.c
118
priv_vfs_chmod_fother(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_chmod.c
137
priv_vfs_chmod_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_chmod.c
51
priv_vfs_chmod_froot_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_chmod.c
61
priv_vfs_chmod_fowner_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_chmod.c
71
priv_vfs_chmod_fother_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_chmod.c
81
priv_vfs_chmod_froot(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_chmod.c
99
priv_vfs_chmod_fowner(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_chown.c
103
priv_vfs_chown_mygid(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_chown.c
123
priv_vfs_chown_othergid_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_chown.c
137
priv_vfs_chown_othergid(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_chown.c
155
priv_vfs_chown_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_chown.c
59
priv_vfs_chown_uid_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_chown.c
69
priv_vfs_chown_uid(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_chown.c
89
priv_vfs_chown_mygid_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_chroot.c
45
priv_vfs_chroot_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_chroot.c
52
priv_vfs_chroot(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_chroot.c
68
priv_vfs_chroot_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_clearsugid.c
100
priv_vfs_clearsugid_chgrp(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_clearsugid.c
115
priv_vfs_clearsugid_extattr(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_clearsugid.c
127
priv_vfs_clearsugid_write(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_clearsugid.c
143
priv_vfs_clearsugid_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_clearsugid.c
90
priv_vfs_clearsugid_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_extattr_system.c
55
priv_vfs_extattr_system_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_extattr_system.c
69
priv_vfs_extattr_system(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_extattr_system.c
97
priv_vfs_extattr_system_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_fhopen.c
51
priv_vfs_fhopen_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_fhopen.c
65
priv_vfs_fhopen(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_fhopen.c
88
priv_vfs_fhopen_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_fhstat.c
51
priv_vfs_fhstat_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_fhstat.c
65
priv_vfs_fhstat(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_fhstat.c
82
priv_vfs_fhstat_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_fhstatfs.c
50
priv_vfs_fhstatfs_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_fhstatfs.c
64
priv_vfs_fhstatfs(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_fhstatfs.c
84
priv_vfs_fhstatfs_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_generation.c
111
priv_vfs_generation_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_generation.c
54
priv_vfs_generation_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_generation.c
83
priv_vfs_generation(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_getfh.c
47
priv_vfs_getfh_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_getfh.c
56
priv_vfs_getfh(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_getfh.c
73
priv_vfs_getfh_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_read_write.c
100
priv_vfs_readwrite_fgroup_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_read_write.c
120
priv_vfs_readwrite_fother_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_read_write.c
139
priv_vfs_readwrite_fowner(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_read_write.c
172
priv_vfs_readwrite_fgroup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_read_write.c
205
priv_vfs_readwrite_fother(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_read_write.c
238
priv_vfs_readwrite_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_read_write.c
81
priv_vfs_readwrite_fowner_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_setgid.c
112
priv_vfs_setgid_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_setgid.c
51
priv_vfs_setgid_fowner_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_setgid.c
61
priv_vfs_setgid_fother_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_setgid.c
72
priv_vfs_setgid_fowner(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_setgid.c
92
priv_vfs_setgid_fother(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_stickyfile.c
115
priv_vfs_stickyfile_dir_fother(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_stickyfile.c
135
priv_vfs_stickyfile_file_fowner(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_stickyfile.c
155
priv_vfs_stickyfile_file_fother(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_stickyfile.c
175
priv_vfs_stickyfile_dir_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_stickyfile.c
185
priv_vfs_stickyfile_file_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_stickyfile.c
52
struct test *test)
tools/regression/priv/priv_vfs_stickyfile.c
63
struct test *test)
tools/regression/priv/priv_vfs_stickyfile.c
74
struct test *test)
tools/regression/priv/priv_vfs_stickyfile.c
85
struct test *test)
tools/regression/priv/priv_vfs_stickyfile.c
95
priv_vfs_stickyfile_dir_fowner(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_utimes.c
111
priv_vfs_utimes_froot_null(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_utimes.c
131
priv_vfs_utimes_fowner(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_utimes.c
152
priv_vfs_utimes_fowner_null(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_utimes.c
172
priv_vfs_utimes_fother(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_utimes.c
195
priv_vfs_utimes_fother_null(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_utimes.c
215
priv_vfs_utimes_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_utimes.c
52
priv_vfs_utimes_froot_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_utimes.c
62
priv_vfs_utimes_fowner_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_utimes.c
72
priv_vfs_utimes_fother_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vfs_utimes.c
88
priv_vfs_utimes_froot(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vm_madv_protect.c
45
priv_vm_madv_protect_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vm_madv_protect.c
52
priv_vm_madv_protect(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vm_madv_protect.c
71
priv_vm_madv_protect_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vm_mlock.c
45
priv_vm_mlock_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vm_mlock.c
52
priv_vm_mlock(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vm_mlock.c
68
priv_vm_mlock_cleanup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vm_munlock.c
45
priv_vm_munlock_setup(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vm_munlock.c
52
priv_vm_munlock(int asroot, int injail, struct test *test)
tools/regression/priv/priv_vm_munlock.c
69
priv_vm_munlock_cleanup(int asroot, int injail, struct test *test)
tools/regression/pthread/unwind/main_thread_exit.cpp
12
Test test;
tools/regression/pthread/unwind/thread_normal_exit.cpp
12
Test test;
tools/regression/security/cap_test/cap_test.c
44
struct test all_tests[] = {
tools/regression/security/cap_test/cap_test.c
53
int test_count = sizeof(all_tests) / sizeof(struct test);
tools/regression/security/cap_test/cap_test.c
94
execute(int id, struct test *t) {
tools/regression/security/cap_test/cap_test.h
145
int execute(int id, struct test*);
tools/regression/sockets/listen_backlog/listen_backlog.c
101
const char *test)
tools/regression/sockets/listen_backlog/listen_backlog.c
108
test, domainstring, typestring);
tools/regression/sockets/listen_backlog/listen_backlog.c
113
if (socket_get_backlog(sock, &backlog_retrieved, testclass, test,
tools/regression/sockets/listen_backlog/listen_backlog.c
121
testclass, test, backlog_retrieved,
tools/regression/sockets/listen_backlog/listen_backlog.c
128
warn("%s: %s: socket_listen: listen(, %d)", testclass, test,
tools/regression/sockets/listen_backlog/listen_backlog.c
134
if (socket_get_backlog(sock, &backlog_retrieved, testclass, test,
tools/regression/sockets/listen_backlog/listen_backlog.c
142
testclass, test, backlog_retrieved,
tools/regression/sockets/listen_backlog/listen_backlog.c
223
const char *typestring, const char *testclass, const char *test)
tools/regression/sockets/listen_backlog/listen_backlog.c
230
testclass, test, domainstring, typestring);
tools/regression/sockets/listen_backlog/listen_backlog.c
236
testclass, test, backlog);
tools/regression/sockets/listen_backlog/listen_backlog.c
241
if (socket_get_backlog(sock, &backlog_retrieved, testclass, test,
tools/regression/sockets/listen_backlog/listen_backlog.c
249
"not %d", testclass, test, backlog_retrieved,
tools/regression/sockets/listen_backlog/listen_backlog.c
257
testclass, test, update_backlog);
tools/regression/sockets/listen_backlog/listen_backlog.c
262
if (socket_get_backlog(sock, &backlog_retrieved, testclass, test,
tools/regression/sockets/listen_backlog/listen_backlog.c
270
"not %d", testclass, test, backlog_retrieved,
tools/regression/sockets/listen_backlog/listen_backlog.c
68
const char *test, const char *testfunc)
tools/regression/sockets/listen_backlog/listen_backlog.c
76
"SOL_SOCKET, SO_LISTENQLIMIT)", testclass, test,
tools/regression/sockets/listen_backlog/listen_backlog.c
84
testclass, test, testfunc, len);
tools/regression/sockets/sendfile/sendfile.c
267
send_test(int connect_socket, struct sendfile_test test)
tools/regression/sockets/sendfile/sendfile.c
284
length = st.st_size - test.offset;
tools/regression/sockets/sendfile/sendfile.c
285
if (test.length > 0 && test.length < (uint32_t)length)
tools/regression/sockets/sendfile/sendfile.c
286
length = test.length;
tools/regression/sockets/sendfile/sendfile.c
288
init_th(&th, test.hdr_length, test.offset, length);
tools/regression/sockets/sendfile/sendfile.c
294
if (test.hdr_length != 0) {
tools/regression/sockets/sendfile/sendfile.c
295
header = malloc(test.hdr_length);
tools/regression/sockets/sendfile/sendfile.c
302
headers.iov_len = test.hdr_length;
tools/regression/sockets/sendfile/sendfile.c
313
if (sendfile(file_fd, connect_socket, test.offset, test.length,
tools/regression/sockets/sendfile/sendfile.c
324
length = sb.st_size - test.offset;
tools/regression/sockets/unix_gc/unix_gc.c
108
err(-1, "%s: sendmsg", test);
tools/regression/sockets/unix_gc/unix_gc.c
111
errx(-1, "%s: sendfd: before %d after %d\n", test,
tools/regression/sockets/unix_gc/unix_gc.c
154
err(-1, "%s: socket", test);
tools/regression/sockets/unix_gc/unix_gc.c
163
err(-1, "%s: bind", test);
tools/regression/sockets/unix_gc/unix_gc.c
171
err(-1, "%s: connect", test);
tools/regression/sockets/unix_gc/unix_gc.c
179
err(-1, "%s: listen", test);
tools/regression/sockets/unix_gc/unix_gc.c
187
err(-1, "%s: socketpair", test);
tools/regression/sockets/unix_gc/unix_gc.c
195
err(-1, "%s: getsockname", test);
tools/regression/sockets/unix_gc/unix_gc.c
203
err(-1, "%s: fcntl(F_SETFL, O_NONBLOCK)", test);
tools/regression/sockets/unix_gc/unix_gc.c
211
err(-1, "%s: socket", test);
tools/regression/sockets/unix_gc/unix_gc.c
213
err(-1, "%s: socketpair", test);
tools/regression/sockets/unix_gc/unix_gc.c
221
err(-1, "%s: socket", test);
tools/regression/sockets/unix_gc/unix_gc.c
223
err(-1, "%s: socketpair", test);
tools/regression/sockets/unix_gc/unix_gc.c
225
err(-1, "%s: socketpair", test);
tools/regression/sockets/unix_gc/unix_gc.c
262
test, before_inflight, after_inflight);
tools/regression/sockets/unix_gc/unix_gc.c
266
warnx("%s: before: %d, after: %d", test, before_openfiles,
tools/regression/sockets/unix_gc/unix_gc.c
279
test = "twosome_nothing1";
tools/regression/sockets/unix_gc/unix_gc.c
280
printf("%s\n", test);
tools/regression/sockets/unix_gc/unix_gc.c
289
test = "twosome_nothing2";
tools/regression/sockets/unix_gc/unix_gc.c
290
printf("%s\n", test);
tools/regression/sockets/unix_gc/unix_gc.c
308
test = testname;
tools/regression/sockets/unix_gc/unix_gc.c
344
test = "threesome_nothing";
tools/regression/sockets/unix_gc/unix_gc.c
345
printf("%s\n", test);
tools/regression/sockets/unix_gc/unix_gc.c
365
test = "threesome_drop1";
tools/regression/sockets/unix_gc/unix_gc.c
366
printf("%s\n", test);
tools/regression/sockets/unix_gc/unix_gc.c
376
test = "threesome_drop2";
tools/regression/sockets/unix_gc/unix_gc.c
377
printf("%s\n", test);
tools/regression/sockets/unix_gc/unix_gc.c
387
test = "threesome_drop3";
tools/regression/sockets/unix_gc/unix_gc.c
388
printf("%s\n", test);
tools/regression/sockets/unix_gc/unix_gc.c
398
test = "threesome_drop4";
tools/regression/sockets/unix_gc/unix_gc.c
399
printf("%s\n", test);
tools/regression/sockets/unix_gc/unix_gc.c
409
test = "threesome_drop5";
tools/regression/sockets/unix_gc/unix_gc.c
410
printf("%s\n", test);
tools/regression/sockets/unix_gc/unix_gc.c
420
test = "threesome_drop6";
tools/regression/sockets/unix_gc/unix_gc.c
421
printf("%s\n", test);
tools/regression/sockets/unix_gc/unix_gc.c
440
test = "fivesome_nothing";
tools/regression/sockets/unix_gc/unix_gc.c
441
printf("%s\n", test);
tools/regression/sockets/unix_gc/unix_gc.c
456
test = testname;
tools/regression/sockets/unix_gc/unix_gc.c
505
test = "complex_cycles";
tools/regression/sockets/unix_gc/unix_gc.c
506
printf("%s\n", test);
tools/regression/sockets/unix_gc/unix_gc.c
53
static const char *test;
tools/regression/sockets/unix_gc/unix_gc.c
532
test = "listen_nothing_unp";
tools/regression/sockets/unix_gc/unix_gc.c
533
printf("%s\n", test);
tools/regression/sockets/unix_gc/unix_gc.c
537
snprintf(sun.sun_path, sizeof(sun.sun_path), "%s/%s", dpath, test);
tools/regression/sockets/unix_gc/unix_gc.c
546
test = "listen_nothing_inet";
tools/regression/sockets/unix_gc/unix_gc.c
547
printf("%s\n", test);
tools/regression/sockets/unix_gc/unix_gc.c
584
test = "listen_drop_unp1";
tools/regression/sockets/unix_gc/unix_gc.c
585
printf("%s\n", test);
tools/regression/sockets/unix_gc/unix_gc.c
586
snprintf(sun.sun_path, sizeof(sun.sun_path), "%s/%s", dpath, test);
tools/regression/sockets/unix_gc/unix_gc.c
599
test = "listen_drop_unp2";
tools/regression/sockets/unix_gc/unix_gc.c
600
printf("%s\n", test);
tools/regression/sockets/unix_gc/unix_gc.c
601
snprintf(sun.sun_path, sizeof(sun.sun_path), "%s/%s", dpath, test);
tools/regression/sockets/unix_gc/unix_gc.c
619
test = "listen_drop_inet1";
tools/regression/sockets/unix_gc/unix_gc.c
620
printf("%s\n", test);
tools/regression/sockets/unix_gc/unix_gc.c
634
test = "listen_drop_inet2";
tools/regression/sockets/unix_gc/unix_gc.c
635
printf("%s\n", test);
tools/regression/sockets/unix_gc/unix_gc.c
659
test = "listen_connect_nothing";
tools/regression/sockets/unix_gc/unix_gc.c
660
printf("%s\n", test);
tools/regression/sockets/unix_gc/unix_gc.c
691
test = "listen_connect_drop";
tools/regression/sockets/unix_gc/unix_gc.c
692
printf("%s\n", test);
tools/regression/sockets/unix_gc/unix_gc.c
723
test = "recursion";
tools/regression/sockets/unix_gc/unix_gc.c
724
printf("%s\n", test);
tools/regression/sockets/zerosend/zerosend.c
101
err(1, "%s: setup_udp: bind(%s, %d)", test,
tools/regression/sockets/zerosend/zerosend.c
105
err(1, "%s: setup_udp: connect(%s, %d)", test,
tools/regression/sockets/zerosend/zerosend.c
113
setup_tcp(const char *test, int *fdp, int port)
tools/regression/sockets/zerosend/zerosend.c
131
err(1, "%s: setup_tcp: socket", test);
tools/regression/sockets/zerosend/zerosend.c
133
err(1, "%s: bind(%s, %d)", test, inet_ntoa(sin.sin_addr),
tools/regression/sockets/zerosend/zerosend.c
136
err(1, "%s: listen", test);
tools/regression/sockets/zerosend/zerosend.c
144
err(1, "%s: setup_tcp: socket", test);
tools/regression/sockets/zerosend/zerosend.c
146
err(1, "%s: setup_tcp: fcntl(O_NONBLOCK)", test);
tools/regression/sockets/zerosend/zerosend.c
149
err(1, "%s: setup_tcp: connect(%s, %d)", test,
tools/regression/sockets/zerosend/zerosend.c
157
err(1, "%s: sleep(1)", test);
tools/regression/sockets/zerosend/zerosend.c
160
err(1, "%s: accept", test);
tools/regression/sockets/zerosend/zerosend.c
162
err(1, "%s: sleep(1)", test);
tools/regression/sockets/zerosend/zerosend.c
172
err(1, "%s: setup_tcp: select", test);
tools/regression/sockets/zerosend/zerosend.c
174
errx(1, "%s: setup_tcp: select: exception", test);
tools/regression/sockets/zerosend/zerosend.c
176
errx(1, "%s: setup_tcp: select: not writable", test);
tools/regression/sockets/zerosend/zerosend.c
184
setup_udsstream(const char *test, int *fdp)
tools/regression/sockets/zerosend/zerosend.c
188
err(1, "%s: setup_udsstream: socketpair", test);
tools/regression/sockets/zerosend/zerosend.c
192
setup_udsdgram(const char *test, int *fdp)
tools/regression/sockets/zerosend/zerosend.c
196
err(1, "%s: setup_udsdgram: socketpair", test);
tools/regression/sockets/zerosend/zerosend.c
200
setup_pipe(const char *test, int *fdp)
tools/regression/sockets/zerosend/zerosend.c
204
err(1, "%s: setup_pipe: pipe", test);
tools/regression/sockets/zerosend/zerosend.c
208
setup_fifo(const char *test, int *fdp)
tools/regression/sockets/zerosend/zerosend.c
214
err(1, "%s: setup_fifo: mktemp", test);
tools/regression/sockets/zerosend/zerosend.c
218
err(1, "%s: setup_fifo: mkfifo(%s)", test, path);
tools/regression/sockets/zerosend/zerosend.c
222
err(1, "%s: setup_fifo: open(%s, O_RDONLY)", test, path);
tools/regression/sockets/zerosend/zerosend.c
226
err(1, "%s: setup_fifo: open(%s, O_WRONLY)", test, path);
tools/regression/sockets/zerosend/zerosend.c
47
try_0send(const char *test, int fd)
tools/regression/sockets/zerosend/zerosend.c
55
err(1, "%s: try_0send", test);
tools/regression/sockets/zerosend/zerosend.c
57
errx(1, "%s: try_0send: returned %zd", test, len);
tools/regression/sockets/zerosend/zerosend.c
61
try_0write(const char *test, int fd)
tools/regression/sockets/zerosend/zerosend.c
69
err(1, "%s: try_0write", test);
tools/regression/sockets/zerosend/zerosend.c
71
errx(1, "%s: try_0write: returned %zd", test, len);
tools/regression/sockets/zerosend/zerosend.c
75
setup_udp(const char *test, int *fdp, int port1, int port2)
tools/regression/sockets/zerosend/zerosend.c
88
err(1, "%s: setup_udp: socket", test);
tools/regression/sockets/zerosend/zerosend.c
90
err(1, "%s: setup_udp: bind(%s, %d)", test,
tools/regression/sockets/zerosend/zerosend.c
94
err(1, "%s: setup_udp: connect(%s, %d)", test,
tools/regression/sockets/zerosend/zerosend.c
99
err(1, "%s: setup_udp: socket", test);
tools/regression/usr.bin/cc/float.c
124
test("sign bits", fpequal(-0.0, -0.0) && !fpequal(0.0, -0.0));
tools/regression/usr.bin/cc/float.c
127
test("NaN equality", fpequal(NAN, NAN) && NAN != NAN && vd != vd);
tools/regression/usr.bin/cc/float.c
130
test("NaN comparison returns false", !(vd <= vd));
tools/regression/usr.bin/cc/float.c
155
test("0.75->int conversion rounds toward 0, raises inexact exception",
tools/regression/usr.bin/cc/float.c
161
test("-42.0->int conversion is exact, raises no exception",
tools/regression/usr.bin/cc/float.c
176
test("compile-time constants don't have too much precision",
tools/regression/usr.bin/cc/float.c
179
test("const minimum rounding precision",
tools/regression/usr.bin/cc/float.c
188
test("runtime minimum rounding precision",
tools/regression/usr.bin/cc/float.c
191
test("explicit float to float conversion discards extra precision",
tools/regression/usr.bin/cc/float.c
194
test("explicit double to float conversion discards extra precision",
tools/regression/usr.bin/cc/float.c
197
test("explicit ldouble to float conversion discards extra precision",
tools/regression/usr.bin/cc/float.c
201
test("explicit double to double conversion discards extra precision",
tools/regression/usr.bin/cc/float.c
204
test("explicit ldouble to double conversion discards extra precision",
tools/regression/usr.bin/cc/float.c
214
test("implicit promption to double or higher precision is consistent",
tools/regression/usr.bin/cc/float.c
226
test("const assignment discards extra precision", f == 1.0F && d == 1.0);
tools/regression/usr.bin/cc/float.c
230
test("variable assignment discards explicit extra precision",
tools/regression/usr.bin/cc/float.c
234
test("variable assignment discards implicit extra precision",
tools/regression/usr.bin/cc/float.c
237
test("return discards extra precision",
tools/regression/usr.bin/cc/float.c
250
test("associativity is respected",
tools/regression/usr.bin/cc/float.c
83
test("optimizations don't break the sign of 0",
tools/regression/usr.bin/cc/float.c
95
test("optimizations don't break infinities",
tools/test/iconv/posix/posix.c
260
test(open_1, "open_1");
tools/test/iconv/posix/posix.c
261
test(open_2, "open_2");
tools/test/iconv/posix/posix.c
262
test(close_1, "close_1");
tools/test/iconv/posix/posix.c
263
test(conv_ret, "conv_ret");
tools/test/iconv/posix/posix.c
264
test(conv_ebadf, "conv_ebadf");
tools/test/iconv/posix/posix.c
265
test(conv_2big, "conv_2big");
tools/test/iconv/posix/posix.c
266
test(conv_einval, "conv_einval");
tools/test/iconv/posix/posix.c
267
test(conv_eilseq, "conv_eilseq");
tools/test/stress2/include/stress.h
30
extern int test(void);
tools/test/stress2/lib/main.c
113
e = test();
tools/test/stress2/testcases/openat/doat.c
101
tests = calloc(NUM_OF_TESTS, sizeof(struct test));
tools/test/stress2/testcases/openat/doat.c
64
struct test *tests;
tools/test/stress2/tools/swap.c
218
test();
tools/tools/sortbench/sort_bench.c
156
run_bench(enum sort s, enum test t, int runs, int elts)
tools/tools/sortbench/sort_bench.c
196
static enum test
tools/tools/sortbench/sort_bench.c
197
parse_test(char *test)
tools/tools/sortbench/sort_bench.c
199
if (strcmp(test, "rand") == 0)
tools/tools/sortbench/sort_bench.c
201
else if (strcmp(test, "sort") == 0)
tools/tools/sortbench/sort_bench.c
203
else if (strcmp(test, "part") == 0)
tools/tools/sortbench/sort_bench.c
205
else if (strcmp(test, "rev") == 0)
tools/tools/sortbench/sort_bench.c
249
enum test t = parse_test(argv[2]);
tools/tools/syscall_timing/syscall_timing.c
1020
const struct test *the_test;
tools/tools/syscall_timing/syscall_timing.c
925
static const struct test tests[] = {
usr.sbin/cron/lib/misc.c
123
const char **test;
usr.sbin/cron/lib/misc.c
128
for ( test = DebugFlagNames, mask = 1;
usr.sbin/cron/lib/misc.c
129
*test != NULL && strcmp_until(*test, pc, ',');
usr.sbin/cron/lib/misc.c
130
test++, mask <<= 1
usr.sbin/cron/lib/misc.c
134
if (!*test) {
usr.sbin/lpr/lpr/lpr.c
113
static int test(const char *_file);
usr.sbin/lpr/lpr/lpr.c
373
if ((f = test(arg = *argv++)) < 0)
usr.sbin/makefs/cd9660.c
321
int test;
usr.sbin/makefs/cd9660.c
327
test = cd9660_valid_d_chars(val);
usr.sbin/makefs/cd9660.c
329
test = cd9660_valid_a_chars(val);
usr.sbin/makefs/cd9660.c
330
if (test) {
usr.sbin/makefs/cd9660.c
332
if (test == 2)