Home
last modified time | relevance | path

Searched refs:assert (Results 1 – 25 of 3487) sorted by relevance

12345678910>>...140

/openbsd-src/regress/lib/libm/fenv/
H A Dfenv.c139 assert(memcmp(&env, FE_DFL_ENV, sizeof(env)) == 0); in test_dfl_env()
141 assert(fetestexcept(FE_ALL_EXCEPT) == 0); in test_dfl_env()
153 assert(fetestexcept(std_except_sets[i]) == 0); in test_fetestclearexcept()
159 assert(fetestexcept(excepts) == excepts); in test_fetestclearexcept()
160 assert(feclearexcept(FE_ALL_EXCEPT) == 0); in test_fetestclearexcept()
161 assert(fetestexcept(FE_ALL_EXCEPT) == 0); in test_fetestclearexcept()
164 assert(fetestexcept(excepts) == excepts); in test_fetestclearexcept()
167 assert((fetestexcept(ALL_STD_EXCEPT) | FE_INEXACT) == in test_fetestclearexcept()
170 assert(fetestexcept(ALL_STD_EXCEPT) == excepts); in test_fetestclearexcept()
172 assert(feclearexcept(excepts) == 0); in test_fetestclearexcept()
[all …]
/openbsd-src/lib/libfido2/src/
H A Dassert.c17 fido_assert_t *assert = arg; in adjust_assert_count() local
33 if (assert->stmt_len != 0 || assert->stmt_cnt != 1 || in adjust_assert_count()
34 (size_t)n < assert->stmt_cnt) { in adjust_assert_count()
36 __func__, assert->stmt_len, assert->stmt_cnt, (size_t)n); in adjust_assert_count()
40 if (fido_assert_set_count(assert, (size_t)n) != FIDO_OK) { in adjust_assert_count()
45 assert->stmt_len = 0; /* XXX */ in adjust_assert_count()
80 fido_dev_get_assert_tx(fido_dev_t *dev, fido_assert_t *assert, in fido_dev_get_assert_tx() argument
84 fido_opt_t uv = assert->uv; in fido_dev_get_assert_tx()
93 if (assert->rp_id == NULL || assert->cdh.ptr == NULL) { in fido_dev_get_assert_tx()
95 (void *)assert->rp_id, (void *)assert->cdh.ptr); in fido_dev_get_assert_tx()
[all …]
/openbsd-src/regress/lib/libfuse/
H A Dfuse-opt-parse.c109 assert(fuse_opt_parse(NULL, &data, opts, proc) == 0); in test_null_args()
111 assert(data.port == 0); in test_null_args()
112 assert(data.fsname == NULL); in test_null_args()
113 assert(data.x == NULL); in test_null_args()
114 assert(data.optstring == NULL); in test_null_args()
115 assert(data.debug == 0); in test_null_args()
116 assert(data.noatime == 0); in test_null_args()
117 assert(data.ssh_ver == 0); in test_null_args()
118 assert(data.count == 0); in test_null_args()
119 assert(data.cache == 0); in test_null_args()
[all …]
H A Dfuse-opt-match.c49 assert(fuse_opt_match(emptyopts, "debug") == 0); in main()
51 assert(fuse_opt_match(opts, NULL) == 0); in main()
52 assert(fuse_opt_match(opts, "-p ") == 1); in main()
53 assert(fuse_opt_match(opts, "-C") == 1); in main()
54 assert(fuse_opt_match(opts, "-c") == 0); in main()
55 assert(fuse_opt_match(opts, "-V") == 1); in main()
56 assert(fuse_opt_match(opts, "--version") == 1); in main()
57 assert(fuse_opt_match(opts, "-h") == 1); in main()
58 assert(fuse_opt_match(opts, "const=false") == 1); in main()
59 assert(fuse_opt_match(opts, "const=falsefalse") == 0); in main()
[all …]
/openbsd-src/gnu/usr.bin/perl/
H A Dproto.h26 assert(stash)
48 assert(file)
55 assert(file)
67 assert(utf8ness)
85 assert(op)
97 assert(p); assert(e)
103 assert(first_folds_to); assert(remaining_folds_to)
128 assert(
[all...]
/openbsd-src/regress/lib/libm/round/
H A Dround.c37 assert(round(8.6) == 9.); in main()
38 assert(roundf(8.6F) == 9.); in main()
39 assert(roundl(8.6L) == 9.); in main()
40 assert(lround(8.6) == 9L); in main()
41 assert(lroundf(8.6F) == 9L); in main()
42 assert(lroundl(8.6L) == 9L); in main()
43 assert(llround(8.6) == 9LL); in main()
44 assert(llroundf(8.6F) == 9LL); in main()
45 assert(llroundl(8.6L) == 9LL); in main()
47 assert(lround(0.0) == 0L); in main()
[all …]
/openbsd-src/regress/sys/kern/futex/
H A Dfutex.c51 assert(futex(&lock, 0xFFFF, 0, 0, NULL) == -1); in main()
52 assert(errno == ENOSYS); in main()
55 assert(futex_twait((void *)0xdeadbeef, 1, 0, NULL, 0) == -1); in main()
56 assert(errno == EFAULT); in main()
59 assert(futex_twait(&lock, 1, 0, NULL, 0) == -1); in main()
60 assert(errno == EAGAIN); in main()
63 assert(futex_twait(&lock, 0, CLOCK_REALTIME, &tmo, 0) == -1); in main()
64 assert(errno == ETIMEDOUT); in main()
69 assert(sigaction(SIGUSR1, &sa, NULL) == 0); in main()
70 assert(pthread_create(&thread, NULL, signaled, NULL) == 0); in main()
[all …]
/openbsd-src/regress/sys/kern/signal/sigio/
H A Dsigio_common.c40 assert(fcntl(fd, F_SETOWN, pgid) == -1); in test_common_badpgid()
41 assert(errno == ESRCH); in test_common_badpgid()
43 assert(ioctl(fd, FIOSETOWN, &pgid) == -1); in test_common_badpgid()
44 assert(errno == ESRCH); in test_common_badpgid()
49 assert(fcntl(fd, F_SETOWN, pgid) == -1); in test_common_badpgid()
50 assert(errno == ESRCH); in test_common_badpgid()
52 assert(ioctl(fd, FIOSETOWN, &pgid) == -1); in test_common_badpgid()
53 assert(errno == ESRCH); in test_common_badpgid()
65 assert(setpgid(0, 0) == 0); in test_common_badsession()
71 assert(setsid() != -1); in test_common_badsession()
[all …]
H A Dsigio_socket.c35 assert(socketpair(AF_UNIX, SOCK_STREAM, 0, fds) == 0); in test_socket_badpgid()
44 assert(socketpair(AF_UNIX, SOCK_STREAM, 0, fds) == 0); in test_socket_badsession()
53 assert(socketpair(AF_UNIX, SOCK_STREAM, 0, fds) == 0); in test_socket_cansigio()
62 assert(socketpair(AF_UNIX, SOCK_STREAM, 0, fds) == 0); in test_socket_getown()
79 assert(sock != -1); in test_socket_inherit()
85 assert(bind(sock, (struct sockaddr *)&inaddr, sizeof(inaddr)) == 0); in test_socket_inherit()
86 assert(listen(sock, 1) == 0); in test_socket_inherit()
89 assert(fcntl(sock, F_SETFL, flags | O_ASYNC) == 0); in test_socket_inherit()
94 assert(cli != -1); in test_socket_inherit()
95 assert(fcntl(cli, F_GETOWN) == 0); in test_socket_inherit()
[all …]
/openbsd-src/regress/sys/kern/poll/
H A Dpoll_iocond.c304 assert(ret == 1); in proc_barrier()
306 assert(ret == 1); in proc_barrier()
326 assert(ret == 1); in proc_child()
327 assert(pfd[0].revents == POLLOUT); in proc_child()
332 assert(ret == 1); in proc_child()
337 assert(ret == 1); in proc_child()
338 assert(pfd[0].revents == POLLOUT); in proc_child()
356 assert(ret == 1); in proc_child()
357 assert(pfd[0].revents == POLLOUT); in proc_child()
359 assert(ret > 0); in proc_child()
[all …]
/openbsd-src/regress/lib/libc/fpclassify/
H A Dfpclassify.c39 assert(fpclassify((float)0) == FP_ZERO); in main()
40 assert(fpclassify((float)-0.0) == FP_ZERO); in main()
41 assert(fpclassify((float)1) == FP_NORMAL); in main()
42 assert(fpclassify((float)1000) == FP_NORMAL); in main()
44 assert(fpclassify(0x1.2p-150f) == FP_SUBNORMAL); in main()
46 assert(fpclassify(HUGE_VALF) == FP_INFINITE); in main()
47 assert(fpclassify((float)HUGE_VAL) == FP_INFINITE); in main()
48 assert(fpclassify((float)HUGE_VALL) == FP_INFINITE); in main()
49 assert(fpclassify(NAN) == FP_NAN); in main()
51 assert(fpclassify((double)0) == FP_ZERO); in main()
[all …]
/openbsd-src/regress/lib/libc/ldexp/
H A Dldexp_test.c32 assert(ldexp(1.0, -1022) > 0.0); /* IEEE 754 minimum normal positive */ in main()
33 assert(ldexp(1.0, -1023) > 0.0); /* subnormal positive */ in main()
34 assert(ldexp(1.0, -1024) > 0.0); /* subnormal positive */ in main()
35 assert(ldexp(1.0, -1074) > 0.0); /* minimum subnormal positive */ in main()
36 assert(ldexp(1.0, -1075) >= 0.0); /* zero */ in main()
37 assert(ldexp(ldexp(1.0, -1022), -53) >= 0.0); /* zero */ in main()
39 assert(ldexp(1.0, 1023) > 0.0); /* normal positive */ in main()
42 assert(isinf(f)); in main()
43 assert(!signbit(f)); in main()
46 assert(isinf(f)); in main()
[all …]
/openbsd-src/regress/sys/kern/select/
H A Dselect_iocond.c305 assert(ret == 1); in proc_barrier()
307 assert(ret == 1); in proc_barrier()
336 assert(ret == 1); in proc_child()
337 assert(FD_ISSET(fd, &rfd) == 0); in proc_child()
338 assert(FD_ISSET(fd, &wfd) != 0); in proc_child()
339 assert(FD_ISSET(fd, &efd) == 0); in proc_child()
344 assert(ret == 1); in proc_child()
350 assert(ret == 1); in proc_child()
351 assert(FD_ISSET(fd, &rfd) == 0); in proc_child()
352 assert(FD_ISSET(fd, &wfd) != 0); in proc_child()
[all …]
/openbsd-src/regress/lib/libm/modf/
H A Dmodf_test.c16 assert(isinf(i)); in modff_infnan()
17 assert(signbit(i) == 0); in modff_infnan()
18 assert(f == 0.0f); in modff_infnan()
21 assert(isinf(i)); in modff_infnan()
22 assert(signbit(i) != 0); in modff_infnan()
23 assert(f == -0.0f); in modff_infnan()
26 assert(isnan(i)); in modff_infnan()
27 assert(signbit(i) == 0); in modff_infnan()
28 assert(isnan(f)); in modff_infnan()
29 assert(signbit(f) == 0); in modff_infnan()
[all …]
/openbsd-src/regress/lib/libm/nextafter/
H A Dnextafter.c18 assert(test(nextafter(0.0, 0.0), 0.0)); in main()
19 assert(test(nextafter(-0.0, 0.0), 0.0)); in main()
20 assert(test(nextafter(0.0, -0.0), -0.0)); in main()
21 assert(test(nextafter(-0.0, -0.0), -0.0)); in main()
23 assert(test(nextafterf(0.0F, 0.0F), 0.0F)); in main()
24 assert(test(nextafterf(-0.0F, 0.0F), 0.0F)); in main()
25 assert(test(nextafterf(0.0F, -0.0F), -0.0F)); in main()
26 assert(test(nextafterf(-0.0F, -0.0F), -0.0F)); in main()
28 assert(test(nextafterl(0.0L, 0.0L), 0.0L)); in main()
29 assert(test(nextafterl(-0.0L, 0.0L), 0.0L)); in main()
[all …]
/openbsd-src/regress/lib/libm/rint/
H A Drint.c37 assert(rint(8.6) == 9.); in main()
38 assert(rintf(8.6F) == 9); in main()
39 assert(rintl(8.6L) == 9); in main()
40 assert(lrint(8.6) == 9L); in main()
41 assert(lrintf(8.6F) == 9L); in main()
42 assert(llrint(8.6) == 9LL); in main()
43 assert(llrintf(8.6F) == 9LL); in main()
45 assert(lrint(0.0) == 0L); in main()
46 assert(lrintf(0.0) == 0L); in main()
47 assert(lrint(-0.0) == 0L); in main()
[all …]
/openbsd-src/regress/lib/libc/modf/
H A Dmodf_test.c17 assert(i == BIGFLOAT); in modf_sparc()
18 assert(f == 0.0); in modf_sparc()
22 assert(i == BIGFLOAT); in modf_sparc()
23 assert(f == 0.0); in modf_sparc()
27 assert(i == -BIGFLOAT); in modf_sparc()
28 assert(f == 0.0); in modf_sparc()
40 assert(isinf(i)); in modf_infnan()
41 assert(signbit(i) == 0); in modf_infnan()
42 assert(f == 0.0); in modf_infnan()
45 assert(isinf(i)); in modf_infnan()
[all …]
/openbsd-src/regress/lib/libm/lgamma/
H A Dlgamma.c17 assert(isnan(lgamma(NAN))); in main()
18 assert(isnan(lgammaf(NAN))); in main()
21 assert(lgamma(-HUGE_VAL) == HUGE_VAL && signgam == 1); in main()
23 assert(lgammaf(-HUGE_VALF) == HUGE_VALF && signgam == 1); in main()
25 assert(lgammal(-HUGE_VALL) == HUGE_VALL && signgam == 1); in main()
28 assert(lgamma(HUGE_VAL) == HUGE_VAL && signgam == 1); in main()
30 assert(lgammaf(HUGE_VALF) == HUGE_VALF && signgam == 1); in main()
32 assert(lgammal(HUGE_VALL) == HUGE_VALL && signgam == 1); in main()
35 assert(lgamma(-0.0) == HUGE_VAL && signgam == -1); in main()
37 assert(lgammaf(-0.0F) == HUGE_VALF && signgam == -1); in main()
[all …]
/openbsd-src/regress/lib/libc/strchr/
H A Dstrchrtest.c40 assert(strchr(buf, 'a') == NULL); in main()
41 assert(strchr(buf, '\0') == buf); in main()
42 assert(strrchr(buf, 'a') == NULL); in main()
43 assert(strrchr(buf, '\0') == buf); in main()
46 assert(strchr(buf, 'a') == buf + 1); in main()
47 assert(strchr(buf, '\x80') == buf + 9); in main()
48 assert(strchr(buf, 0x180) == buf + 9); in main()
49 assert(strchr(buf, '\0') == buf + 10); in main()
50 assert(strrchr(buf, 'a') == buf + 5); in main()
51 assert(strrchr(buf, '\xcf') == buf + 8); in main()
[all …]
/openbsd-src/regress/lib/libc/ieeefp/round/
H A Dround.c25 assert(fpgetround() == FP_RN); in main()
26 assert(FLT_ROUNDS == 1); in main()
28 assert(fpsetround(FP_RP) == FP_RN); in main()
29 assert(fpgetround() == FP_RP); in main()
30 assert(FLT_ROUNDS == 2); in main()
32 assert(fpsetround(FP_RM) == FP_RP); in main()
33 assert(fpgetround() == FP_RM); in main()
34 assert(FLT_ROUNDS == 3); in main()
36 assert(fpsetround(FP_RZ) == FP_RM); in main()
37 assert(fpgetround() == FP_RZ); in main()
[all …]
/openbsd-src/gnu/llvm/clang/lib/Tooling/Syntax/
H A DMutations.cpp31 assert(Anchor != nullptr); in addAfter()
32 assert(Anchor->Parent != nullptr); in addAfter()
33 assert(New->Parent == nullptr); in addAfter()
34 assert(New->NextSibling == nullptr); in addAfter()
35 assert(New->PreviousSibling == nullptr); in addAfter()
36 assert(New->isDetached()); in addAfter()
37 assert(Role != NodeRole::Detached); in addAfter()
49 assert(Old != nullptr); in replace()
50 assert(Old->Parent != nullptr); in replace()
51 assert(Old->canModify()); in replace()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/
H A DMachineIRBuilder.cpp52 assert(isa<DILocalVariable>(Variable) && "not a variable"); in buildDirectDbgValue()
53 assert(cast<DIExpression>(Expr)->isValid() && "not an expression"); in buildDirectDbgValue()
54 assert( in buildDirectDbgValue()
65 assert(isa<DILocalVariable>(Variable) && "not a variable"); in buildIndirectDbgValue()
66 assert(cast<DIExpression>(Expr)->isValid() && "not an expression"); in buildIndirectDbgValue()
67 assert( in buildIndirectDbgValue()
78 assert(isa<DILocalVariable>(Variable) && "not a variable"); in buildFIDbgValue()
79 assert(cast<DIExpression>(Expr)->isValid() && "not an expression"); in buildFIDbgValue()
80 assert( in buildFIDbgValue()
93 assert(isa<DILocalVariable>(Variable) && "not a variable"); in buildConstDbgValue()
[all …]
/openbsd-src/regress/lib/libz/
H A Dinfcover.c163 assert(zone != NULL); in mem_setup()
301 out = malloc(len); assert(out != NULL); in inf()
309 ret = inflateGetHeader(&strm, &head); assert(ret == Z_OK); in inf()
311 in = h2b(hex, &have); assert(in != NULL); in inf()
320 ret = inflate(&strm, Z_NO_FLUSH); assert(err == 9 || ret == err); in inf()
325 assert(ret == Z_DATA_ERROR); in inf()
328 assert(ret == Z_MEM_ERROR); in inf()
332 assert(ret == Z_OK); in inf()
333 ret = inflate(&strm, Z_NO_FLUSH); assert(ret == Z_BUF_ERROR); in inf()
335 ret = inflateCopy(&copy, &strm); assert(ret == Z_OK); in inf()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/
H A DMachineOperand.h230 assert(!isReg() && "Register operands can't have target flags"); in setTargetFlags()
232 assert(SubReg_TargetFlags == F && "Target flags out of range"); in setTargetFlags()
235 assert(!isReg() && "Register operands can't have target flags"); in addTargetFlag()
237 assert((SubReg_TargetFlags & F) && "Target flags out of range"); in addTargetFlag()
367 assert(isReg() && "This is not a register operand!"); in getReg()
372 assert(isReg() && "Wrong MachineOperand accessor"); in getSubReg()
377 assert(isReg() && "Wrong MachineOperand accessor"); in isUse()
382 assert(isReg() && "Wrong MachineOperand accessor"); in isDef()
387 assert(isReg() && "Wrong MachineOperand accessor"); in isImplicit()
392 assert(isReg() && "Wrong MachineOperand accessor"); in isDead()
[all …]
/openbsd-src/regress/lib/libpthread/stdfiles/
H A Dstdfiles.c31 assert(stdin_flags != -1); in main()
33 assert(stdout_flags != -1); in main()
35 assert(dup_flags != -1); in main()
37 assert(stderr_flags != -1); in main()
44 assert(fcntl(STDIN_FILENO, F_SETFL, new_flags) != -1); in main()
47 assert(new_flags != -1); in main()
55 assert(new_flags != -1); in main()
63 assert(new_flags != -1); in main()
71 assert(new_flags != -1); in main()
83 assert(close(STDERR_FILENO) != -1); in main()
[all …]

12345678910>>...140