Home
last modified time | relevance | path

Searched +refs:test +refs:fail (Results 1 – 25 of 296) sorted by relevance

12345678910>>...12

/src/tools/regression/netinet/ipdivert/
H A Dipdivert.c50 ok(const char *test) in ok() argument
53 fprintf(stderr, "%s: OK\n", test); in ok()
57 fail(const char *test, const char *note) in fail() function
60 fprintf(stderr, "%s - %s: FAIL (%s)\n", test, note, strerror(errno)); in fail()
65 failx(const char *test, const char *note) in failx() argument
68 fprintf(stderr, "%s - %s: FAIL\n", test, note); in failx()
73 ipdivert_create(const char *test) in ipdivert_create() argument
79 fail(test, "socket"); in ipdivert_create()
84 ipdivert_close(const char *test, int s) in ipdivert_close() argument
88 fail(test, "close"); in ipdivert_close()
[all …]
/src/crypto/openssl/test/ssl-tests/
H A D03-custom_verify.cnf5 test-0 = 0-verify-success
6 test-1 = 1-verify-custom-reject
7 test-2 = 2-verify-custom-allow
8 test-3 = 3-verify-custom-retry
9 test-4 = 4-noverify-success
10 test-5 = 5-noverify-ignore-custom-reject
11 test-6 = 6-noverify-accept-custom-allow
12 test-7 = 7-verify-fail-no-root
13 test-8 = 8-verify-custom-success-no-root
14 test-9 = 9-verify-custom-fail-no-root
[all …]
H A D04-client_auth.cnf5 test-0 = 0-server-auth-flex
6 test-1 = 1-client-auth-flex-request
7 test-2 = 2-client-auth-flex-require-fail
8 test-3 = 3-client-auth-flex-require
9 test-4 = 4-client-auth-flex-rsa-pss
10 test-5 = 5-client-auth-flex-rsa-pss-bad
11 test-6 = 6-client-auth-flex-require-non-empty-names
12 test-7 = 7-client-auth-flex-noroot
13 test-8 = 8-server-auth-TLSv1
14 test-9 = 9-client-auth-TLSv1-request
[all …]
H A D26-tls13_client_auth.cnf5 test-0 = 0-server-auth-TLSv1.3
6 test-1 = 1-client-auth-TLSv1.3-request
7 test-2 = 2-client-auth-TLSv1.3-require-fail
8 test-3 = 3-client-auth-TLSv1.3-require
9 test-4 = 4-client-auth-TLSv1.3-require-non-empty-names
10 test-5 = 5-client-auth-TLSv1.3-noroot
11 test-6 = 6-client-auth-TLSv1.3-request-post-handshake
12 test-7 = 7-client-auth-TLSv1.3-require-fail-post-handshake
13 test-8 = 8-client-auth-TLSv1.3-require-post-handshake
14 test-9 = 9-client-auth-TLSv1.3-require-non-empty-names-post-handshake
[all …]
H A D03-custom_verify.cnf.in10 ## SSL test configurations
22 test => { "ExpectedResult" => "Success" },
25 # Same test as above but with a custom callback that always fails.
34 test => {
40 # Same test as above but with a custom callback that always succeeds.
49 test => {
54 # Same test as above but with a custom callback that requests retry once.
63 test => {
77 test => { "ExpectedResult" => "Success" },
80 # Same test as above but with a custom callback that always fails.
[all …]
H A D26-tls13_client_auth.cnf.in43 test => {
58 test => {
63 name => "client-auth-TLSv1.3-require-fail",
74 test => {
94 test => {
118 test => {
139 test => {
155 test => {
161 name => "client-auth-TLSv1.3-require-fail-post-handshake",
172 test => {
[all …]
/src/crypto/openssh/openbsd-compat/regress/
H A Dstrtonumtest.c40 int fail; variable
43 test(const char *p, long long lb, long long ub, int ok) in test() function
52 fail = 1; in test()
56 fail = 1; in test()
62 test("1", 0, 10, 1); in main()
63 test("0", -2, 5, 1); in main()
64 test("0", 2, 5, 0); in main()
65 test("0", 2, LLONG_MAX, 0); in main()
66 test("-2", 0, LLONG_MAX, 0); in main()
67 test("0", -5, LLONG_MAX, 1); in main()
[all …]
H A Dstrduptest.c22 static int fail = 0; variable
25 test(const char *a) in test() function
31 fail = 1; in test()
35 fail = 1; in test()
42 test(""); in main()
43 test("a"); in main()
44 test("\0"); in main()
45 test("abcdefghijklmnopqrstuvwxyz"); in main()
46 return fail; in main()
/src/contrib/wpa/src/common/
H A Dcommon_module_tests.c95 const struct ieee802_11_parse_test_data *test; in ieee802_11_parse_tests() local
99 test = &parse_tests[i]; in ieee802_11_parse_tests()
100 res = ieee802_11_parse_elems(test->data, test->len, &elems, 1); in ieee802_11_parse_tests()
101 if (res != test->result || in ieee802_11_parse_tests()
102 ieee802_11_ie_count(test->data, test->len) != test->count) { in ieee802_11_parse_tests()
211 const struct rsn_ie_parse_test_data *test; in rsn_ie_parse_tests() local
214 test = &rsn_parse_tests[i]; in rsn_ie_parse_tests()
215 if (wpa_parse_wpa_ie_rsn(test->data, test->len, &data) != in rsn_ie_parse_tests()
216 test->result) { in rsn_ie_parse_tests()
398 goto fail; in sae_tests()
[all …]
/src/contrib/googletest/googletest/test/
H A DBUILD.bazel56 "googletest-fail-if-no-test-linked-test-with-disabled-test_.cc",
57 "googletest-fail-if-no-test-linked-test-with-enabled-test_.cc",
62 "googletest-listener-test.cc",
63 "googletest-message-test.cc",
65 "googletest-param-test-invalid-name1-test_.cc",
66 "googletest-param-test-invalid-name2-test_.cc",
67 "googletest-param-test-test",
68 "googletest-param-test-test.cc",
69 "googletest-param-test2-test.cc",
97 "googletest/test",
[all …]
/src/sys/contrib/openzfs/config/
H A Dfind_system_library.m417 AS_IF([test -n "$2"], [PKG_CHECK_MODULES([$1], [$2], [
24 AS_IF([test "x$[$1][_CFLAGS]" != x], [_header_found=1])
25 AS_IF([test "x$[$1][_LIBS]" != x], [_library_found=1])
34 AS_IF([test "x$_prefixdir" != "x/usr"], [
36 AS_IF([test "x$_library_found" = x], [
45 ], [AS_IF([test "x$_header_found" = "x1"], [
46 # if pkg-config or the user set CFLAGS, fail if the header is unusable
62 AS_IF([test "x$_header_found" = "x1"], [
63 AS_IF([test "x$_library_found" = x], [
73 AS_IF([test "x$_libcheck" = "x1"], [_library_found=1],
[all …]
H A Dlib-ld.m435 [test "$withval" = no || with_gnu_ld=yes],
40 if test "${PATH_SEPARATOR+set}" != set; then
43 # so we have to set that as well for the test.
51 if test -n "$LD"; then
53 elif test "$GCC" = yes; then
55 elif test "$with_gnu_ld" = yes; then
60 if test -n "$LD"; then
61 # Let the user override the test with a path.
66 acl_cv_path_LD= # Final result of this test
68 if test "$GCC" = yes; then
[all …]
/src/contrib/netbsd-tests/include/sys/
H A Dt_tree.c80 test(void) in test() function
83 int fail, i, j; in test() local
86 fail = 0; in test()
91 fail++; in test()
93 return fail; in test()
105 int i, fail, f; in ATF_TC_BODY() local
108 fail = 0; in ATF_TC_BODY()
110 f = test(); in ATF_TC_BODY()
113 fail += f; in ATF_TC_BODY()
/src/contrib/wpa/src/crypto/
H A Dcrypto_module_tests.c1389 const struct passphrase_test *test = &passphrase_tests[i]; in test_sha1() local
1391 if (pbkdf2_sha1(test->passphrase, in test_sha1()
1392 (const u8 *) test->ssid, strlen(test->ssid), in test_sha1()
1394 os_memcmp(psk, test->psk, 32) == 0) in test_sha1()
1405 const struct rfc6070_test *test = &rfc6070_tests[i]; in test_sha1() local
1407 if (pbkdf2_sha1(test->p, (const u8 *) test->s, strlen(test->s), in test_sha1()
1408 test->c, dk, test->dk_len) == 0 && in test_sha1()
1409 os_memcmp(dk, test->dk, test->dk_len) == 0) in test_sha1()
2318 static int run_hpke_test(const struct hpke_test *test) in run_hpke_test() argument
2326 wpa_printf(MSG_INFO, "- %s", test->name); in run_hpke_test()
[all …]
/src/contrib/netbsd-tests/net/net/
H A Dt_unix.c71 goto fail; \
133 fail: in acc()
140 test(bool closeit, size_t len) in test() function
249 fail: in test()
274 ATF_REQUIRE_MSG(test(false, 254) == -1, "test(false, 254): %s", in ATF_TC_BODY()
289 ATF_REQUIRE_MSG(test(false, 253) == 0, "test(false, 253): %s", in ATF_TC_BODY()
303 ATF_REQUIRE_MSG(test(true, 100) == 0, "test(true, 100): %s", in ATF_TC_BODY()
325 test(false, atoi(argv[1])); in main()
326 test(true, atoi(argv[1])); in main()
/src/contrib/arm-optimized-routines/
H A DREADME25 routines that fail to do so are located in an
35 math/test/ - math test and benchmark related sources.
39 networking/test/ - networking test and benchmark related sources.
43 routines that fail to do so are located in an
50 string/test/ - string test and benchmark related sources.
78 routines will fail to build if CC is too old.
80 The test system requires libmpfr and libmpc.
/src/contrib/atf/atf-sh/
H A Dlibatf-sh.subr34 # A boolean variable that indicates whether we are parsing a test case's
41 # The file to which the test case will print its result.
44 # The test program's source directory: i.e. where its auxiliary data files
48 # Indicates the test case we are currently processing.
51 # List of meta-data variables for the current test case.
54 # The list of all test cases provided by the test program.
64 # Adds the given test case to the list of test cases that form the test
83 atf_fail "atf-check failed; see the output of the test for details"
99 test "${_val1}" = "${_val2}" || \
116 test "${_val1}" != "${_val2}" || \
[all …]
/src/tools/regression/posixsem/
H A Dtest.c40 static struct regression_test *test; variable
55 if (test->rt_name) in vprint_status()
56 printf(" - %s", test->rt_name); in vprint_status()
83 fail(void) in fail() function
122 test = *testp; in run_tests()
123 test->rt_function(); in run_tests()
/src/tools/regression/
H A DREADME2 This directory is for regression test programs.
4 A regression test program is one that will exercise a particular bit of the
8 can contain more than one test, and can be implemented in any scripting
11 The test protocol is quite simple. At its most basic, each .t file should,
18 Each test should produce a single line of output. This line should start
24 to indicate whether or not the test succeeded. 'n' is the test's number.
26 considered to be the name of the test. Naming tests is optional, but
29 A test may be written which is conditional, and may need to be skipped.
31 A test may be skipped by printing '# skip Reason for skipping' after the
32 test name. For example,
[all …]
/src/contrib/googletest/googletest/include/gtest/internal/
H A Dgtest-death-test-internal.h110 const char* file, int line, DeathTest** test);
117 explicit ReturnSentinel(DeathTest* test) : test_(test) {} in ReturnSentinel() argument
180 int line, DeathTest** test) = 0; in GTEST_DISABLE_MSC_WARNINGS_POP_()
187 const char* file, int line, DeathTest** test) override;
221 #define GTEST_DEATH_TEST_(statement, predicate, regex_or_matcher, fail) \ argument
250 : fail(::testing::internal::DeathTest::LastMessage())
/src/contrib/ntp/sntp/libevent/test/
H A Dtinytest_macros.h89 #define tt_want_(b, msg, fail) \ argument
94 fail; \
113 #define tt_assert_test_fmt_type(a,b,str_test,type,test,printf_type,printf_fmt, \ argument
118 int tt_status_ = (test); \
143 #define tt_assert_test_type(a,b,str_test,type,test,fmt,die_on_fail) \ argument
144 tt_assert_test_fmt_type(a,b,str_test,type,test,type,fmt, \
147 #define tt_assert_test_type_opt(a,b,str_test,type,test,fmt,die_on_fail) \ argument
148 tt_assert_test_fmt_type(a,b,str_test,type,test,type,fmt, \
/src/contrib/libevent/test/
H A Dtinytest_macros.h89 #define tt_want_(b, msg, fail) \ argument
94 fail; \
113 #define tt_assert_test_fmt_type(a,b,str_test,type,test,printf_type,printf_fmt, \ argument
118 int tt_status_ = (test); \
143 #define tt_assert_test_type(a,b,str_test,type,test,fmt,die_on_fail) \ argument
144 tt_assert_test_fmt_type(a,b,str_test,type,test,type,fmt, \
147 #define tt_assert_test_type_opt(a,b,str_test,type,test,fmt,die_on_fail) \ argument
148 tt_assert_test_fmt_type(a,b,str_test,type,test,type,fmt, \
/src/crypto/openssl/test/
H A DREADME-external.md1 Running external test suites with OpenSSL
4 It is possible to integrate external test suites into OpenSSL's `make test`.
8 Python PYCA/Cryptography test suite
11 This python test suite runs cryptographic tests with a local OpenSSL build as
26 $ make test VERBOSE=1 TESTS=test_external_pyca
32 other crypto implementations so are not relevant. Currently no tests fail.
34 krb5 test suite
37 Much like the PYCA/Cryptography test suite, this builds and runs the krb5
59 $ VERBOSE=1 make TESTS=test_external_krb5 test
64 krb5 will automatically adapt its test suite to account for the configuration
[all …]
/src/contrib/one-true-awk/
H A DTODO7 1. Rework the test suite so that it's easier to maintain
8 and see exactly which tests fail:
13 2. Pull in more of the tests from gawk that only test standard features.
17 test suite target that runs valgrind on all the tests and
19 or writes (similar to gawk's test of this nature).
/src/contrib/netbsd-tests/lib/libc/net/getaddrinfo/
H A DREADME1 This test may fail if
3 - your /etc/services file is not in sync with what this test expects

12345678910>>...12