/openbsd-src/gnu/usr.bin/perl/ |
H A D | proto.h | 26 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/lib/libfido2/src/ |
H A D | assert.c | 17 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 D | fuse-opt-parse.c | 18 #include <assert.h> 109 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() [all …]
|
H A D | fuse-opt-match.c | 18 #include <assert.h> 49 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() [all …]
|
/openbsd-src/regress/sys/kern/signal/sigio/ |
H A D | sigio_common.c | 21 #include <assert.h> 40 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() [all …]
|
/openbsd-src/regress/lib/libm/fenv/ |
H A D | fenv.c | 35 #include <assert.h> 139 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() [all …]
|
/openbsd-src/regress/lib/libcrypto/utf8/ |
H A D | utf8test.c | 31 #define ASSERT(x) \ macro 52 ASSERT(ret == 0); in main() 53 ASSERT(value == UNCHANGED); in main() 59 ASSERT(ret == 1); in main() 60 ASSERT(value == i); in main() 63 ASSERT(ret == 1); in main() 64 ASSERT(value == i); in main() 78 ASSERT(ret == -2); in main() 79 ASSERT(value == UNCHANGED); in main() 85 ASSERT(ret == -2); in main() [all …]
|
/openbsd-src/regress/lib/libm/round/ |
H A D | round.c | 5 #include <assert.h> 37 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() [all …]
|
/openbsd-src/regress/lib/libm/modf/ |
H A D | modf_test.c | 7 #include <assert.h> 16 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() [all …]
|
/openbsd-src/lib/libfido2/man/ |
H A D | fido_assert_new.3 | 42 .Fn fido_assert_count "const fido_assert_t *assert" 44 .Fn fido_assert_rp_id "const fido_assert_t *assert" 46 .Fn fido_assert_user_display_name "const fido_assert_t *assert" "size_t idx" 48 .Fn fido_assert_user_icon "const fido_assert_t *assert" "size_t idx" 50 .Fn fido_assert_user_name "const fido_assert_t *assert" "size_t idx" 52 .Fn fido_assert_authdata_ptr "const fido_assert_t *assert" "size_t idx" 54 .Fn fido_assert_clientdata_hash_ptr "const fido_assert_t *assert" 56 .Fn fido_assert_blob_ptr "const fido_assert_t *assert" "size_t idx" 58 .Fn fido_assert_hmac_secret_ptr "const fido_assert_t *assert" "size_t idx" 60 .Fn fido_assert_largeblob_key_ptr "const fido_assert_t *assert" "size_t idx" [all …]
|
H A D | fido_assert_set_authdata.3 | 32 .Fn fido_assert_set_authdata "fido_assert_t *assert" "size_t idx" "const unsigned char *ptr" "size_… 34 .Fn fido_assert_set_authdata_raw "fido_assert_t *assert" "size_t idx" "const unsigned char *ptr" "s… 36 .Fn fido_assert_set_clientdata "fido_assert_t *assert" "const unsigned char *ptr" "size_t len" 38 .Fn fido_assert_set_clientdata_hash "fido_assert_t *assert" "const unsigned char *ptr" "size_t len" 40 .Fn fido_assert_set_count "fido_assert_t *assert" "size_t n" 42 .Fn fido_assert_set_extensions "fido_assert_t *assert" "int flags" 44 .Fn fido_assert_set_hmac_salt "fido_assert_t *assert" "const unsigned char *ptr" "size_t len" 46 .Fn fido_assert_set_hmac_secret "fido_assert_t *assert" "size_t idx" "const unsigned char *ptr" "si… 48 .Fn fido_assert_set_up "fido_assert_t *assert" "fido_opt_t up" 50 .Fn fido_assert_set_uv "fido_assert_t *assert" "fido_opt_t uv" [all …]
|
/openbsd-src/usr.sbin/npppd/common/ |
H A D | slist_test.c | 46 #define ASSERT(x) \ macro 92 ASSERT(sl.list_size == 256); in test_01a() 110 ASSERT((int)slist_get(l, i) == i + f); in test_01a() 119 ASSERT((int)slist_get(l, i) == i); in test_01a() 127 ASSERT((int)slist_get(l, i) == i); in test_01a() 130 ASSERT((int)slist_get(l, slist_length(l) - 1) == 127); in test_01a() 134 ASSERT(slist_length(l) == 0); in test_01a() 156 ASSERT((int)slist_get(&sl, 127) == 255); in test_01() 157 ASSERT((int)slist_get(&sl, 254) == 129 + 253); in test_01() 158 ASSERT((int)slist_length(&sl) == 255); in test_01() [all …]
|
/openbsd-src/regress/sys/kern/futex/ |
H A D | futex.c | 23 #include <assert.h> 51 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() [all …]
|
/openbsd-src/regress/sys/kern/poll/ |
H A D | poll_iocond.c | 32 #include <assert.h> 304 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() [all …]
|
/openbsd-src/regress/sys/kern/select/ |
H A D | select_iocond.c | 33 #include <assert.h> 305 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() [all …]
|
/openbsd-src/regress/lib/libm/nextafter/ |
H A D | nextafter.c | 7 #include <assert.h> 18 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() [all …]
|
/openbsd-src/regress/lib/libc/ldexp/ |
H A D | ldexp_test.c | 19 #include <assert.h> 32 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() [all …]
|
/openbsd-src/regress/lib/libm/rint/ |
H A D | rint.c | 5 #include <assert.h> 37 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() [all …]
|
/openbsd-src/regress/lib/libc/fpclassify/ |
H A D | fpclassify.c | 30 #include <assert.h> 39 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() [all …]
|
/openbsd-src/regress/lib/libc/modf/ |
H A D | modf_test.c | 3 #include <assert.h> 17 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() [all …]
|
/openbsd-src/regress/lib/libpthread/errno/ |
H A D | errno.c | 37 ASSERT(state == new_state - 1); in set_state() 60 ASSERT(signal == SIGUSR1); in act_handler() 63 ASSERT(&errno == main_errno); in act_handler() 65 ASSERT(pthread_equal(t1_tid, pthread_self())); in act_handler() 68 ASSERT(&errno == t1_errno); in act_handler() 70 ASSERT(pthread_equal(t1_tid, pthread_self())); in act_handler() 74 ASSERT(&errno == t2_errno); in act_handler() 76 ASSERT(pthread_equal(t2_tid, pthread_self())); in act_handler() 86 ASSERT(t1_errno != main_errno); in tmain() 87 ASSERT(*t1_errno == 0); in tmain() [all …]
|
/openbsd-src/regress/lib/libm/lgamma/ |
H A D | lgamma.c | 9 #include <assert.h> 17 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() [all …]
|
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/ |
H A D | eeprof-1.c | 1 #define ASSERT(X) if (!(X)) abort (); macro 12 ASSERT (last_fn_entered == foo); in foo() 17 ASSERT (entry_calls == 1 && exit_calls == 0); in foo2() 18 ASSERT (last_fn_entered == foo2); in foo2() 20 ASSERT (entry_calls == 2 && exit_calls == 1); in foo2() 21 ASSERT (last_fn_entered == foo); in foo2() 22 ASSERT (last_fn_exited == foo); in foo2() 28 ASSERT (entry_calls == 2 && exit_calls == 2); in nfoo() 29 ASSERT (last_fn_entered == foo); in nfoo() 30 ASSERT (last_fn_exited == foo2); in nfoo() [all …]
|
/openbsd-src/gnu/llvm/llvm/bindings/python/llvm/tests/ |
H A D | test_object.py | 23 assert isinstance(section, Section) 24 assert isinstance(section.name, str) 25 assert isinstance(section.size, Integral) 26 assert isinstance(section.contents, str) 27 assert isinstance(section.address, Integral) 28 assert len(section.contents) == section.size 41 assert isinstance(symbol, Symbol) 42 assert isinstance(symbol.name, str) 43 assert isinstance(symbol.address, Integral) 44 assert isinstance(symbol.size, Integral) [all …]
|
/openbsd-src/regress/lib/libc/strchr/ |
H A D | strchrtest.c | 19 #include <assert.h> 40 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() [all …]
|