| /freebsd-12-stable/contrib/ntp/sntp/unity/ |
| D | unity.h | 76 …RT_EQUAL_INT(expected, actual) UNITY_TEST_ASSER… argument 77 …T_EQUAL_INT8(expected, actual) UNITY_TEST_ASSERT… argument 78 …_EQUAL_INT16(expected, actual) UNITY_TEST_ASSERT_… argument 79 …_EQUAL_INT32(expected, actual) UNITY_TEST_ASSERT_… argument 80 …_EQUAL_INT64(expected, actual) UNITY_TEST_ASSERT_… argument 81 …SERT_EQUAL(expected, actual) UNITY_TEST_ASS… argument 82 …SSERT_NOT_EQUAL(expected, actual) UNITY_TEST_AS… argument 83 …T_EQUAL_UINT(expected, actual) UNITY_TEST_ASSERT… argument 84 …_EQUAL_UINT8(expected, actual) UNITY_TEST_ASSERT_… argument 85 …EQUAL_UINT16(expected, actual) UNITY_TEST_ASSERT_E… argument [all …]
|
| D | unity_internals.h | 437 const _U_SINT actual, 443 UNITY_PTR_ATTRIBUTE const void* actual, 451 const _U_SINT actual, 456 const char* actual, 461 const char** actual, 467 UNITY_PTR_ATTRIBUTE const void* actual, 475 const _U_SINT actual, 487 const _UF actual, 492 UNITY_PTR_ATTRIBUTE const _UF* actual, 497 void UnityAssertFloatSpecial(const _UF actual, [all …]
|
| D | unity.c | 387 static void UnityPrintExpectedAndActualStrings(const char* expected, const char* actual) in UnityPrintExpectedAndActualStrings() argument 401 if (actual != NULL) in UnityPrintExpectedAndActualStrings() 404 UnityPrint(actual); in UnityPrintExpectedAndActualStrings() 417 …NITY_PTR_ATTRIBUTE const void* expected, UNITY_PTR_ATTRIBUTE const void* actual, const UNITY_LINE_… in UnityCheckArraysForNull() argument 420 if ((expected == NULL) && (actual == NULL)) in UnityCheckArraysForNull() 433 if (actual == NULL) in UnityCheckArraysForNull() 451 const _U_SINT actual, in UnityAssertBits() argument 457 if ((mask & expected) != (mask & actual)) in UnityAssertBits() 463 UnityPrintMask((_U_UINT)mask, (_U_UINT)actual); in UnityAssertBits() 471 const _U_SINT actual, in UnityAssertEqualNumber() argument [all …]
|
| D | unity_fixture.h | 76 #define TEST_ASSERT_POINTERS_EQUAL(expected, actual) TEST_ASSERT_EQUAL_PTR(expected, actual) argument 77 #define TEST_ASSERT_BYTES_EQUAL(expected, actual) TEST_ASSERT_EQUAL_HEX8(0xff & (expected), 0x… argument 80 #define LONGS_EQUAL(expected, actual) TEST_ASSERT_EQUAL_INT((expected), (actual)) argument 81 #define STRCMP_EQUAL(expected, actual) TEST_ASSERT_EQUAL_STRING((expected), (actual… argument 82 #define DOUBLES_EQUAL(expected, actual, delta) TEST_ASSERT_FLOAT_WITHIN(((expected), (actua… argument
|
| /freebsd-12-stable/tests/sys/sys/ |
| D | time_test.c | 43 sbintime_t actual = nstosbt(ns); in atf_check_nstosbt() local 45 ATF_CHECK_MSG((expected) - 1 <= (actual) && actual <= (expected) + 1, in atf_check_nstosbt() 47 expected, ns, actual); in atf_check_nstosbt() 71 sbintime_t actual = ustosbt(us); in atf_check_ustosbt() local 73 ATF_CHECK_MSG((expected) - 1 <= (actual) && actual <= (expected) + 1, in atf_check_ustosbt() 75 expected, us, actual); in atf_check_ustosbt() 99 sbintime_t actual = mstosbt(ms); in atf_check_mstosbt() local 101 ATF_CHECK_MSG((expected) - 1 <= (actual) && actual <= (expected) + 1, in atf_check_mstosbt() 103 expected, ms, actual); in atf_check_mstosbt() 126 int64_t actual = sbttons(sbt); in atf_check_sbttons() local [all …]
|
| /freebsd-12-stable/contrib/atf/atf-c/ |
| D | macros.h | 156 #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 …]
|
| D | build_test.c | 115 char *actual[] = { NULL }; in ATF_TC_BODY() local 117 ATF_CHECK(equal_arrays(exp, actual)); in ATF_TC_BODY() 122 char *actual[2] = { strdup("foo"), NULL }; in ATF_TC_BODY() local 124 ATF_CHECK(!equal_arrays(exp, actual)); in ATF_TC_BODY() 125 free(actual[0]); in ATF_TC_BODY() 130 char *actual[] = { NULL }; in ATF_TC_BODY() local 132 ATF_CHECK(!equal_arrays(exp, actual)); in ATF_TC_BODY() 137 char *actual[2] = { strdup("foo"), NULL }; in ATF_TC_BODY() local 139 ATF_CHECK(equal_arrays(exp, actual)); in ATF_TC_BODY() 140 free(actual[0]); in ATF_TC_BODY()
|
| /freebsd-12-stable/contrib/libarchive/libarchive/test/ |
| D | test_read_format_gtar_sparse.c | 182 struct contents actual; in verify_archive_file() local 208 &p, &actual.s, &actual.o))) { in verify_archive_file() 209 actual.d = p; in verify_archive_file() 210 while (actual.s > 0) { in verify_archive_file() 211 char c = *actual.d; in verify_archive_file() 212 if(actual.o < expect.o) { in verify_archive_file() 219 (intmax_t)actual.o); in verify_archive_file() 221 } else if (actual.o == expect.o) { in verify_archive_file() 238 assert(actual.o <= expect.o); in verify_archive_file() 242 actual.d++; in verify_archive_file() [all …]
|
| /freebsd-12-stable/contrib/ncurses/ncurses/tinfo/ |
| D | MKcaptab.sh | 72 _nc_build_names(struct name_table_entry **actual, 76 if (*actual == 0) { 77 *actual = typeCalloc(struct name_table_entry, CAPTABSIZE); 78 if (*actual != 0) { 82 (*actual)[n].nte_name = strings + len; 83 (*actual)[n].nte_type = source[n].nte_type; 84 (*actual)[n].nte_index = source[n].nte_index; 85 (*actual)[n].nte_link = source[n].nte_link; 90 return *actual; 95 (*actual)[n].field = strings + source[n].field; \\ [all …]
|
| /freebsd-12-stable/contrib/googletest/googletest/test/ |
| D | googletest-filepath-test.cc | 240 FilePath actual = FilePath::MakeFileName(FilePath("foo"), FilePath("bar"), in TEST() local 242 EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar.xml", actual.string()); in TEST() 246 FilePath actual = FilePath::MakeFileName(FilePath("foo"), FilePath("bar"), in TEST() local 248 EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar_12.xml", actual.string()); in TEST() 252 FilePath actual = FilePath::MakeFileName(FilePath("foo" GTEST_PATH_SEP_), in TEST() local 254 EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar.xml", actual.string()); in TEST() 258 FilePath actual = FilePath::MakeFileName(FilePath("foo" GTEST_PATH_SEP_), in TEST() local 260 EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar_12.xml", actual.string()); in TEST() 264 FilePath actual = FilePath::MakeFileName(FilePath(""), FilePath("bar"), in TEST() local 266 EXPECT_EQ("bar.xml", actual.string()); in TEST() [all …]
|
| D | gtest_xml_output_unittest.py | 239 actual = self._GetXmlOutput('gtest_no_test_unittest', [], {}, 0) 240 date_time_str = actual.documentElement.getAttributeNode('timestamp').value 256 actual.unlink() 359 actual = minidom.parse(xml_path) 360 return actual 371 actual = self._GetXmlOutput(gtest_prog_name, extra_args or [], 374 self.NormalizeXml(actual.documentElement) 376 actual.documentElement) 378 actual.unlink()
|
| D | gtest_xml_outfiles_test.py | 128 actual = minidom.parse(output_file1) 130 actual = minidom.parse(output_file2) 131 self.NormalizeXml(actual.documentElement) 133 actual.documentElement) 135 actual.unlink()
|
| /freebsd-12-stable/contrib/ntp/sntp/tests/ |
| D | keyFile.c | 10 bool CompareKeys(struct key expected, struct key actual); 11 …pareKeysAlternative(int key_id,int key_len,const char* type,const char* key_seq,struct key actual); 22 struct key actual in CompareKeys() argument 25 if (expected.key_id != actual.key_id) { in CompareKeys() 27 expected.key_id, actual.key_id); in CompareKeys() 30 if (expected.key_len != actual.key_len) { in CompareKeys() 32 expected.key_len, actual.key_len); in CompareKeys() 35 if (strcmp(expected.typen, actual.typen) != 0) { in CompareKeys() 37 expected.typen, actual.typen); in CompareKeys() 41 if (memcmp(expected.key_seq, actual.key_seq, expected.key_len) != 0) { in CompareKeys() [all …]
|
| D | crypto.c | 35 char actual[MD5_LENGTH]; in test_MakeMd5Mac() local 46 make_mac(PKT_DATA, PKT_LEN, MD5_LENGTH, &md5, actual)); in test_MakeMd5Mac() 48 TEST_ASSERT_TRUE(memcmp(EXPECTED_DIGEST, actual, MD5_LENGTH) == 0); in test_MakeMd5Mac() 62 char actual[SHA1_LENGTH]; in test_MakeSHA1Mac() local 73 make_mac(PKT_DATA, PKT_LEN, SHA1_LENGTH, &sha1, actual)); in test_MakeSHA1Mac() 75 TEST_ASSERT_EQUAL_MEMORY(EXPECTED_DIGEST, actual, SHA1_LENGTH); in test_MakeSHA1Mac() 95 char actual[CMAC_LENGTH]; in test_MakeCMac() local 105 make_mac(PKT_DATA, PKT_LEN, CMAC_LENGTH, &cmac, actual)); in test_MakeCMac() 107 TEST_ASSERT_EQUAL_MEMORY(EXPECTED_DIGEST, actual, CMAC_LENGTH); in test_MakeCMac() 252 char actual[MD5_LENGTH]; in test_PacketSizeNotMultipleOfFourBytes() local [all …]
|
| D | kodFile.c | 116 FILE * actual = fopen(kod_db_file, "rb"); in test_WriteFileWithSingleEntry() local 119 TEST_ASSERT_NOT_NULL(actual); in test_WriteFileWithSingleEntry() 122 TEST_ASSERT_EQUAL(GetFileSize(expected), GetFileSize(actual)); in test_WriteFileWithSingleEntry() 124 TEST_ASSERT_TRUE(CompareFileContent(expected, actual)); in test_WriteFileWithSingleEntry() 146 FILE * actual = fopen(kod_db_file, "rb"); in test_WriteFileWithMultipleEntries() local 149 TEST_ASSERT_NOT_NULL(actual); in test_WriteFileWithMultipleEntries() 153 TEST_ASSERT_EQUAL(GetFileSize(expected), GetFileSize(actual)); in test_WriteFileWithMultipleEntries() 155 TEST_ASSERT_TRUE(CompareFileContent(expected, actual)); in test_WriteFileWithMultipleEntries()
|
| D | utilities.c | 15 void FinishDebugTest(const char * expected,const char * actual); 63 const char * actual) { in FinishDebugTest() argument 68 FILE * a = fopen(actual,"rb"); in FinishDebugTest() 123 struct pkt actual; in test_SetLiVnMode1() local 124 set_li_vn_mode(&actual, LEAP_NOWARNING, NTP_VERSION, in test_SetLiVnMode1() 127 TEST_ASSERT_EQUAL(expected.li_vn_mode, actual.li_vn_mode); in test_SetLiVnMode1() 138 struct pkt actual; in test_SetLiVnMode2() local 139 set_li_vn_mode(&actual, LEAP_NOTINSYNC, NTP_OLDVERSION, in test_SetLiVnMode2() 142 TEST_ASSERT_EQUAL(expected.li_vn_mode, actual.li_vn_mode); in test_SetLiVnMode2()
|
| /freebsd-12-stable/contrib/apr-util/test/ |
| D | abts.c | 230 void abts_int_equal(abts_case *tc, const int expected, const int actual, int lineno) in abts_int_equal() argument 235 if (expected == actual) return; in abts_int_equal() 239 fprintf(stderr, "Line %d: expected <%d>, but saw <%d>\n", lineno, expected, actual); in abts_int_equal() 244 void abts_int_nequal(abts_case *tc, const int expected, const int actual, int lineno) in abts_int_nequal() argument 249 if (expected != actual) return; in abts_int_nequal() 254 lineno, expected, actual); in abts_int_nequal() 259 void abts_str_equal(abts_case *tc, const char *expected, const char *actual, int lineno) in abts_str_equal() argument 265 if (!expected && !actual) return; in abts_str_equal() 266 if (expected && actual) in abts_str_equal() 267 if (!strcmp(expected, actual)) return; in abts_str_equal() [all …]
|
| D | abts.h | 72 void abts_int_equal(abts_case *tc, const int expected, const int actual, int lineno); 73 void abts_int_nequal(abts_case *tc, const int expected, const int actual, int lineno); 74 void abts_str_equal(abts_case *tc, const char *expected, const char *actual, int lineno); 75 void abts_str_nequal(abts_case *tc, const char *expected, const char *actual, 78 void abts_ptr_equal(abts_case *tc, const void *expected, const void *actual, int lineno);
|
| /freebsd-12-stable/contrib/ncurses/ncurses/widechar/ |
| D | widechars.c | 69 wchar_t actual[2]; in _nc_mbtowc() local 70 memset(&actual, 0, sizeof(actual)); in _nc_mbtowc() 75 actual, in _nc_mbtowc() 77 TR(TRACE_BITS, ("\twin32 ->%#x, %#x", actual[0], actual[1])); in _nc_mbtowc() 78 *pwc = actual[0]; in _nc_mbtowc() 79 if (actual[1] != 0) in _nc_mbtowc()
|
| /freebsd-12-stable/bin/sh/tests/expansion/ |
| D | pathname6.0 | 13 actual="$*" 14 if [ "$actual" != "$expect" ]; then 16 printf '%s\n' "For $testcase, expected $expect actual $actual"
|
| D | pathname4.0 | 9 actual="$*" 10 if [ "$actual" != "$expect" ]; then 12 printf '%s\n' "For $testcase, expected $expect actual $actual"
|
| D | pathname2.0 | 13 actual="$*" 14 if [ "$actual" != "$expect" ]; then 16 printf '%s\n' "For $testcase, expected $expect actual $actual"
|
| /freebsd-12-stable/sys/contrib/vchiq/interface/vchiq_arm/ |
| D | vchiq_2835_arm.c | 102 free_pagelist(BULKINFO_T *bi, int actual); 306 if (bulk && bulk->remote_data && bulk->actual) in vchiq_complete_bulk() 307 free_pagelist((BULKINFO_T *)bulk->remote_data, bulk->actual); in vchiq_complete_bulk() 554 free_pagelist(BULKINFO_T *bi, int actual) in free_pagelist() argument 563 …"free_pagelist - %x, %d (%lu bytes @%p)", (unsigned int)pagelist, actual, pagelist->length, bi->bu… in free_pagelist() 578 tail_bytes = (pagelist->offset + actual) & in free_pagelist() 581 if ((actual >= 0) && (head_bytes != 0)) { in free_pagelist() 582 if (head_bytes > actual) in free_pagelist() 583 head_bytes = actual; in free_pagelist() 591 if ((actual >= 0) && (head_bytes < actual) && in free_pagelist() [all …]
|
| /freebsd-12-stable/contrib/binutils/gas/ |
| D | macro.c | 464 sb_new (&formal->actual); in new_formal() 475 sb_kill (&formal->actual); in del_formal() 726 if (ptr->actual.len) in sub_actual() 728 sb_add_sb (out, &ptr->actual); in sub_actual() 837 if (f->actual.len != 0) in macro_expand_body() 838 sb_add_sb (out, &f->actual); in macro_expand_body() 887 sb_add_string (&f->actual, buf); in macro_expand_body() 948 if (ptr->actual.len) in macro_expand_body() 1000 sb_reset (&f->actual); in macro_expand() 1025 idx = get_any_string (idx, in, &n->actual); in macro_expand() [all …]
|
| /freebsd-12-stable/contrib/gdb/gdb/ |
| D | gdb-events.sh | 252 echo "#define ${function}_event(${actual}) 0" 255 echo "#define ${function}_event(${actual}) 0" 349 return current_events->${function} (${actual}); 363 current_event_hooks->${function} (${actual}); 436 if test ${actual} 461 if test ${actual} 501 for arg in `echo ${actual} | tr '[,]' '[:]' | tr -d '[ ]'`; do 540 if test ${actual} 545 for arg in `echo ${actual} | tr '[,]' '[:]' | tr -d '[ ]'`; do
|