Home
last modified time | relevance | path

Searched refs:expected (Results 1 – 25 of 1098) sorted by relevance

12345678910>>...44

/freebsd/contrib/ntp/sntp/unity/
H A Dunity.h76 … TEST_ASSERT_EQUAL_INT(expected, actual) UNITY_… argument
77 …TEST_ASSERT_EQUAL_INT8(expected, actual) UNITY_T… argument
78 …EST_ASSERT_EQUAL_INT16(expected, actual) UNITY_TE… argument
79 …EST_ASSERT_EQUAL_INT32(expected, actual) UNITY_TE… argument
80 …EST_ASSERT_EQUAL_INT64(expected, actual) UNITY_TE… argument
81 …ne TEST_ASSERT_EQUAL(expected, actual) UNIT… argument
82 …efine TEST_ASSERT_NOT_EQUAL(expected, actual) U… argument
83 …TEST_ASSERT_EQUAL_UINT(expected, actual) UNITY_T… argument
84 …EST_ASSERT_EQUAL_UINT8(expected, actual) UNITY_TE… argument
85 …ST_ASSERT_EQUAL_UINT16(expected, actual) UNITY_TES… argument
[all …]
H A Dunity_internals.h436 void UnityAssertEqualNumber(const _U_SINT expected,
442 void UnityAssertEqualIntArray(UNITY_PTR_ATTRIBUTE const void* expected,
450 const _U_SINT expected,
455 void UnityAssertEqualString(const char* expected,
460 void UnityAssertEqualStringArray( const char** expected,
466 void UnityAssertEqualMemory( UNITY_PTR_ATTRIBUTE const void* expected,
474 const _U_SINT expected,
486 const _UF expected,
491 void UnityAssertEqualFloatArray(UNITY_PTR_ATTRIBUTE const _UF* expected,
505 const _UD expected,
590 UNITY_TEST_ASSERT_EQUAL_INT(expected,actual,line,message) global() argument
591 UNITY_TEST_ASSERT_EQUAL_INT8(expected,actual,line,message) global() argument
592 UNITY_TEST_ASSERT_EQUAL_INT16(expected,actual,line,message) global() argument
593 UNITY_TEST_ASSERT_EQUAL_INT32(expected,actual,line,message) global() argument
594 UNITY_TEST_ASSERT_EQUAL_UINT(expected,actual,line,message) global() argument
595 UNITY_TEST_ASSERT_EQUAL_UINT8(expected,actual,line,message) global() argument
596 UNITY_TEST_ASSERT_EQUAL_UINT16(expected,actual,line,message) global() argument
597 UNITY_TEST_ASSERT_EQUAL_UINT32(expected,actual,line,message) global() argument
598 UNITY_TEST_ASSERT_EQUAL_HEX8(expected,actual,line,message) global() argument
599 UNITY_TEST_ASSERT_EQUAL_HEX16(expected,actual,line,message) global() argument
600 UNITY_TEST_ASSERT_EQUAL_HEX32(expected,actual,line,message) global() argument
601 UNITY_TEST_ASSERT_BITS(mask,expected,actual,line,message) global() argument
603 UNITY_TEST_ASSERT_INT_WITHIN(delta,expected,actual,line,message) global() argument
604 UNITY_TEST_ASSERT_INT8_WITHIN(delta,expected,actual,line,message) global() argument
605 UNITY_TEST_ASSERT_INT16_WITHIN(delta,expected,actual,line,message) global() argument
606 UNITY_TEST_ASSERT_INT32_WITHIN(delta,expected,actual,line,message) global() argument
607 UNITY_TEST_ASSERT_UINT_WITHIN(delta,expected,actual,line,message) global() argument
608 UNITY_TEST_ASSERT_UINT8_WITHIN(delta,expected,actual,line,message) global() argument
609 UNITY_TEST_ASSERT_UINT16_WITHIN(delta,expected,actual,line,message) global() argument
610 UNITY_TEST_ASSERT_UINT32_WITHIN(delta,expected,actual,line,message) global() argument
611 UNITY_TEST_ASSERT_HEX8_WITHIN(delta,expected,actual,line,message) global() argument
612 UNITY_TEST_ASSERT_HEX16_WITHIN(delta,expected,actual,line,message) global() argument
613 UNITY_TEST_ASSERT_HEX32_WITHIN(delta,expected,actual,line,message) global() argument
615 UNITY_TEST_ASSERT_EQUAL_PTR(expected,actual,line,message) global() argument
616 UNITY_TEST_ASSERT_EQUAL_STRING(expected,actual,line,message) global() argument
617 UNITY_TEST_ASSERT_EQUAL_MEMORY(expected,actual,len,line,message) global() argument
619 UNITY_TEST_ASSERT_EQUAL_INT_ARRAY(expected,actual,num_elements,line,message) global() argument
620 UNITY_TEST_ASSERT_EQUAL_INT8_ARRAY(expected,actual,num_elements,line,message) global() argument
621 UNITY_TEST_ASSERT_EQUAL_INT16_ARRAY(expected,actual,num_elements,line,message) global() argument
622 UNITY_TEST_ASSERT_EQUAL_INT32_ARRAY(expected,actual,num_elements,line,message) global() argument
623 UNITY_TEST_ASSERT_EQUAL_UINT_ARRAY(expected,actual,num_elements,line,message) global() argument
624 UNITY_TEST_ASSERT_EQUAL_UINT8_ARRAY(expected,actual,num_elements,line,message) global() argument
625 UNITY_TEST_ASSERT_EQUAL_UINT16_ARRAY(expected,actual,num_elements,line,message) global() argument
626 UNITY_TEST_ASSERT_EQUAL_UINT32_ARRAY(expected,actual,num_elements,line,message) global() argument
627 UNITY_TEST_ASSERT_EQUAL_HEX8_ARRAY(expected,actual,num_elements,line,message) global() argument
628 UNITY_TEST_ASSERT_EQUAL_HEX16_ARRAY(expected,actual,num_elements,line,message) global() argument
629 UNITY_TEST_ASSERT_EQUAL_HEX32_ARRAY(expected,actual,num_elements,line,message) global() argument
630 UNITY_TEST_ASSERT_EQUAL_PTR_ARRAY(expected,actual,num_elements,line,message) global() argument
631 UNITY_TEST_ASSERT_EQUAL_STRING_ARRAY(expected,actual,num_elements,line,message) global() argument
632 UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY(expected,actual,len,num_elements,line,message) global() argument
635 UNITY_TEST_ASSERT_EQUAL_INT64(expected,actual,line,message) global() argument
636 UNITY_TEST_ASSERT_EQUAL_UINT64(expected,actual,line,message) global() argument
637 UNITY_TEST_ASSERT_EQUAL_HEX64(expected,actual,line,message) global() argument
638 UNITY_TEST_ASSERT_EQUAL_INT64_ARRAY(expected,actual,num_elements,line,message) global() argument
639 UNITY_TEST_ASSERT_EQUAL_UINT64_ARRAY(expected,actual,num_elements,line,message) global() argument
640 UNITY_TEST_ASSERT_EQUAL_HEX64_ARRAY(expected,actual,num_elements,line,message) global() argument
641 UNITY_TEST_ASSERT_INT64_WITHIN(delta,expected,actual,line,message) global() argument
642 UNITY_TEST_ASSERT_UINT64_WITHIN(delta,expected,actual,line,message) global() argument
643 UNITY_TEST_ASSERT_HEX64_WITHIN(delta,expected,actual,line,message) global() argument
645 UNITY_TEST_ASSERT_EQUAL_INT64(expected,actual,line,message) global() argument
646 UNITY_TEST_ASSERT_EQUAL_UINT64(expected,actual,line,message) global() argument
647 UNITY_TEST_ASSERT_EQUAL_HEX64(expected,actual,line,message) global() argument
648 UNITY_TEST_ASSERT_EQUAL_INT64_ARRAY(expected,actual,num_elements,line,message) global() argument
649 UNITY_TEST_ASSERT_EQUAL_UINT64_ARRAY(expected,actual,num_elements,line,message) global() argument
650 UNITY_TEST_ASSERT_EQUAL_HEX64_ARRAY(expected,actual,num_elements,line,message) global() argument
651 UNITY_TEST_ASSERT_INT64_WITHIN(delta,expected,actual,line,message) global() argument
652 UNITY_TEST_ASSERT_UINT64_WITHIN(delta,expected,actual,line,message) global() argument
653 UNITY_TEST_ASSERT_HEX64_WITHIN(delta,expected,actual,line,message) global() argument
657 UNITY_TEST_ASSERT_FLOAT_WITHIN(delta,expected,actual,line,message) global() argument
658 UNITY_TEST_ASSERT_EQUAL_FLOAT(expected,actual,line,message) global() argument
659 UNITY_TEST_ASSERT_EQUAL_FLOAT_ARRAY(expected,actual,num_elements,line,message) global() argument
669 UNITY_TEST_ASSERT_FLOAT_WITHIN(delta,expected,actual,line,message) global() argument
670 UNITY_TEST_ASSERT_EQUAL_FLOAT(expected,actual,line,message) global() argument
671 UNITY_TEST_ASSERT_EQUAL_FLOAT_ARRAY(expected,actual,num_elements,line,message) global() argument
683 UNITY_TEST_ASSERT_DOUBLE_WITHIN(delta,expected,actual,line,message) global() argument
684 UNITY_TEST_ASSERT_EQUAL_DOUBLE(expected,actual,line,message) global() argument
685 UNITY_TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected,actual,num_elements,line,message) global() argument
695 UNITY_TEST_ASSERT_DOUBLE_WITHIN(delta,expected,actual,line,message) global() argument
696 UNITY_TEST_ASSERT_EQUAL_DOUBLE(expected,actual,line,message) global() argument
697 UNITY_TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected,actual,num_elements,line,message) global() argument
[all...]
/freebsd/crypto/openssh/regress/unittests/authopt/
H A Dtests.c90 const struct sshauthopt *expected) in compare_opts() argument
95 ASSERT_PTR_NE(expected, NULL); in compare_opts()
96 ASSERT_PTR_NE(expected, opts); /* bozo :) */ in compare_opts()
98 #define FLAG_EQ(x) ASSERT_INT_EQ(opts->x, expected->x) in compare_opts()
110 if (expected->x == NULL) \ in compare_opts()
111 ASSERT_PTR_EQ(opts->x, expected->x); \ in compare_opts()
113 ASSERT_STRING_EQ(opts->x, expected->x); \ in compare_opts()
123 ASSERT_SIZE_T_EQ(opts->nx, expected->nx); \ in compare_opts()
124 if (expected->nx == 0) \ in compare_opts()
126 for (i = 0; i < expected->nx; i++) \ in compare_opts()
[all …]
/freebsd/contrib/libfido2/src/
H A Dtpm.c229 tpm_rs256_pubarea_t expected; in check_rs256_pubarea() local
238 memset(&expected, 0, sizeof(expected)); in check_rs256_pubarea()
239 expected.alg = TPM_ALG_RSA; in check_rs256_pubarea()
240 expected.hash = TPM_ALG_SHA256; in check_rs256_pubarea()
241 expected.attr = be32toh(actual->attr); in check_rs256_pubarea()
242 expected.attr &= ~(TPMA_RESERVED|TPMA_CLEAR); in check_rs256_pubarea()
243 expected.attr |= (TPMA_FIXED|TPMA_FIXED_P|TPMA_SENSITIVE|TPMA_SIGN); in check_rs256_pubarea()
244 expected.policy = actual->policy; in check_rs256_pubarea()
245 expected.policy.size = sizeof(expected.policy.body); in check_rs256_pubarea()
246 expected.param.symmetric = TPM_ALG_NULL; in check_rs256_pubarea()
[all …]
/freebsd/usr.bin/bmake/tests/archives/fmt_44bsd_mod/
H A DMakefile8 ${PACKAGE}FILES+= expected.status.1
9 ${PACKAGE}FILES+= expected.status.2
10 ${PACKAGE}FILES+= expected.status.3
11 ${PACKAGE}FILES+= expected.status.4
12 ${PACKAGE}FILES+= expected.status.5
13 ${PACKAGE}FILES+= expected.status.6
14 ${PACKAGE}FILES+= expected.status.7
15 ${PACKAGE}FILES+= expected.stderr.1
16 ${PACKAGE}FILES+= expected.stderr.2
17 ${PACKAGE}FILES+= expected.stderr.3
[all …]
/freebsd/usr.bin/bmake/tests/archives/fmt_44bsd/
H A DMakefile8 ${PACKAGE}FILES+= expected.status.1
9 ${PACKAGE}FILES+= expected.status.2
10 ${PACKAGE}FILES+= expected.status.3
11 ${PACKAGE}FILES+= expected.status.4
12 ${PACKAGE}FILES+= expected.status.5
13 ${PACKAGE}FILES+= expected.status.6
14 ${PACKAGE}FILES+= expected.status.7
15 ${PACKAGE}FILES+= expected.stderr.1
16 ${PACKAGE}FILES+= expected.stderr.2
17 ${PACKAGE}FILES+= expected.stderr.3
[all …]
/freebsd/usr.bin/bmake/tests/archives/fmt_oldbsd/
H A DMakefile7 ${PACKAGE}FILES+= expected.status.1
8 ${PACKAGE}FILES+= expected.status.2
9 ${PACKAGE}FILES+= expected.status.3
10 ${PACKAGE}FILES+= expected.status.4
11 ${PACKAGE}FILES+= expected.status.5
12 ${PACKAGE}FILES+= expected.status.6
13 ${PACKAGE}FILES+= expected.status.7
14 ${PACKAGE}FILES+= expected.stderr.1
15 ${PACKAGE}FILES+= expected.stderr.2
16 ${PACKAGE}FILES+= expected.stderr.3
[all …]
/freebsd/crypto/openssl/test/recipes/
H A D20-test_kdf.t20 expected => '8E:4D:93:25:30:D7:65:A0:AA:E9:74:C3:04:73:5E:CC',
23 expected => '65:6F:31:CB:04:03:D6:51:E2:E8:71:F8:20:04:AB:BA',
26 expected => '2a:c4:36:9f:52:59:96:f8:de:13',
29 expected => '34:8C:89:DB:CB:D3:2B:2F:32:D8:14:B8:11:6E:84:CF:2B:17:34:7E:BC:18:00:18:1C',
32expected => 'e9:c1:84:53:a0:62:b5:3b:db:fc:bb:5a:34:bd:b8:e5:e7:07:ee:bb:5d:d1:34:42:43:d8:cf:c2:c…
35 expected => '44:f6:76:e8:5c:1b:1a:8b:bc:3d:31:92:18:63:1c:a3',
38 expected => 'a4:62:de:16:a8:9d:e8:46:6e:f5:46:0b:47:b8',
41 expected => '5C:49:94:47:3B:B1:53:3A:58:EB:19:42:04:D3:78:16',
46 expected => '8E:4D:93:25:30:D7:65:A0:AA:E9:74:C3:04:73:5E:CC',
49 expected => '65:6F:31:CB:04:03:D6:51:E2:E8:71:F8:20:04:AB:BA',
[all …]
H A D20-test_dgst.t163 my $expected = qr/SHA1\(\Q$testdata\E\)= 000102030405060708090a0b0c0d0e0f10111213/;
164 …ok($macdata[0] =~ $expected, "SHA1: Check HASH value is as expected ($macdata[0]) vs ($expected)");
176 …my $expected = qr/HMAC-SHA2-256\(\Q$testdata\E\)= 6f12484129c4a761747f13d8234a1ff0e074adb34e9e9bf3…
177 …ok($hmacdata[0] =~ $expected, "HMAC: Check HMAC value is as expected ($hmacdata[0]) vs ($expected)…
178 ok($hmacdata[1] =~ $expected,
179 "HMAC: Check second HMAC value is consistent with the first ($hmacdata[1]) vs ($expected)");
190 …my $expected = qr/HMAC-SHA256\(\Q$testdata\E\)= 6f12484129c4a761747f13d8234a1ff0e074adb34e9e9bf3a1…
191 …ok($hmacdata[0] =~ $expected, "HMAC: Check HMAC value is as expected ($hmacdata[0]) vs ($expected)…
192 ok($hmacdata[1] =~ $expected,
193 "HMAC: Check second HMAC value is consistent with the first ($hmacdata[1]) vs ($expected)");
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zdb/
H A Dzdb_object_range_pos.ksh85 expected=$all_objects
87 log_must test "\n$actual\n" == "\n$expected\n"
90 expected=$all_objects
92 log_must test "\n$actual\n" == "\n$expected\n"
95 expected=$(grep "ZFS plain file" <<< $all_objects)
97 log_must test "\n$actual\n" == "\n$expected\n"
100 expected=$(grep "ZFS directory" <<< $all_objects)
102 log_must test "\n$actual\n" == "\n$expected\n"
105 expected=$(grep -e "ZFS directory" -e "ZFS plain file" <<< $all_objects)
107 log_must test "\n$actual\n" == "\n$expected\n"
[all …]
/freebsd/usr.bin/posixmqcontrol/
H A Dposixmqcontroltest8x64.sh23 expected='MSGSIZE: 64'
25 if [ "$expected" != "$actual" ]; then
26 echo "EXPECTED: $expected"
30 expected='MAXMSG: 8'
32 if [ "$expected" != "$actual" ]; then
33 echo "EXPECTED: $expected"
37 expected='CURMSG: 0'
39 if [ "$expected" != "$actual" ]; then
40 echo "EXPECTED: $expected"
58 expected='CURMSG: 8'
[all …]
/freebsd/tools/regression/poll/7/
H A Dpipepoll.out2 ok 1 Pipe state 4: expected 0; got 0
3 ok 2 Pipe state 5: expected POLLIN; got POLLIN
4 ok 3 Pipe state 6: expected POLLIN | POLLHUP; got POLLIN | POLLHUP
5 not ok 4 Pipe state 6a: expected POLLHUP; got POLLIN | POLLHUP
6 ok 5 Sock state 4: expected 0; got 0
7 ok 6 Sock state 5: expected POLLIN; got POLLIN
8 not ok 7 Sock state 6: expected POLLIN | POLLHUP; got POLLIN
9 not ok 8 Sock state 6a: expected POLLHUP; got POLLIN
10 ok 9 FIFO state 0: expected 0; got 0
11 ok 10 FIFO state 1: expected 0; got 0
[all …]
H A Dpipeselect.out2 ok 1 Pipe state 4: expected clear; got clear
3 ok 2 Pipe state 5: expected set; got set
4 ok 3 Pipe state 6: expected set; got set
5 ok 4 Pipe state 6a: expected set; got set
6 ok 5 Sock state 4: expected clear; got clear
7 ok 6 Sock state 5: expected set; got set
8 ok 7 Sock state 6: expected set; got set
9 ok 8 Sock state 6a: expected set; got set
10 ok 9 FIFO state 0: expected clear; got clear
11 ok 10 FIFO state 1: expected clear; got clear
[all …]
/freebsd/tools/regression/poll/l/
H A Dpipepoll.out2 ok 1 Pipe state 4: expected 0; got 0
3 ok 2 Pipe state 5: expected POLLIN; got POLLIN
4 ok 3 Pipe state 6: expected POLLIN | POLLHUP; got POLLIN | POLLHUP
5 ok 4 Pipe state 6a: expected POLLHUP; got POLLHUP
6 ok 5 Sock state 4: expected 0; got 0
7 ok 6 Sock state 5: expected POLLIN; got POLLIN
8 ok 7 Sock state 6: expected POLLIN | POLLHUP; got POLLIN | POLLHUP
9 not ok 8 Sock state 6a: expected POLLHUP; got POLLIN | POLLHUP
10 ok 9 FIFO state 0: expected 0; got 0
11 ok 10 FIFO state 1: expected 0; got 0
[all …]
H A Dpipeselect.out2 ok 1 Pipe state 4: expected clear; got clear
3 ok 2 Pipe state 5: expected set; got set
4 ok 3 Pipe state 6: expected set; got set
5 ok 4 Pipe state 6a: expected set; got set
6 ok 5 Sock state 4: expected clear; got clear
7 ok 6 Sock state 5: expected set; got set
8 ok 7 Sock state 6: expected set; got set
9 ok 8 Sock state 6a: expected set; got set
10 not ok 9 FIFO state 0: expected set; got clear
11 ok 10 FIFO state 1: expected clear; got clear
[all …]
/freebsd/tools/regression/poll/m/
H A Dpipepoll.out2 ok 1 Pipe state 4: expected 0; got 0
3 ok 2 Pipe state 5: expected POLLIN; got POLLIN
4 ok 3 Pipe state 6: expected POLLIN | POLLHUP; got POLLIN | POLLHUP
5 ok 4 Pipe state 6a: expected POLLHUP; got POLLHUP
6 ok 5 Sock state 4: expected 0; got 0
7 ok 6 Sock state 5: expected POLLIN; got POLLIN
8 ok 7 Sock state 6: expected POLLIN | POLLHUP; got POLLIN | POLLHUP
9 ok 8 Sock state 6a: expected POLLHUP; got POLLHUP
10 ok 9 FIFO state 0: expected 0; got 0
11 ok 10 FIFO state 1: expected 0; got 0
[all …]
H A Dpipeselect.out2 ok 1 Pipe state 4: expected clear; got clear
3 ok 2 Pipe state 5: expected set; got set
4 ok 3 Pipe state 6: expected set; got set
5 ok 4 Pipe state 6a: expected set; got set
6 ok 5 Sock state 4: expected clear; got clear
7 ok 6 Sock state 5: expected set; got set
8 ok 7 Sock state 6: expected set; got set
9 ok 8 Sock state 6a: expected set; got set
10 not ok 9 FIFO state 0: expected set; got clear
11 ok 10 FIFO state 1: expected clear; got clear
[all …]
/freebsd/tools/regression/poll/n/
H A Dpipepoll.out2 ok 1 Pipe state 4: expected 0; got 0
3 ok 2 Pipe state 5: expected POLLIN; got POLLIN
4 ok 3 Pipe state 6: expected POLLIN | POLLHUP; got POLLIN | POLLHUP
5 ok 4 Pipe state 6a: expected POLLHUP; got POLLHUP
6 ok 5 Sock state 4: expected 0; got 0
7 ok 6 Sock state 5: expected POLLIN; got POLLIN
8 ok 7 Sock state 6: expected POLLIN | POLLHUP; got POLLIN | POLLHUP
9 ok 8 Sock state 6a: expected POLLHUP; got POLLHUP
10 ok 9 FIFO state 0: expected 0; got 0
11 ok 10 FIFO state 1: expected 0; got 0
[all …]
H A Dpipeselect.out2 ok 1 Pipe state 4: expected clear; got clear
3 ok 2 Pipe state 5: expected set; got set
4 ok 3 Pipe state 6: expected set; got set
5 ok 4 Pipe state 6a: expected set; got set
6 ok 5 Sock state 4: expected clear; got clear
7 ok 6 Sock state 5: expected set; got set
8 ok 7 Sock state 6: expected set; got set
9 ok 8 Sock state 6a: expected set; got set
10 ok 9 FIFO state 0: expected clear; got clear
11 ok 10 FIFO state 1: expected clear; got clear
[all …]
/freebsd/tools/regression/poll/4/
H A Dpipepoll.out2 ok 1 Pipe state 4: expected 0; got 0
3 ok 2 Pipe state 5: expected POLLIN; got POLLIN
4 ok 3 Pipe state 6: expected POLLIN | POLLHUP; got POLLIN | POLLHUP
5 not ok 4 Pipe state 6a: expected POLLHUP; got POLLIN | POLLHUP
6 ok 5 Sock state 4: expected 0; got 0
7 ok 6 Sock state 5: expected POLLIN; got POLLIN
8 not ok 7 Sock state 6: expected POLLIN | POLLHUP; got POLLIN
9 not ok 8 Sock state 6a: expected POLLHUP; got POLLIN
10 not ok 9 FIFO state 0: expected 0; got POLLIN
11 ok 10 FIFO state 1: expected 0; got 0
[all …]
H A Dpipeselect.out2 ok 1 Pipe state 4: expected clear; got clear
3 ok 2 Pipe state 5: expected set; got set
4 ok 3 Pipe state 6: expected set; got set
5 ok 4 Pipe state 6a: expected set; got set
6 ok 5 Sock state 4: expected clear; got clear
7 ok 6 Sock state 5: expected set; got set
8 ok 7 Sock state 6: expected set; got set
9 ok 8 Sock state 6a: expected set; got set
10 not ok 9 FIFO state 0: expected clear; got set
11 ok 10 FIFO state 1: expected clear; got clear
[all …]
/freebsd/contrib/atf/atf-c/
H A Dmacros.h156 #define ATF_REQUIRE_EQ(expected, actual) \ argument
157 ATF_REQUIRE_MSG((expected) == (actual), "%s != %s", #expected, #actual)
159 #define ATF_CHECK_EQ(expected, actual) \ argument
160 ATF_CHECK_MSG((expected) == (actual), "%s != %s", #expected, #actual)
162 #define ATF_REQUIRE_EQ_MSG(expected, actual, fmt, ...) \ argument
163 ATF_REQUIRE_MSG((expected) == (actual), "%s != %s: " fmt, \
164 #expected, #actual, ##__VA_ARGS__)
166 #define ATF_CHECK_EQ_MSG(expected, actual, fmt, ...) \ argument
167 ATF_CHECK_MSG((expected) == (actual), "%s != %s: " fmt, \
168 #expected, #actual, ##__VA_ARGS__)
[all …]
/freebsd/tests/sys/sys/
H A Dtime_test.c40 atf_check_nstosbt(sbintime_t expected, int64_t ns) { in atf_check_nstosbt() argument
43 ATF_CHECK_MSG((expected) - 1 <= (actual) && actual <= (expected) + 1, in atf_check_nstosbt()
45 expected, ns, actual); in atf_check_nstosbt()
68 atf_check_ustosbt(sbintime_t expected, int64_t us) { in atf_check_ustosbt() argument
71 ATF_CHECK_MSG((expected) - 1 <= (actual) && actual <= (expected) + 1, in atf_check_ustosbt()
73 expected, us, actual); in atf_check_ustosbt()
96 atf_check_mstosbt(sbintime_t expected, int64_t ms) { in atf_check_mstosbt() argument
99 ATF_CHECK_MSG((expected) - 1 <= (actual) && actual <= (expected) + 1, in atf_check_mstosbt()
101 expected, ms, actual); in atf_check_mstosbt()
123 atf_check_sbttons(int64_t expected, sbintime_t sbt) { in atf_check_sbttons() argument
[all …]
/freebsd/crypto/openssl/test/
H A Devp_test.c94 * However, if there is expected to be an error and the actual error
95 * matches then the memory is expected to be different so handle this
99 const void *expected, size_t expected_len, in memory_err_compare() argument
105 r = !TEST_mem_ne(expected, expected_len, got, got_len); in memory_err_compare()
107 r = TEST_mem_eq(expected, expected_len, got, got_len); in memory_err_compare()
400 DIGEST_DATA *expected = t->data; in digest_test_run() local
413 got = OPENSSL_malloc(expected->output_len > EVP_MAX_MD_SIZE ? in digest_test_run()
414 expected->output_len : EVP_MAX_MD_SIZE); in digest_test_run()
418 if (!EVP_DigestInit_ex(mctx, expected->digest, NULL)) { in digest_test_run()
422 if (expected in digest_test_run()
693 CIPHER_DATA *expected = t->data; cipher_test_enc() local
1310 MAC_DATA *expected = t->data; mac_test_run_pkey() local
1419 MAC_DATA *expected = t->data; mac_test_run_mac() local
1675 MAC_DATA *expected = t->data; mac_test_run() local
1807 PKEY_DATA *expected = t->data; pkey_test_run() local
2003 PKEY_DATA *expected = t->data; pderive_test_run() local
2210 PBE_DATA *expected = t->data; pbe_test_run() local
2345 ENCODE_DATA *expected = t->data; encode_test_run() local
2590 RAND_DATA *expected = t->data; rand_test_run() local
2818 KDF_DATA *expected = t->data; kdf_test_run() local
2918 PKEY_KDF_DATA *expected = t->data; pkey_kdf_test_run() local
3326 DIGESTSIGN_DATA *expected = t->data; digestsign_test_run() local
3409 DIGESTSIGN_DATA *expected = t->data; oneshot_digestsign_test_run() local
[all...]
/freebsd/crypto/openssh/regress/unittests/hostkeys/
H A Dtest_iterate.c24 struct expected { struct
37 const struct expected *expected; argument
55 const struct expected *expected; in check() local
66 expected = ctx->expected + ctx->i++; in check()
70 if (ctx->match_host_p && expected->match_host_p) in check()
72 if (ctx->match_host_s && expected->match_host_s) in check()
74 if (ctx->match_ipv4 && expected->match_ipv4) in check()
76 if (ctx->match_ipv6 && expected->match_ipv6) in check()
79 expected_status = (parse_key || expected->no_parse_status < 0) ? in check()
80 expected->l.status : (u_int)expected->no_parse_status; in check()
[all …]

12345678910>>...44