Home
last modified time | relevance | path

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

12345678910>>...50

/netbsd/src/external/bsd/ntp/dist/tests/libntp/
Ddecodenetnum.c41 sockaddr_u expected; in test_IPv4AddressOnly() local
43 ZERO(expected); in test_IPv4AddressOnly()
44 AF(&expected) = AF_INET; in test_IPv4AddressOnly()
45 expected.sa4.sin_addr.s_addr = inet_addr("192.0.2.1"); in test_IPv4AddressOnly()
46 SET_PORT(&expected, NTP_PORT); in test_IPv4AddressOnly()
49 TEST_ASSERT_TRUE(IsEqual(expected, actual)); in test_IPv4AddressOnly()
57 sockaddr_u expected; in test_IPv4AddressWithPort() local
59 ZERO(expected); in test_IPv4AddressWithPort()
60 AF(&expected) = AF_INET; in test_IPv4AddressWithPort()
61 expected.sa4.sin_addr.s_addr = inet_addr("192.0.2.2"); in test_IPv4AddressWithPort()
[all …]
Dstrtolfp.c43 l_fp expected = {{500},0}; in test_PositiveInteger() local
49 TEST_ASSERT_TRUE_MESSAGE(IsEqual(expected, actual), fmtLFP(&expected, &actual)); in test_PositiveInteger()
50 TEST_ASSERT_TRUE_MESSAGE(IsEqual(expected, actual_ms), fmtLFP(&expected, &actual_ms)); in test_PositiveInteger()
57 l_fp expected; in test_NegativeInteger() local
58 expected.l_i = -300; in test_NegativeInteger()
59 expected.l_uf = 0; in test_NegativeInteger()
66 TEST_ASSERT_TRUE_MESSAGE(IsEqual(expected, actual), fmtLFP(&expected, &actual)); in test_NegativeInteger()
67 TEST_ASSERT_TRUE_MESSAGE(IsEqual(expected, actual_ms), fmtLFP(&expected, &actual_ms)); in test_NegativeInteger()
74 l_fp expected = {{500}, HALF}; in test_PositiveFraction() local
80 TEST_ASSERT_TRUE_MESSAGE(IsEqual(expected, actual), fmtLFP(&expected, &actual)); in test_PositiveFraction()
[all …]
Dcaljulian.c36 IsEqual(const struct calendar expected, const struct calendar actual) in IsEqual() argument
38 if ( expected.year == actual.year in IsEqual()
39 && ( expected.yearday == actual.yearday in IsEqual()
40 || ( expected.month == actual.month in IsEqual()
41 && expected.monthday == actual.monthday)) in IsEqual()
42 && expected.hour == actual.hour in IsEqual()
43 && expected.minute == actual.minute in IsEqual()
44 && expected.second == actual.second) { in IsEqual()
47 const char * p_exp = CalendarToString(expected); in IsEqual()
71 struct calendar expected = {2010,160,6,9,14,0,0}; in test_RegularTime() local
[all …]
Dcaltontp.c17 u_long expected = 3486372600UL; // This is the timestamp above. in test_DateGivenMonthDay() local
19 TEST_ASSERT_EQUAL_UINT(expected, caltontp(&input)); in test_DateGivenMonthDay()
28 u_long expected = 3486372600UL; // This is the timestamp above. in test_DateGivenYearDay() local
30 TEST_ASSERT_EQUAL_UINT(expected, caltontp(&input)); in test_DateGivenYearDay()
40 u_long expected = 3549528000UL; in test_DateLeapYear() local
42 TEST_ASSERT_EQUAL_UINT(expected, caltontp(&inputYd)); in test_DateLeapYear()
43 TEST_ASSERT_EQUAL_UINT(expected, caltontp(&inputMd)); in test_DateLeapYear()
52 u_long expected = 0UL; in test_WraparoundDateIn2036() local
54 TEST_ASSERT_EQUAL_UINT(expected, caltontp(&input)); in test_WraparoundDateIn2036()
Dcalyearstart.c31 const u_int32 expected = 3471292800UL; // 2010-01-01 00:00:00 in test_NoWrapInDateRange() local
33 TEST_ASSERT_EQUAL(expected, calyearstart(input, &nowtime)); in test_NoWrapInDateRange()
34 TEST_ASSERT_EQUAL(expected, calyearstart(input, NULL)); in test_NoWrapInDateRange()
39 const u_int32 expected = 3534364800UL; // 2012-01-01 00:00:00 in test_NoWrapInDateRangeLeapYear() local
41 TEST_ASSERT_EQUAL(expected, calyearstart(input, &nowtime)); in test_NoWrapInDateRangeLeapYear()
42 TEST_ASSERT_EQUAL(expected, calyearstart(input, NULL)); in test_NoWrapInDateRangeLeapYear()
47 const u_int32 expected = 4291747200UL; // 2036-01-01 00:00:00 in test_WrapInDateRange() local
49 TEST_ASSERT_EQUAL(expected, calyearstart(input, &nowtime)); in test_WrapInDateRange()
50 TEST_ASSERT_EQUAL(expected, calyearstart(input, NULL)); in test_WrapInDateRange()
Dtstotv.c18 const struct timeval expected = {50, 0}; in test_Seconds() local
23 TEST_ASSERT_EQUAL(expected.tv_sec, actual.tv_sec); in test_Seconds()
24 TEST_ASSERT_EQUAL(expected.tv_usec, actual.tv_usec); in test_Seconds()
31 const struct timeval expected = {50, 500000}; in test_MicrosecondsExact() local
36 TEST_ASSERT_EQUAL(expected.tv_sec, actual.tv_sec); in test_MicrosecondsExact()
37 TEST_ASSERT_EQUAL(expected.tv_usec, actual.tv_usec); in test_MicrosecondsExact()
44 const struct timeval expected = {50, 900}; in test_MicrosecondsRounding() local
49 TEST_ASSERT_EQUAL(expected.tv_sec, actual.tv_sec); in test_MicrosecondsRounding()
50 TEST_ASSERT_EQUAL(expected.tv_usec, actual.tv_usec); in test_MicrosecondsRounding()
Dnetof.c31 sockaddr_u expected = CreateSockaddr4("192.0.2.0", NTP_PORT); in test_ClassCAddress() local
36 TEST_ASSERT_TRUE(IsEqual(expected, *actual)); in test_ClassCAddress()
66 sockaddr_u expected; in test_IPv6Address() local
67 memset(&expected, 0, sizeof(expected)); in test_IPv6Address()
68 expected.sa6.sin6_family = AF_INET6; in test_IPv6Address()
69 expected.sa6.sin6_addr = expected_address; in test_IPv6Address()
70 SET_PORT(&expected, 3000); in test_IPv6Address()
75 TEST_ASSERT_TRUE(IsEqual(expected, *actual)); in test_IPv6Address()
Dsockaddrtest.c21 IsEqual(const sockaddr_u expected, const sockaddr_u actual) { in IsEqual() argument
25 if (expected.sa.sa_family != actual.sa.sa_family) { in IsEqual()
26 … printf("Expected sa_family: %d but got: %d", expected.sa.sa_family, actual.sa.sa_family); in IsEqual()
31 if ( expected.sa4.sin_port == actual.sa4.sin_port in IsEqual()
32 && memcmp(&expected.sa4.sin_addr, &actual.sa4.sin_addr, in IsEqual()
37 strlcpy(buf[0], inet_ntoa(expected.sa4.sin_addr), sizeof(buf[0])); in IsEqual()
38 strlcpy(buf[1], socktoa(&expected) , sizeof(buf[1])); in IsEqual()
46 if ( expected.sa6.sin6_port == actual.sa6.sin6_port in IsEqual()
47 && expected.sa6.sin6_scope_id == actual.sa6.sin6_scope_id in IsEqual()
48 && memcmp(&expected.sa6.sin6_addr, &actual.sa6.sin6_addr, in IsEqual()
/netbsd/src/tests/lib/libc/sys/
Dt_ptrace_x86_wait.h2945 const union x86_test_register expected[] __aligned(64) = { in x86_register_test() local
3207 union x86_test_register vals[__arraycount(expected)] __aligned(64); in x86_register_test()
3219 set_gp32_regs(expected); in x86_register_test()
3222 set_gp32_ebp_esp_regs(expected); in x86_register_test()
3225 set_gp64_regs(expected); in x86_register_test()
3228 set_gp64_r8_regs(expected); in x86_register_test()
3234 set_mm_regs(expected); in x86_register_test()
3237 set_xmm_regs(expected); in x86_register_test()
3240 set_ymm_regs(expected); in x86_register_test()
3243 set_zmm_regs(expected); in x86_register_test()
[all …]
/netbsd/src/crypto/external/bsd/openssl/dist/test/
Devp_test.c99 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->pad_type > 0) { in digest_test_run()
424 &expected->pad_type); in digest_test_run()
431 if (!evp_test_buffer_do(expected->input, digest_update_fn, mctx)) { in digest_test_run()
[all …]
/netbsd/src/tests/lib/libc/gen/
Dt_ctype.c700 int ch, result, expected; in test_toupper_c() local
706 case 'a': case 'A': expected = 'A'; break; in test_toupper_c()
707 case 'b': case 'B': expected = 'B'; break; in test_toupper_c()
708 case 'c': case 'C': expected = 'C'; break; in test_toupper_c()
709 case 'd': case 'D': expected = 'D'; break; in test_toupper_c()
710 case 'e': case 'E': expected = 'E'; break; in test_toupper_c()
711 case 'f': case 'F': expected = 'F'; break; in test_toupper_c()
712 case 'g': case 'G': expected = 'G'; break; in test_toupper_c()
713 case 'h': case 'H': expected = 'H'; break; in test_toupper_c()
714 case 'i': case 'I': expected = 'I'; break; in test_toupper_c()
[all …]
/netbsd/src/external/gpl3/gcc/dist/libstdc++-v3/include/std/
Dexpected1 // <expected> -*- C++ -*-
25 /** @file include/expected
54 /// Discriminated union that holds an expected value or an error value.
59 class expected;
61 /// Wrapper type used to pass an error value to a `std::expected`.
68 /// Exception thrown by std::expected when the value() is not present.
91 { return "bad access to std::expected without expected value"; }
126 /// Tag type for constructing unexpected values in a std::expected
135 /// Tag for constructing unexpected values in a std::expected
147 constexpr bool __is_expected<expected<_Tp, _Er>> = true;
[all …]
/netbsd/src/external/gpl3/gdb/dist/gdb/testsuite/gdb.trace/
Dtrace-enable-disable.exp64 set expected 0
78 incr expected 2
79 gdb_test "tstatus" "Collected $expected trace frames.*"
86 incr expected 1
87 gdb_test "tstatus" "Collected $expected trace frames.*"
93 gdb_test "tstatus" "Collected $expected trace frames.*"
100 gdb_test "tstatus" "Collected $expected trace frames.*"
107 incr expected 1
108 gdb_test "tstatus" "Collected $expected trace frames.*"
114 incr expected 2
[all …]
/netbsd/src/external/lgpl3/mpc/dist/tests/
Dcheck_data.c28 check_param (mpc_operand_t* got, mpc_operand_t* expected, mpc_param_t t) in check_param() argument
33 return got->i == expected->i; in check_param()
35 return got->ui == expected->ui; in check_param()
37 return got->si == expected->si; in check_param()
39 return got->d == expected->d; in check_param()
42 return mpz_cmp (got->mpz, expected->mpz); in check_param()
44 return mpq_cmp (got->mpq, expected->mpq); in check_param()
46 return mpf_cmp (got->mpf, expected->mpf); in check_param()
49 return expected->mpfr_inex == TERNARY_NOT_CHECKED in check_param()
50 || got->mpfr_inex == expected->mpfr_inex; in check_param()
[all …]
Dtmul_i.c27 mpc_t z, expected, got; in check_different_precisions() local
31 mpc_init2(expected, 128); in check_different_precisions()
36 mpfr_set_prec (mpc_imagref (expected), 32); in check_different_precisions()
41 mpfr_set_str (mpc_realref (expected), "+1", 2, MPFR_RNDN); in check_different_precisions()
42 mpfr_set_str (mpc_imagref (expected), "0x100000000fp-32", 16, MPFR_RNDN); in check_different_precisions()
53 if (mpc_cmp(got, expected) != 0) in check_different_precisions()
58 MPC_OUT (expected); in check_different_precisions()
64 mpc_neg (expected, expected, MPC_RNDNN); in check_different_precisions()
67 if (mpc_cmp(got, expected) != 0) in check_different_precisions()
72 MPC_OUT (expected); in check_different_precisions()
[all …]
Dtio_str.c47 mpc_t expected, got; in check_file() local
55 mpc_init2 (expected, 53); in check_file()
68 read_mpc (fp, expected, &ks); in check_file()
81 mpfr_set_prec (mpc_realref (got), MPC_PREC_RE (expected)); in check_file()
82 mpfr_set_prec (mpc_imagref (got), MPC_PREC_IM (expected)); in check_file()
86 if (inex != expected_inex || !same_mpc_value (got, expected, ks) in check_file()
99 MPC_OUT (expected); in check_file()
110 mpc_clear (expected); in check_file()
116 check_io_str (mpc_ptr read_number, mpc_ptr expected) in check_io_str() argument
128 mpc_out_str (fp, 10, 0, expected, MPC_RNDNN); in check_io_str()
[all …]
/netbsd/src/tests/lib/libc/locale/
Dt_strfmon.c53 const char *expected; in ATF_TC_BODY() member
67 ATF_REQUIRE_STREQ(tests[i].expected, buf); in ATF_TC_BODY()
98 char actual[40], expected[40]; in ATF_TC_BODY() local
117 strcpy(expected, "1"); in ATF_TC_BODY()
118 strlcat(expected, ts, sizeof(expected)); in ATF_TC_BODY()
119 strlcat(expected, "234", sizeof(expected)); in ATF_TC_BODY()
122 actual[strlen(expected)] = '\0'; in ATF_TC_BODY()
123 ATF_CHECK_STREQ(expected, actual); in ATF_TC_BODY()
136 const char *expected; in ATF_TC_BODY() member
162 ATF_CHECK_STREQ_MSG(tests[i].expected, actual, in ATF_TC_BODY()
[all …]
/netbsd/src/external/bsd/kyua-cli/dist/cli/
Dcmd_help_test.cpp164 std::vector< std::string > expected; in global_test() local
166 expected.push_back("Usage: progname [general_options] command " in global_test()
169 expected.push_back(""); in global_test()
170 expected.push_back("Available general options:"); in global_test()
172 std::back_inserter(expected)); in global_test()
174 expected.push_back(""); in global_test()
175 expected.push_back("Generic commands:"); in global_test()
176 expected.push_back(" mock_complex Complex command."); in global_test()
177 expected.push_back(" mock_simple Simple command."); in global_test()
178 expected.push_back(""); in global_test()
[all …]
/netbsd/src/usr.bin/make/unit-tests/
Dvarmod-edge.mk17 . warning expected "${EXP}", got "${MOD}"
28 . warning expected "${EXP}", got "${MOD}"
42 . warning expected "${EXP}", got "${MOD}"
61 . warning expected "${EXP}", got "${MOD}"
74 . warning expected "${EXP}", got "${MOD}"
89 . warning expected "${EXP}", got "${MOD}"
107 . warning expected "${EXP}", got "${MOD}"
121 . warning expected "${EXP}", got "${MOD}"
132 . warning expected "${EXP}", got "${MOD}"
143 . warning expected "${EXP}", got "${MOD}"
[all …]
Dcond-short.exp1 expected and
2 expected and exists
3 expected and empty
4 expected U23 condition
5 expected VAR23
6 expected M pattern
7 expected or
8 expected or exists
9 expected or empty
/netbsd/src/sys/external/bsd/compiler_rt/dist/test/Unit/
Dabsvsi2_test.c27 si_int expected = a; in test__absvsi2() local
28 if (expected < 0) in test__absvsi2()
29 expected = -expected; in test__absvsi2()
30 if (x != expected || expected < 0) in test__absvsi2()
32 a, x, expected); in test__absvsi2()
33 return x != expected; in test__absvsi2()
Dabsvdi2_test.c27 di_int expected = a; in test__absvdi2() local
28 if (expected < 0) in test__absvdi2()
29 expected = -expected; in test__absvdi2()
30 if (x != expected || expected < 0) in test__absvdi2()
32 a, x, expected); in test__absvdi2()
33 return x != expected; in test__absvdi2()
/netbsd/src/external/gpl3/gdb/dist/gdb/testsuite/gdb.multi/
Dtids.exp40 set expected [string_to_regexp $exp_tid_list]
43 foreach tid $expected {
62 set expected [string_to_regexp $exp_tid_list]
63 set r [join $expected " ${any}\r\n${any} "]
104 proc thr_apply_info_thr_invalid {tid_list {expected ""}} { argument
105 if {$expected == ""} {
106 set expected $tid_list
108 set expected [string_to_regexp $expected]
110 "Invalid thread ID: $expected"
113 "Invalid thread ID: $expected p 1234" \
[all …]
/netbsd/src/sys/external/bsd/compiler_rt/dist/test/Unit/ppc/
Dfloatditf_test.c12 DD expected; in main() local
16 expected.hi = tests[i].hi; in main()
17 expected.lo = tests[i].lo; in main()
20 if ((computed.hi != expected.hi) || (computed.lo != expected.lo)) in main()
23 … printf("\tExpected %La = ( %a , %a )\n", expected.ld, expected.hi, expected.lo); in main()
Dfloatunditf_test.c12 DD expected; in main() local
16 expected.hi = tests[i].hi; in main()
17 expected.lo = tests[i].lo; in main()
20 if ((computed.hi != expected.hi) || (computed.lo != expected.lo)) in main()
23 … printf("\tExpected %La = ( %a , %a )\n", expected.ld, expected.hi, expected.lo); in main()

12345678910>>...50