| /freebsd-12.1/lib/msun/tests/ |
| H A D | fenv_test.c | 163 assert(sig == SIGFPE); in trap_handler() 317 assert(FLT_ROUNDS == 1); in test_fegsetround() 322 assert(FLT_ROUNDS == 3); in test_fegsetround() 327 assert(FLT_ROUNDS == 2); in test_fegsetround() 332 assert(FLT_ROUNDS == 0); in test_fegsetround() 336 assert(FLT_ROUNDS == 1); in test_fegsetround() 441 assert(0); in test_masking() 443 assert(0); in test_masking() 455 assert(0); in test_masking() 519 assert(pass == 0); in test_feholdupdate() [all …]
|
| H A D | rem_test.c | 117 assert(isnan(remainder(x, y))); in test_invalid() 118 assert(isnan(remquo(x, y, &q))); in test_invalid() 120 assert(q == 0xdeadbeef); in test_invalid() 126 assert(q == 0xdeadbeef); in test_invalid() 132 assert(q == 0xdeadbeef); in test_invalid() 151 assert(rem == expected_rem); in testl() 154 assert(rem == expected_rem); in testl() 173 assert(rem == expected_rem); in testd() 176 assert(rem == expected_rem); in testd() 195 assert(rem == expected_rem); in testf() [all …]
|
| H A D | nan_test.c | 68 assert(isnan(af[0])); in testnan() 70 assert(end == nan_str + strlen(nan_str)); in testnan() 71 assert(sscanf(nan_str, "%e", &af[2]) == 1); in testnan() 72 assert(memcmp(&af[0], &af[1], sizeof(float)) == 0); in testnan() 73 assert(memcmp(&af[1], &af[2], sizeof(float)) == 0); in testnan() 81 assert(isnan(ad[0])); in testnan() 83 assert(end == nan_str + strlen(nan_str)); in testnan() 84 assert(sscanf(nan_str, "%le", &ad[2]) == 1); in testnan() 94 assert(isnan(ald[0])); in testnan() 96 assert(end == nan_str + strlen(nan_str)); in testnan() [all …]
|
| H A D | nearbyint_test.c | 103 assert(fpequal(out, libnearbyintf(in))); in test_nearby() 104 assert(fpequal(out, nearbyint(in))); in test_nearby() 105 assert(fpequal(out, nearbyintl(in))); in test_nearby() 110 assert(fpequal(out, nearbyintf(in))); in test_nearby() 111 assert(fpequal(out, nearbyint(in))); in test_nearby() 112 assert(fpequal(out, nearbyintl(in))); in test_nearby() 139 assert(fpequal(ipart_expected, ipartf)); in test_modf() 140 assert(fpequal(out, modf(in, &ipart))); in test_modf() 141 assert(fpequal(ipart_expected, ipart)); in test_modf() 152 assert(fpequal(out, modf(in, &ipart))); in test_modf() [all …]
|
| /freebsd-12.1/contrib/libarchive/libarchive/test/ |
| H A D | test_write_disk_secure.c | 168 assert(S_ISLNK(st.st_mode)); in DEFINE_TEST() 190 assert(S_ISDIR(st.st_mode)); in DEFINE_TEST() 218 assert(S_ISDIR(st.st_mode)); in DEFINE_TEST() 247 assert(0 == lstat("dir", &st)); in DEFINE_TEST() 249 assert((st.st_mode & 0777) == 0755); in DEFINE_TEST() 253 assert(S_ISLNK(st.st_mode)); in DEFINE_TEST() 257 assert((st.st_mode & 07777) == 0755); in DEFINE_TEST() 260 assert(0 == lstat("dir/filea", &st)); in DEFINE_TEST() 269 assert(S_ISDIR(st.st_mode)); in DEFINE_TEST() 271 assert((st.st_mode & 0777) == 0755); in DEFINE_TEST() [all …]
|
| /freebsd-12.1/sys/contrib/libsodium/test/default/ |
| H A D | pwhash_argon2id.c | 211 assert(out != NULL); in tv3() 214 assert(passwd != NULL); in tv3() 404 assert(crypto_pwhash_bytes_min() > 0U); in main() 407 assert(crypto_pwhash_saltbytes() > 0U); in main() 408 assert(crypto_pwhash_strbytes() > 1U); in main() 411 assert(crypto_pwhash_opslimit_min() > 0U); in main() 412 assert(crypto_pwhash_opslimit_max() > 0U); in main() 413 assert(crypto_pwhash_memlimit_min() > 0U); in main() 414 assert(crypto_pwhash_memlimit_max() > 0U); in main() 438 assert(crypto_pwhash_opslimit_moderate() == in main() [all …]
|
| H A D | secretstream.c | 67 assert(ret == 0); in main() 71 assert(ret == 0); in main() 76 assert(ret == 0); in main() 81 assert(ret == 0); in main() 86 assert(ret == 0); in main() 91 assert(ret == 0); in main() 92 assert(tag == 0); in main() 99 assert(ret == 0); in main() 100 assert(tag == 0); in main() 112 assert(ret == 0); in main() [all …]
|
| H A D | pwhash_argon2i.c | 215 assert(out != NULL); in tv3() 218 assert(passwd != NULL); in tv3() 283 assert(str_out[crypto_pwhash_STRBYTES - 1U] == 0); in str_tests() 406 assert(crypto_pwhash_argon2i_bytes_min() > 0U); in main() 409 assert(crypto_pwhash_argon2i_saltbytes() > 0U); in main() 410 assert(crypto_pwhash_argon2i_strbytes() > 1U); in main() 413 assert(crypto_pwhash_argon2i_opslimit_min() > 0U); in main() 414 assert(crypto_pwhash_argon2i_opslimit_max() > 0U); in main() 415 assert(crypto_pwhash_argon2i_memlimit_min() > 0U); in main() 416 assert(crypto_pwhash_argon2i_memlimit_max() > 0U); in main() [all …]
|
| H A D | xchacha20.c | 129 assert(sodium_is_zero(out2, out_len)); in tv_stream_xchacha20() 131 assert(sodium_is_zero(out2, out_len)); in tv_stream_xchacha20() 133 assert(!sodium_is_zero(out2, out_len)); in tv_stream_xchacha20() 135 assert(sodium_is_zero(out, out_len)); in tv_stream_xchacha20() 153 assert(memcmp(out, out2 + 64, 64) == 0); in tv_stream_xchacha20() 169 assert(memcmp(out, out2, 192) == 0); in tv_stream_xchacha20() 245 assert(memcmp(out, out2, in tv_secretbox_xchacha20poly1305() 272 assert(memcmp(m, out2, m_len) == 0); in tv_secretbox_xchacha20poly1305() 282 assert(memcmp(out, out2, in tv_secretbox_xchacha20poly1305() 345 assert(memcmp(m2, m, m_len) == 0); in tv_box_xchacha20poly1305() [all …]
|
| H A D | box.c | 56 assert(ret == 0); in main() 65 assert(ret == -1); in main() 70 assert(ret == 0); in main() 80 assert(ret == -1); in main() 82 assert(crypto_box_seedbytes() > 0U); in main() 83 assert(crypto_box_publickeybytes() > 0U); in main() 85 assert(crypto_box_beforenmbytes() > 0U); in main() 86 assert(crypto_box_noncebytes() > 0U); in main() 87 assert(crypto_box_zerobytes() > 0U); in main() 88 assert(crypto_box_boxzerobytes() > 0U); in main() [all …]
|
| H A D | codecs.c | 133 assert(*b64_end == 0); in main() 142 assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), NULL, NULL, in main() 144 assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), NULL, NULL, in main() 148 assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), NULL, NULL, in main() 153 assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), NULL, NULL, in main() 155 assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), NULL, NULL, in main() 206 assert(sizeof buf1 >= 100); in main() 216 assert(b64 != NULL); in main() 217 assert(sodium_base642bin(bin, bin_len + 10, b64, b64_len, in main() 220 assert(b64_end == &b64[b64_len - 1]); in main() [all …]
|
| H A D | core_ed25519.c | 98 assert(crypto_core_ed25519_is_valid_point(p) == 1); in main() 101 assert(crypto_core_ed25519_is_valid_point(p) == 0); in main() 104 assert(crypto_core_ed25519_is_valid_point(p) == 0); in main() 107 assert(crypto_core_ed25519_is_valid_point(p) == 0); in main() 110 assert(crypto_core_ed25519_is_valid_point(p) == 1); in main() 120 assert(memcmp(p2, p, crypto_core_ed25519_BYTES) != 0); in main() 121 assert(memcmp(p3, p, crypto_core_ed25519_BYTES) == 0); in main() 124 assert(crypto_core_ed25519_add(p3, p2, p) == -1); in main() 127 assert(crypto_core_ed25519_add(p3, p, p3) == -1); in main() 131 assert(crypto_core_ed25519_sub(p3, p2, p) == -1); in main() [all …]
|
| H A D | generichash.c | 1370 assert(crypto_generichash(NULL, 0, in main() 1380 assert(crypto_generichash_bytes_min() > 0U); in main() 1381 assert(crypto_generichash_bytes_max() > 0U); in main() 1382 assert(crypto_generichash_bytes() > 0U); in main() 1385 assert(crypto_generichash_keybytes_min() > 0U); in main() 1387 assert(crypto_generichash_keybytes() > 0U); in main() 1391 assert(crypto_generichash_bytes_min() in main() 1393 assert(crypto_generichash_bytes_max() in main() 1396 assert(crypto_generichash_keybytes_min() in main() 1398 assert(crypto_generichash_keybytes_max() in main() [all …]
|
| H A D | secretbox.c | 63 assert(crypto_secretbox_keybytes() > 0U); in main() 64 assert(crypto_secretbox_noncebytes() > 0U); in main() 65 assert(crypto_secretbox_zerobytes() > 0U); in main() 66 assert(crypto_secretbox_boxzerobytes() > 0U); in main() 67 assert(crypto_secretbox_macbytes() > 0U); in main() 70 assert(crypto_secretbox_keybytes() == in main() 72 assert(crypto_secretbox_noncebytes() == in main() 74 assert(crypto_secretbox_zerobytes() == in main() 76 assert(crypto_secretbox_boxzerobytes() == in main() 78 assert(crypto_secretbox_macbytes() == in main() [all …]
|
| /freebsd-12.1/lib/libc/tests/string/ |
| H A D | memset_s_test.c | 79 assert(b == 5); in ATF_TC_BODY() 107 assert(b[0] == 9); in ATF_TC_BODY() 108 assert(b[1] == 2); in ATF_TC_BODY() 109 assert(b[2] == 3); in ATF_TC_BODY() 122 assert(e > 0); in ATF_TC_BODY() 124 assert(b[0] == 9); in ATF_TC_BODY() 125 assert(b[1] == 2); in ATF_TC_BODY() 139 assert(e > 0); in ATF_TC_BODY() 153 assert(e > 0); in ATF_TC_BODY() 167 assert(e > 0); in ATF_TC_BODY() [all …]
|
| H A D | memcmp_test.c | 41 assert(memcmp("a", "b", 0) == 0); in ATF_TC_BODY() 42 assert(memcmp("", "", 0) == 0); in ATF_TC_BODY() 54 assert(memcmp(data1, data2, i) == 0); in ATF_TC_BODY() 56 assert(memcmp(data1 + i, data2 + i, 256 - i) == 0); in ATF_TC_BODY() 70 assert(memcmp(data1, data2, i) != 0); in ATF_TC_BODY() 72 assert(memcmp(data1 + i, data2 + i, 256 - i) != 0); in ATF_TC_BODY() 86 assert(memcmp(data1 + 128, data2 + 128, i) == 255); in ATF_TC_BODY() 96 assert(memcmp(data1 + 128, data2 + 128, i) == -2); in ATF_TC_BODY() 97 assert(memcmp(data2 + 128, data1 + 128, i) == 2); in ATF_TC_BODY() 106 assert(memcmp(data1 + 128, data2 + 128, i) == -2); in ATF_TC_BODY() [all …]
|
| /freebsd-12.1/contrib/libucl/tests/ |
| H A D | test_generate.c | 32 assert (ptr == NULL); in ud_dtor() 124 assert (ucl_object_todouble (cur) == 1.0); in main() 172 assert (test == cur); in main() 174 assert (test == cur); in main() 176 assert (test == cur); in main() 178 assert (test == NULL); in main() 180 assert (test == NULL); in main() 221 assert (test == cur); in main() 235 assert (found == NULL); in main() 238 assert (found == NULL); in main() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/CodeGen/GlobalISel/ |
| H A D | MachineIRBuilder.cpp | 39 assert(&getMF() == MBB.getParent() && in setMBB() 53 assert(MBB.getParent() == &getMF() && in setInsertPt() 94 assert( in buildDirectDbgValue() 107 assert( in buildIndirectDbgValue() 120 assert( in buildFIDbgValue() 135 assert( in buildConstDbgValue() 190 assert(getMRI()->getType(Res).isPointer() && in buildGEP() 220 assert(getMRI()->getType(Res).isPointer() && in buildPtrMask() 782 assert((TstTy.isScalar() || in validateSelectOp() 855 assert([&]() -> bool { in buildInstr() [all …]
|
| /freebsd-12.1/contrib/libarchive/cpio/test/ |
| H A D | test_cmdline.c | 38 assert(f != NULL); in DEFINE_TEST() 42 assert(0 != systemf("%s -i -Q <empty >1.out 2>1.err", testprog)); in DEFINE_TEST() 46 assert(0 != systemf("%s -if <empty >2.out 2>2.err", testprog)); in DEFINE_TEST() 50 assert(0 != systemf("%s -i -f <empty >3.out 2>3.err", testprog)); in DEFINE_TEST() 66 assert(0 != systemf("%s -i --n <empty >7.out 2>7.err", testprog)); in DEFINE_TEST() 74 assert(0 == systemf("%s -i <empty >9.out 2>9.err", testprog)); in DEFINE_TEST() 78 assert(0 == systemf("%s -o <empty >10.out 2>10.err", testprog)); in DEFINE_TEST() 81 assert(0 != systemf("%s -i -p <empty >11.out 2>11.err", testprog)); in DEFINE_TEST() 85 assert(0 != systemf("%s -p -i <empty >12.out 2>12.err", testprog)); in DEFINE_TEST() 89 assert(0 != systemf("%s -i -o <empty >13.out 2>13.err", testprog)); in DEFINE_TEST() [all …]
|
| H A D | test_owner_parse.c | 68 assert(NULL == owner_parse(ROOT, &uid, &gid)); in DEFINE_TEST() 69 assert(int_in_list(uid, root_uids, in DEFINE_TEST() 75 assert(int_in_list(uid, root_uids, in DEFINE_TEST() 77 assert(int_in_list(gid, root_gids, in DEFINE_TEST() 81 assert(int_in_list(uid, root_uids, in DEFINE_TEST() 83 assert(int_in_list(gid, root_gids, in DEFINE_TEST() 86 assert(NULL == owner_parse("111", &uid, &gid)); in DEFINE_TEST() 90 assert(NULL == owner_parse("112:", &uid, &gid)); in DEFINE_TEST() 94 assert(NULL == owner_parse("113.", &uid, &gid)); in DEFINE_TEST() 98 assert(NULL == owner_parse(":114", &uid, &gid)); in DEFINE_TEST() [all …]
|
| /freebsd-12.1/lib/libpjdlog/ |
| H A D | pjdlog.c | 84 assert(n >= 1); in pjdlog_printf_arginfo_humanized_number() 110 assert(n >= 1); in pjdlog_printf_arginfo_sockaddr() 343 assert(sock >= 0); in pjdlog_sock_set() 359 assert(pjdlog_sock >= 0); in pjdlog_sock_get() 374 assert(level >= 0); in pjdlog_debug_set() 375 assert(level <= 127); in pjdlog_debug_set() 416 assert(fmt != NULL); in pjdlogv_prefix_set() 516 assert(len < size); in vsnprlcat() 556 assert(debuglevel <= 127); in pjdlogv_common_single_line() 557 assert(error >= -1); in pjdlogv_common_single_line() [all …]
|
| /freebsd-12.1/sys/kern/ |
| H A D | subr_capability.c | 189 assert(CAPRVER(right) == 0); in cap_rights_vset() 191 assert(i >= 0); in cap_rights_vset() 192 assert(i < n); in cap_rights_vset() 214 assert(CAPRVER(right) == 0); in cap_rights_vclear() 216 assert(i >= 0); in cap_rights_vclear() 217 assert(i < n); in cap_rights_vclear() 239 assert(CAPRVER(right) == 0); in cap_rights_is_vset() 241 assert(i >= 0); in cap_rights_is_vset() 242 assert(i < n); in cap_rights_is_vset() 358 assert(cap_rights_is_valid(src)); in cap_rights_merge() [all …]
|
| /freebsd-12.1/tests/sys/kern/ |
| H A D | pdeathsig.c | 113 assert(rc == 0); in ATF_TC_BODY() 142 assert(rc == 0); in ATF_TC_BODY() 146 assert(rc == 0); in ATF_TC_BODY() 174 assert(rc >= 0); in ATF_TC_BODY() 181 assert(rc == 0); in ATF_TC_BODY() 183 assert(rc == 0); in ATF_TC_BODY() 212 assert(rc == 1); in ATF_TC_BODY() 241 assert(rc == 0); in ATF_TC_BODY() 251 assert(rc >= 0); in ATF_TC_BODY() 288 assert(rc >= 0); in ATF_TC_BODY() [all …]
|
| /freebsd-12.1/sys/contrib/zlib/test/ |
| H A D | infcover.c | 163 assert(zone != NULL); in mem_setup() 517 assert(in != NULL); in try() 522 assert(out != NULL); in try() 524 assert(win != NULL); in try() 526 assert(prefix != NULL); in try() 535 assert(ret == Z_OK); in try() 547 assert(ret == Z_DATA_ERROR); in try() 548 assert(strcmp(id, strm.msg) == 0); in try() 559 assert(ret == Z_OK); in try() 563 assert(ret != Z_STREAM_ERROR); in try() [all …]
|
| /freebsd-12.1/contrib/llvm/include/llvm/CodeGen/ |
| H A D | MachineOperand.h | 355 assert(isReg() && "Wrong MachineOperand accessor"); in getSubReg() 360 assert(isReg() && "Wrong MachineOperand accessor"); in isUse() 461 assert(isReg() && "Wrong MachineOperand mutator"); in setSubReg() 485 assert(isReg() && "Wrong MachineOperand mutator"); 501 assert(isReg() && "Wrong MachineOperand mutator"); 508 assert(isReg() && "Wrong MachineOperand mutator"); 640 assert(isImm() && "Wrong MachineOperand mutator"); in setImm() 674 assert(isMBB() && "Wrong MachineOperand mutator"); in setMBB() 764 assert(!(isKill && isDef) && "Kill flag on def"); 852 assert(Mask && "Missing register mask"); in CreateRegMask() [all …]
|