test 54 examples/validchars/validchr.c if (test())
test 74 examples/validchars/validchr.c c = test();
test 46 lib/talloc/testsuite.c test, __location__, #expr, str); \
test 54 lib/talloc/testsuite.c test, __location__, arg1, arg2, desc); \
test 70 lib/talloc/testsuite.c test, #ptr, \
test 81 lib/talloc/testsuite.c test, #ptr, \
test 92 lib/talloc/testsuite.c test, #ptr, \
test 80 lib/tevent/testsuite.c ev_ctx = event_context_init_byname(test, backend);
test 82 lib/tevent/testsuite.c torture_comment(test, "event backend '%s' not supported\n", backend);
test 86 lib/tevent/testsuite.c torture_comment(test, "Testing event backend '%s'\n", backend);
test 116 lib/tevent/testsuite.c torture_fail(test, talloc_asprintf(test, "Failed event loop %s\n", strerror(errno)));
test 129 lib/tevent/testsuite.c torture_comment(test, "Got %.2f pipe events/sec\n", fde_count/timeval_elapsed(&t));
test 135 lib/tevent/testsuite.c torture_assert_int_equal(test, alarm_count, 1+fde_count, "alarm count mismatch");
test 139 lib/tevent/testsuite.c torture_assert_int_equal(test, info_count, fde_count, "info count mismatch");
test 32 lib/torture/subunit.c if (!strcmp(tcase->name, test->name)) {
test 33 lib/torture/subunit.c printf("%s", test->name);
test 35 lib/torture/subunit.c printf("%s.%s", tcase->name, test->name);
test 44 lib/torture/subunit.c subunit_print_testname(ctx, tcase, test);
test 188 lib/torture/torture.c fn = test->fn;
test 190 lib/torture/torture.c return fn(torture_ctx, tcase->data, test->data);
test 202 lib/torture/torture.c struct torture_test *test = talloc(tcase, struct torture_test);
test 204 lib/torture/torture.c test->name = talloc_strdup(test, name);
test 205 lib/torture/torture.c test->description = NULL;
test 206 lib/torture/torture.c test->run = wrap_test_with_testcase_const;
test 207 lib/torture/torture.c test->fn = run;
test 208 lib/torture/torture.c test->dangerous = false;
test 209 lib/torture/torture.c test->data = data;
test 211 lib/torture/torture.c DLIST_ADD_END(tcase->tests, test, struct torture_test *);
test 213 lib/torture/torture.c return test;
test 293 lib/torture/torture.c context->results->ui_ops->test_start(context, tcase, test);
test 315 lib/torture/torture.c if (tcase == NULL || strcmp(test->name, tcase->name) != 0) {
test 317 lib/torture/torture.c context->active_testname = talloc_asprintf(context, "%s-%s", old_testname, test->name);
test 321 lib/torture/torture.c context->active_test = test;
test 323 lib/torture/torture.c torture_ui_test_start(context, tcase, test);
test 334 lib/torture/torture.c } else if (test->dangerous &&
test 338 lib/torture/torture.c "disabled %s - enable dangerous tests to use", test->name);
test 341 lib/torture/torture.c success = test->run(context, tcase, test);
test 362 lib/torture/torture.c if (tcase == NULL || strcmp(test->name, tcase->name) != 0) {
test 377 lib/torture/torture.c struct torture_test *test;
test 399 lib/torture/torture.c for (test = tcase->tests; test; test = test->next) {
test 400 lib/torture/torture.c ret &= internal_torture_run_test(context, tcase, test,
test 425 lib/torture/torture.c return internal_torture_run_test(context, tcase, test, false);
test 431 lib/torture/torture.c return lp_parm_int(test->lp_ctx, NULL, "torture", name, default_value);
test 437 lib/torture/torture.c return lp_parm_double(test->lp_ctx, NULL, "torture", name, default_value);
test 443 lib/torture/torture.c return lp_parm_bool(test->lp_ctx, NULL, "torture", name, default_value);
test 452 lib/torture/torture.c SMB_ASSERT(test != NULL);
test 453 lib/torture/torture.c SMB_ASSERT(test->lp_ctx != NULL);
test 455 lib/torture/torture.c ret = lp_parm_string(test->lp_ctx, NULL, "torture", name);
test 470 lib/torture/torture.c fn = test->fn;
test 472 lib/torture/torture.c return fn(torture_ctx, test->data);
test 481 lib/torture/torture.c struct torture_test *test;
test 485 lib/torture/torture.c test = talloc(tcase, struct torture_test);
test 487 lib/torture/torture.c test->name = talloc_strdup(test, name);
test 488 lib/torture/torture.c test->description = NULL;
test 489 lib/torture/torture.c test->run = wrap_test_with_simple_tcase_const;
test 490 lib/torture/torture.c test->fn = run;
test 491 lib/torture/torture.c test->data = data;
test 492 lib/torture/torture.c test->dangerous = false;
test 494 lib/torture/torture.c DLIST_ADD_END(tcase->tests, test, struct torture_test *);
test 505 lib/torture/torture.c fn = test->fn;
test 515 lib/torture/torture.c struct torture_test *test;
test 520 lib/torture/torture.c test = talloc(tcase, struct torture_test);
test 522 lib/torture/torture.c test->name = talloc_strdup(test, name);
test 523 lib/torture/torture.c test->description = NULL;
test 524 lib/torture/torture.c test->run = wrap_simple_test;
test 525 lib/torture/torture.c test->fn = run;
test 526 lib/torture/torture.c test->dangerous = false;
test 528 lib/torture/torture.c DLIST_ADD_END(tcase->tests, test, struct torture_test *);
test 571 lib/torture/torture.c fn = test->fn;
test 582 lib/torture/torture.c struct torture_test *test;
test 584 lib/torture/torture.c test = talloc(tcase, struct torture_test);
test 586 lib/torture/torture.c test->name = talloc_strdup(test, name);
test 587 lib/torture/torture.c test->description = NULL;
test 588 lib/torture/torture.c test->run = wrap_test_with_simple_test_const;
test 589 lib/torture/torture.c test->fn = run;
test 590 lib/torture/torture.c test->data = NULL;
test 591 lib/torture/torture.c test->dangerous = false;
test 593 lib/torture/torture.c DLIST_ADD_END(tcase->tests, test, struct torture_test *);
test 595 lib/torture/torture.c return test;
test 604 lib/torture/torture.c fn = test->fn;
test 613 lib/torture/torture.c struct torture_test *test;
test 615 lib/torture/torture.c test = talloc(tcase, struct torture_test);
test 617 lib/torture/torture.c test->name = talloc_strdup(test, name);
test 618 lib/torture/torture.c test->description = NULL;
test 619 lib/torture/torture.c test->run = wrap_test_with_simple_test;
test 620 lib/torture/torture.c test->fn = run;
test 621 lib/torture/torture.c test->data = NULL;
test 622 lib/torture/torture.c test->dangerous = false;
test 624 lib/torture/torture.c DLIST_ADD_END(tcase->tests, test, struct torture_test *);
test 626 lib/torture/torture.c return test;
test 127 lib/torture/torture.h struct torture_test *test);
test 155 lib/util/charset/tests/iconv.c torture_fail(test,
test 156 lib/util/charset/tests/iconv.c talloc_asprintf(test,
test 160 lib/util/charset/tests/iconv.c cd2 = smb_iconv_open_ex(test, charset, "UTF-16LE", lp_parm_bool(test->lp_ctx, NULL, "iconv", "native", true));
test 161 lib/util/charset/tests/iconv.c cd3 = smb_iconv_open_ex(test, "UTF-16LE", charset, lp_parm_bool(test->lp_ctx, NULL, "iconv", "native", true));
test 202 lib/util/charset/tests/iconv.c torture_assert_int_equal(test, ret1, ret2, "ret mismatch");
test 207 lib/util/charset/tests/iconv.c torture_fail(test, talloc_asprintf(test,
test 213 lib/util/charset/tests/iconv.c torture_assert_int_equal(test, outsize1, outsize2, "outsize mismatch");
test 215 lib/util/charset/tests/iconv.c torture_assert_int_equal(test, size_in1, size_in2, "size_in mismatch");
test 219 lib/util/charset/tests/iconv.c torture_comment(test, "size=%d ret1=%d ret2=%d", (int)size, (int)ret1, (int)ret2);
test 225 lib/util/charset/tests/iconv.c torture_comment(test, "next codepoint is %u",
test 229 lib/util/charset/tests/iconv.c torture_comment(test, "next codepoint is %u",
test 233 lib/util/charset/tests/iconv.c torture_fail(test, "failed");
test 254 lib/util/charset/tests/iconv.c torture_assert_int_equal(test, ret3, 0, talloc_asprintf(test,
test 263 lib/util/charset/tests/iconv.c torture_assert_int_equal(test, outsize3, sizeof(buf3) - size,
test 267 lib/util/charset/tests/iconv.c torture_comment(test, "pull bytes mismatch:");
test 270 lib/util/charset/tests/iconv.c torture_comment(test, "next codepoint is %u\n",
test 274 lib/util/charset/tests/iconv.c torture_fail(test, "");
test 840 lib/zlib/contrib/inflate86/inffas86.c test al, al
test 854 lib/zlib/contrib/inflate86/inffas86.c test al, 16
test 905 lib/zlib/contrib/inflate86/inffas86.c test al, 16 /* if ((op & 16) == 0) */
test 984 lib/zlib/contrib/inflate86/inffas86.c test al, 64
test 998 lib/zlib/contrib/inflate86/inffas86.c test al, 64
test 1091 lib/zlib/contrib/inflate86/inffas86.c test al, 32
test 556 lib/zlib/examples/gun.c if (test)
test 624 lib/zlib/examples/gun.c int ret, len, test;
test 643 lib/zlib/examples/gun.c test = 0;
test 651 lib/zlib/examples/gun.c test = 1;
test 657 lib/zlib/examples/gun.c if (test)
test 683 lib/zlib/examples/gun.c ret = gunzip(&strm, *argv, outname, test);
test 688 lib/zlib/examples/gun.c ret = gunzip(&strm, NULL, NULL, test);
test 122 source3/libgpo/gpext/gpext.c struct gp_extension_methods *test;
test 146 source3/libgpo/gpext/gpext.c test = get_methods_by_name(extensions, name);
test 147 source3/libgpo/gpext/gpext.c if (test) {
test 370 source3/nmbd/nmbd.c test = False;
test 374 source3/nmbd/nmbd.c if ( test && !lp_file_list_changed() )
test 380 source3/nmbd/nmbd.c if ( !test ) {
test 738 source3/smbd/server.c test = False;
test 744 source3/smbd/server.c if (test && !lp_file_list_changed())
test 754 source3/smbd/server.c if (!test)
test 738 source3/torture/torture.c bool test;
test 745 source3/torture/torture.c test = rw_torture3(cli, randomfname);
test 748 source3/torture/torture.c test = False;
test 751 source3/torture/torture.c return test;
test 439 source3/torture/vfstest.c test = False;
test 445 source3/torture/vfstest.c if (test && !lp_file_list_changed())
test 453 source3/torture/vfstest.c if (!test)
test 180 source3/winbindd/idmap.c struct idmap_alloc_methods *test;
test 199 source3/winbindd/idmap.c test = get_alloc_methods(name);
test 200 source3/winbindd/idmap.c if (test) {
test 97 source4/lib/messaging/tests/irpc.c rpcecho, ECHO_ADDONE, &r, test);
test 99 source4/lib/messaging/tests/irpc.c torture_assert_ntstatus_ok(test, status, "AddOne failed");
test 102 source4/lib/messaging/tests/irpc.c torture_assert(test, *r.out.out_data == r.in.in_data + 1,
test 105 source4/lib/messaging/tests/irpc.c torture_comment(test, "%u + 1 = %u\n", r.in.in_data, *r.out.out_data);
test 87 source4/nbt_server/nbt_server.h if (!(test)) { \
test 88 source4/nbt_server/nbt_server.h nbtd_bad_packet(packet, src, #test); \
test 39 source4/torture/ndr/ndr.c bool (*check_fn) (struct torture_context *ctx, void *data) = test->fn;
test 40 source4/torture/ndr/ndr.c const struct ndr_pull_test_data *data = (const struct ndr_pull_test_data *)test->data;
test 67 source4/torture/ndr/ndr.c struct torture_test *test;
test 73 source4/torture/ndr/ndr.c test = talloc(tcase, struct torture_test);
test 75 source4/torture/ndr/ndr.c test->name = talloc_strdup(test, name);
test 76 source4/torture/ndr/ndr.c test->description = NULL;
test 77 source4/torture/ndr/ndr.c test->run = wrap_ndr_pull_test;
test 78 source4/torture/ndr/ndr.c data = talloc(test, struct ndr_pull_test_data);
test 83 source4/torture/ndr/ndr.c test->data = data;
test 84 source4/torture/ndr/ndr.c test->fn = check_fn;
test 85 source4/torture/ndr/ndr.c test->dangerous = false;
test 87 source4/torture/ndr/ndr.c DLIST_ADD_END(tcase->tests, test, struct torture_test *);
test 89 source4/torture/ndr/ndr.c return test;
test 441 source4/torture/rpc/eventlog.c struct torture_test *test;
test 448 source4/torture/rpc/eventlog.c test = torture_rpc_tcase_add_test(tcase, "ClearEventLog",
test 450 source4/torture/rpc/eventlog.c test->dangerous = true;
test 258 source4/torture/rpc/frsapi.c struct torture_test *test;
test 263 source4/torture/rpc/frsapi.c test = torture_rpc_tcase_add_test(tcase, "DsPollingIntervalW",
test 266 source4/torture/rpc/frsapi.c test = torture_rpc_tcase_add_test(tcase, "IsPathReplicated",
test 269 source4/torture/rpc/frsapi.c test = torture_rpc_tcase_add_test(tcase, "ForceReplication",
test 272 source4/torture/rpc/frsapi.c test = torture_rpc_tcase_add_test(tcase, "InfoW",
test 103 source4/torture/rpc/initshutdown.c struct torture_test *test;
test 108 source4/torture/rpc/initshutdown.c test = torture_rpc_tcase_add_test(tcase, "Init", test_Init);
test 109 source4/torture/rpc/initshutdown.c test->dangerous = true;
test 110 source4/torture/rpc/initshutdown.c test = torture_rpc_tcase_add_test(tcase, "InitEx", test_InitEx);
test 111 source4/torture/rpc/initshutdown.c test->dangerous = true;
test 2333 source4/torture/rpc/netlogon.c struct torture_test *test;
test 2361 source4/torture/rpc/netlogon.c test = torture_rpc_tcase_add_test_creds(tcase, "GetDomainInfo_async", test_GetDomainInfo_async);
test 2362 source4/torture/rpc/netlogon.c test->dangerous = true;
test 174 source4/torture/rpc/ntsvcs.c struct torture_test *test;
test 179 source4/torture/rpc/ntsvcs.c test = torture_rpc_tcase_add_test(tcase, "PNP_GetDeviceRegProp",
test 181 source4/torture/rpc/ntsvcs.c test = torture_rpc_tcase_add_test(tcase, "PNP_GetDeviceList",
test 183 source4/torture/rpc/ntsvcs.c test = torture_rpc_tcase_add_test(tcase, "PNP_GetDeviceListSize",
test 185 source4/torture/rpc/ntsvcs.c test = torture_rpc_tcase_add_test(tcase, "PNP_GetVersion",
test 275 source4/torture/rpc/rpc.c fn = test->fn;
test 288 source4/torture/rpc/rpc.c fn = test->fn;
test 290 source4/torture/rpc/rpc.c return fn(tctx, tcase_data->pipe, test->data);
test 302 source4/torture/rpc/rpc.c fn = test->fn;
test 312 source4/torture/rpc/rpc.c struct torture_test *test;
test 314 source4/torture/rpc/rpc.c test = talloc(tcase, struct torture_test);
test 316 source4/torture/rpc/rpc.c test->name = talloc_strdup(test, name);
test 317 source4/torture/rpc/rpc.c test->description = NULL;
test 318 source4/torture/rpc/rpc.c test->run = torture_rpc_wrap_test;
test 319 source4/torture/rpc/rpc.c test->dangerous = false;
test 320 source4/torture/rpc/rpc.c test->data = NULL;
test 321 source4/torture/rpc/rpc.c test->fn = fn;
test 323 source4/torture/rpc/rpc.c DLIST_ADD(tcase->tcase.tests, test);
test 325 source4/torture/rpc/rpc.c return test;
test 333 source4/torture/rpc/rpc.c struct torture_test *test;
test 335 source4/torture/rpc/rpc.c test = talloc(tcase, struct torture_test);
test 337 source4/torture/rpc/rpc.c test->name = talloc_strdup(test, name);
test 338 source4/torture/rpc/rpc.c test->description = NULL;
test 339 source4/torture/rpc/rpc.c test->run = torture_rpc_wrap_test_creds;
test 340 source4/torture/rpc/rpc.c test->dangerous = false;
test 341 source4/torture/rpc/rpc.c test->data = NULL;
test 342 source4/torture/rpc/rpc.c test->fn = fn;
test 344 source4/torture/rpc/rpc.c DLIST_ADD(tcase->tcase.tests, test);
test 346 source4/torture/rpc/rpc.c return test;
test 356 source4/torture/rpc/rpc.c struct torture_test *test;
test 358 source4/torture/rpc/rpc.c test = talloc(tcase, struct torture_test);
test 360 source4/torture/rpc/rpc.c test->name = talloc_strdup(test, name);
test 361 source4/torture/rpc/rpc.c test->description = NULL;
test 362 source4/torture/rpc/rpc.c test->run = torture_rpc_wrap_test_ex;
test 363 source4/torture/rpc/rpc.c test->dangerous = false;
test 364 source4/torture/rpc/rpc.c test->data = userdata;
test 365 source4/torture/rpc/rpc.c test->fn = fn;
test 367 source4/torture/rpc/rpc.c DLIST_ADD(tcase->tcase.tests, test);
test 369 source4/torture/rpc/rpc.c return test;
test 1148 source4/torture/rpc/srvsvc.c struct torture_test *test;
test 1164 source4/torture/rpc/srvsvc.c test = torture_rpc_tcase_add_test(tcase, "NetShareAddSetDel",
test 1166 source4/torture/rpc/srvsvc.c test->dangerous = true;
test 1068 source4/torture/rpc/winreg.c test, sec_info, access_mask);
test 1103 source4/torture/rpc/winreg.c test);
test 1109 source4/torture/rpc/winreg.c test);
test 1883 source4/torture/rpc/winreg.c struct torture_test *test;
test 1888 source4/torture/rpc/winreg.c test = torture_rpc_tcase_add_test(tcase, "InitiateSystemShutdown",
test 1890 source4/torture/rpc/winreg.c test->dangerous = true;
test 1892 source4/torture/rpc/winreg.c test = torture_rpc_tcase_add_test(tcase, "InitiateSystemShutdownEx",
test 1894 source4/torture/rpc/winreg.c test->dangerous = true;
test 1371 source4/torture/rpc/wkssvc.c struct torture_test *test;
test 1413 source4/torture/rpc/wkssvc.c test = torture_rpc_tcase_add_test(tcase, "NetrSetPrimaryComputername",
test 1415 source4/torture/rpc/wkssvc.c test->dangerous = true;
test 1416 source4/torture/rpc/wkssvc.c test = torture_rpc_tcase_add_test(tcase, "NetrRenameMachineInDomain",
test 1418 source4/torture/rpc/wkssvc.c test->dangerous = true;
test 1419 source4/torture/rpc/wkssvc.c test = torture_rpc_tcase_add_test(tcase, "NetrRenameMachineInDomain2",
test 1421 source4/torture/rpc/wkssvc.c test->dangerous = true;
test 1425 source4/torture/rpc/wkssvc.c test = torture_rpc_tcase_add_test(tcase, "NetrJoinDomain2",
test 1427 source4/torture/rpc/wkssvc.c test->dangerous = true;
test 1428 source4/torture/rpc/wkssvc.c test = torture_rpc_tcase_add_test(tcase, "NetrUnjoinDomain2",
test 1430 source4/torture/rpc/wkssvc.c test->dangerous = true;
test 1434 source4/torture/rpc/wkssvc.c test->dangerous = true;
test 1437 source4/torture/rpc/wkssvc.c test->dangerous = true;
test 40 source4/torture/smb2/smb2.c fn = test->fn;
test 54 source4/torture/smb2/smb2.c struct torture_test *test;
test 59 source4/torture/smb2/smb2.c test = talloc(tcase, struct torture_test);
test 61 source4/torture/smb2/smb2.c test->name = talloc_strdup(test, name);
test 62 source4/torture/smb2/smb2.c test->description = NULL;
test 63 source4/torture/smb2/smb2.c test->run = wrap_simple_1smb2_test;
test 64 source4/torture/smb2/smb2.c test->fn = run;
test 65 source4/torture/smb2/smb2.c test->dangerous = false;
test 67 source4/torture/smb2/smb2.c DLIST_ADD_END(tcase->tests, test, struct torture_test *);
test 69 source4/torture/smb2/smb2.c return test;
test 92 source4/torture/smb2/smb2.c fn = test->fn;
test 109 source4/torture/smb2/smb2.c struct torture_test *test;
test 114 source4/torture/smb2/smb2.c test = talloc(tcase, struct torture_test);
test 116 source4/torture/smb2/smb2.c test->name = talloc_strdup(test, name);
test 117 source4/torture/smb2/smb2.c test->description = NULL;
test 118 source4/torture/smb2/smb2.c test->run = wrap_simple_2smb2_test;
test 119 source4/torture/smb2/smb2.c test->fn = run;
test 120 source4/torture/smb2/smb2.c test->dangerous = false;
test 122 source4/torture/smb2/smb2.c DLIST_ADD_END(tcase->tests, test, struct torture_test *);
test 124 source4/torture/smb2/smb2.c return test;
test 742 source4/torture/util_smb.c bool (*fn)(struct torture_context *, struct smbcli_state *, int ) = test->fn;
test 757 source4/torture/util_smb.c struct torture_test *test;
test 762 source4/torture/util_smb.c test = talloc(tcase, struct torture_test);
test 764 source4/torture/util_smb.c test->name = talloc_strdup(test, name);
test 765 source4/torture/util_smb.c test->description = NULL;
test 766 source4/torture/util_smb.c test->run = wrap_smb_multi_test;
test 767 source4/torture/util_smb.c test->fn = run;
test 768 source4/torture/util_smb.c test->dangerous = false;
test 770 source4/torture/util_smb.c DLIST_ADD_END(tcase->tests, test, struct torture_test *);
test 772 source4/torture/util_smb.c return test;
test 790 source4/torture/util_smb.c fn = test->fn;
test 809 source4/torture/util_smb.c struct torture_test *test;
test 814 source4/torture/util_smb.c test = talloc(tcase, struct torture_test);
test 816 source4/torture/util_smb.c test->name = talloc_strdup(test, name);
test 817 source4/torture/util_smb.c test->description = NULL;
test 818 source4/torture/util_smb.c test->run = wrap_simple_2smb_test;
test 819 source4/torture/util_smb.c test->fn = run;
test 820 source4/torture/util_smb.c test->dangerous = false;
test 822 source4/torture/util_smb.c DLIST_ADD_END(tcase->tests, test, struct torture_test *);
test 824 source4/torture/util_smb.c return test;
test 840 source4/torture/util_smb.c fn = test->fn;
test 854 source4/torture/util_smb.c struct torture_test *test;
test 859 source4/torture/util_smb.c test = talloc(tcase, struct torture_test);
test 861 source4/torture/util_smb.c test->name = talloc_strdup(test, name);
test 862 source4/torture/util_smb.c test->description = NULL;
test 863 source4/torture/util_smb.c test->run = wrap_simple_1smb_test;
test 864 source4/torture/util_smb.c test->fn = run;
test 865 source4/torture/util_smb.c test->dangerous = false;
test 867 source4/torture/util_smb.c DLIST_ADD_END(tcase->tests, test, struct torture_test *);
test 869 source4/torture/util_smb.c return test;