torture_ctx 180 lib/torture/torture.c static bool wrap_test_with_testcase_const(struct torture_context *torture_ctx, torture_ctx 190 lib/torture/torture.c return fn(torture_ctx, tcase->data, test->data); torture_ctx 464 lib/torture/torture.c struct torture_context *torture_ctx, torture_ctx 472 lib/torture/torture.c return fn(torture_ctx, test->data); torture_ctx 499 lib/torture/torture.c static bool wrap_simple_test(struct torture_context *torture_ctx, torture_ctx 507 lib/torture/torture.c return fn(torture_ctx); torture_ctx 565 lib/torture/torture.c static bool wrap_test_with_simple_test_const(struct torture_context *torture_ctx, torture_ctx 573 lib/torture/torture.c return fn(torture_ctx, tcase->data); torture_ctx 598 lib/torture/torture.c static bool wrap_test_with_simple_test(struct torture_context *torture_ctx, torture_ctx 606 lib/torture/torture.c return fn(torture_ctx, tcase->data); torture_ctx 125 lib/torture/torture.h bool (*run) (struct torture_context *torture_ctx, torture_ctx 230 lib/torture/torture.h #define torture_assert(torture_ctx,expr,cmt) \ torture_ctx 232 lib/torture/torture.h torture_result(torture_ctx, TORTURE_FAIL, __location__": Expression `%s' failed: %s", __STRING(expr), cmt); \ torture_ctx 236 lib/torture/torture.h #define torture_assert_werr_equal(torture_ctx, got, expected, cmt) \ torture_ctx 239 lib/torture/torture.h torture_result(torture_ctx, TORTURE_FAIL, __location__": "#got" was %s, expected %s: %s", win_errstr(__got), win_errstr(__expected), cmt); \ torture_ctx 244 lib/torture/torture.h #define torture_assert_ntstatus_equal(torture_ctx,got,expected,cmt) \ torture_ctx 247 lib/torture/torture.h torture_result(torture_ctx, TORTURE_FAIL, __location__": "#got" was %s, expected %s: %s", nt_errstr(__got), nt_errstr(__expected), cmt); \ torture_ctx 252 lib/torture/torture.h #define torture_assert_ndr_err_equal(torture_ctx,got,expected,cmt) \ torture_ctx 255 lib/torture/torture.h torture_result(torture_ctx, TORTURE_FAIL, __location__": "#got" was %d, expected %d (%s): %s", __got, __expected, __STRING(expected), cmt); \ torture_ctx 260 lib/torture/torture.h #define torture_assert_casestr_equal(torture_ctx,got,expected,cmt) \ torture_ctx 263 lib/torture/torture.h torture_result(torture_ctx, TORTURE_FAIL, __location__": "#got" was %s, expected %s: %s", __got, __expected, cmt); \ torture_ctx 268 lib/torture/torture.h #define torture_assert_str_equal(torture_ctx,got,expected,cmt)\ torture_ctx 271 lib/torture/torture.h torture_result(torture_ctx, TORTURE_FAIL, \ torture_ctx 278 lib/torture/torture.h #define torture_assert_mem_equal(torture_ctx,got,expected,len,cmt)\ torture_ctx 281 lib/torture/torture.h torture_result(torture_ctx, TORTURE_FAIL, \ torture_ctx 287 lib/torture/torture.h #define torture_assert_data_blob_equal(torture_ctx,got,expected,cmt)\ torture_ctx 290 lib/torture/torture.h torture_result(torture_ctx, TORTURE_FAIL, \ torture_ctx 296 lib/torture/torture.h torture_result(torture_ctx, TORTURE_FAIL, \ torture_ctx 302 lib/torture/torture.h #define torture_assert_file_contains_text(torture_ctx,filename,expected,cmt)\ torture_ctx 307 lib/torture/torture.h __got = file_load(filename, &__size, 0, torture_ctx); \ torture_ctx 309 lib/torture/torture.h torture_result(torture_ctx, TORTURE_FAIL, \ torture_ctx 316 lib/torture/torture.h torture_result(torture_ctx, TORTURE_FAIL, \ torture_ctx 325 lib/torture/torture.h #define torture_assert_file_contains(torture_ctx,filename,expected,cmt)\ torture_ctx 328 lib/torture/torture.h __got = file_load(filename, *size, 0, torture_ctx); \ torture_ctx 330 lib/torture/torture.h torture_result(torture_ctx, TORTURE_FAIL, \ torture_ctx 339 lib/torture/torture.h #define torture_assert_int_equal(torture_ctx,got,expected,cmt)\ torture_ctx 342 lib/torture/torture.h torture_result(torture_ctx, TORTURE_FAIL, \ torture_ctx 349 lib/torture/torture.h #define torture_assert_u64_equal(torture_ctx,got,expected,cmt)\ torture_ctx 352 lib/torture/torture.h torture_result(torture_ctx, TORTURE_FAIL, \ torture_ctx 359 lib/torture/torture.h #define torture_assert_errno_equal(torture_ctx,expected,cmt)\ torture_ctx 362 lib/torture/torture.h torture_result(torture_ctx, TORTURE_FAIL, \ torture_ctx 372 lib/torture/torture.h #define torture_skip(torture_ctx,cmt) do {\ torture_ctx 373 lib/torture/torture.h torture_result(torture_ctx, TORTURE_SKIP, __location__": %s", cmt);\ torture_ctx 376 lib/torture/torture.h #define torture_fail(torture_ctx,cmt) do {\ torture_ctx 377 lib/torture/torture.h torture_result(torture_ctx, TORTURE_FAIL, __location__": %s", cmt);\ torture_ctx 380 lib/torture/torture.h #define torture_fail_goto(torture_ctx,label,cmt) do {\ torture_ctx 381 lib/torture/torture.h torture_result(torture_ctx, TORTURE_FAIL, __location__": %s", cmt);\ torture_ctx 388 lib/torture/torture.h #define torture_assert_ntstatus_ok(torture_ctx,expr,cmt) \ torture_ctx 389 lib/torture/torture.h torture_assert_ntstatus_equal(torture_ctx,expr,NT_STATUS_OK,cmt) torture_ctx 391 lib/torture/torture.h #define torture_assert_werr_ok(torture_ctx,expr,cmt) \ torture_ctx 392 lib/torture/torture.h torture_assert_werr_equal(torture_ctx,expr,WERR_OK,cmt) torture_ctx 394 lib/torture/torture.h #define torture_assert_ndr_success(torture_ctx,expr,cmt) \ torture_ctx 395 lib/torture/torture.h torture_assert_ndr_err_equal(torture_ctx,expr,NDR_ERR_SUCCESS,cmt) torture_ctx 28 source4/torture/smb2/smb2.c static bool wrap_simple_1smb2_test(struct torture_context *torture_ctx, torture_ctx 37 source4/torture/smb2/smb2.c if (!torture_smb2_connection(torture_ctx, &tree1)) torture_ctx 42 source4/torture/smb2/smb2.c ret = fn(torture_ctx, tree1); torture_ctx 73 source4/torture/smb2/smb2.c static bool wrap_simple_2smb2_test(struct torture_context *torture_ctx, torture_ctx 82 source4/torture/smb2/smb2.c TALLOC_CTX *mem_ctx = talloc_new(torture_ctx); torture_ctx 84 source4/torture/smb2/smb2.c if (!torture_smb2_connection(torture_ctx, &tree1) || torture_ctx 85 source4/torture/smb2/smb2.c !torture_smb2_connection(torture_ctx, &tree2)) { torture_ctx 94 source4/torture/smb2/smb2.c ret = fn(torture_ctx, tree1, tree2); torture_ctx 776 source4/torture/util_smb.c static bool wrap_simple_2smb_test(struct torture_context *torture_ctx, torture_ctx 786 source4/torture/util_smb.c if (!torture_open_connection(&cli1, torture_ctx, 0) || torture_ctx 787 source4/torture/util_smb.c !torture_open_connection(&cli2, torture_ctx, 1)) torture_ctx 792 source4/torture/util_smb.c ret = fn(torture_ctx, cli1, cli2); torture_ctx 828 source4/torture/util_smb.c static bool wrap_simple_1smb_test(struct torture_context *torture_ctx, torture_ctx 837 source4/torture/util_smb.c if (!torture_open_connection(&cli1, torture_ctx, 0)) torture_ctx 842 source4/torture/util_smb.c ret = fn(torture_ctx, cli1);