| /netbsd/src/external/bsd/libarchive/dist/libarchive/test/ |
| D | test_write_disk_secure.c | 61 assert((a = archive_write_disk_new()) != NULL); in DEFINE_TEST() 64 assert((ae = archive_entry_new()) != NULL); in DEFINE_TEST() 67 assert(0 == archive_write_header(a, ae)); in DEFINE_TEST() 69 assert(0 == archive_write_finish_entry(a)); in DEFINE_TEST() 72 assert((ae = archive_entry_new()) != NULL); in DEFINE_TEST() 77 assert(0 == archive_write_header(a, ae)); in DEFINE_TEST() 78 assert(0 == archive_write_finish_entry(a)); in DEFINE_TEST() 84 assert(archive_entry_clear(ae) != NULL); in DEFINE_TEST() 87 assert(0 == archive_write_header(a, ae)); in DEFINE_TEST() 88 assert(0 == archive_write_finish_entry(a)); in DEFINE_TEST() [all …]
|
| D | test_write_format_iso9660.c | 47 assert(buff != NULL); in DEFINE_TEST() 50 assert((a = archive_write_new()) != NULL); in DEFINE_TEST() 58 assert((ae = archive_entry_new()) != NULL); in DEFINE_TEST() 74 assert((ae = archive_entry_new()) != NULL); in DEFINE_TEST() 89 assert((ae = archive_entry_new()) != NULL); in DEFINE_TEST() 104 assert((ae = archive_entry_new()) != NULL); in DEFINE_TEST() 125 assert((ae = archive_entry_new()) != NULL); in DEFINE_TEST() 137 assert((ae = archive_entry_new()) != NULL); in DEFINE_TEST() 152 assert((ae = archive_entry_new()) != NULL); in DEFINE_TEST() 168 assert((ae = archive_entry_new()) != NULL); in DEFINE_TEST() [all …]
|
| D | test_write_format_cpio.c | 42 assert((a = archive_write_new()) != NULL); in test_format() 50 assert((ae = archive_entry_new()) != NULL); in test_format() 52 assert(1 == archive_entry_mtime(ae)); in test_format() 53 assert(10 == archive_entry_mtime_nsec(ae)); in test_format() 60 assert((S_IFREG | 0755) == archive_entry_mode(ae)); in test_format() 70 assert((ae = archive_entry_new()) != NULL); in test_format() 72 assert(1 == archive_entry_mtime(ae)); in test_format() 73 assert(10 == archive_entry_mtime_nsec(ae)); in test_format() 80 assert((S_IFREG | 0755) == archive_entry_mode(ae)); in test_format() 90 assert((ae = archive_entry_new()) != NULL); in test_format() [all …]
|
| D | test_read_format_raw.c | 44 assert((a = archive_read_new()) != NULL); in DEFINE_TEST() 55 assert(!archive_entry_size_is_set(ae)); in DEFINE_TEST() 56 assert(!archive_entry_atime_is_set(ae)); in DEFINE_TEST() 57 assert(!archive_entry_ctime_is_set(ae)); in DEFINE_TEST() 58 assert(!archive_entry_mtime_is_set(ae)); in DEFINE_TEST() 72 assert((a = archive_read_new()) != NULL); in DEFINE_TEST() 85 assert(!archive_entry_size_is_set(ae)); in DEFINE_TEST() 86 assert(!archive_entry_atime_is_set(ae)); in DEFINE_TEST() 87 assert(!archive_entry_ctime_is_set(ae)); in DEFINE_TEST() 88 assert(!archive_entry_mtime_is_set(ae)); in DEFINE_TEST() [all …]
|
| D | test_link_resolver.c | 33 assert(NULL != (resolver = archive_entry_linkresolver_new())); in test_linkify_tar() 38 assert(NULL != (entry = archive_entry_new())); in test_linkify_tar() 47 assert(e2 == NULL); in test_linkify_tar() 57 assert(e2 == NULL); in test_linkify_tar() 64 assert(e2 == NULL); in test_linkify_tar() 78 assert(e2 == NULL); in test_linkify_tar() 84 assert(e2 == NULL); in test_linkify_tar() 98 assert(NULL != (resolver = archive_entry_linkresolver_new())); in test_linkify_old_cpio() 103 assert(NULL != (entry = archive_entry_new())); in test_linkify_old_cpio() 112 assert(e2 == NULL); in test_linkify_old_cpio() [all …]
|
| D | test_write_disk.c | 43 assert((ad = archive_write_disk_new()) != NULL); in create() 50 assert(0 == stat(archive_entry_pathname(ae), &st)); in create() 69 assert((ad = archive_write_disk_new()) != NULL); in create_reg_file() 117 assert((ad = archive_write_disk_new()) != NULL); in create_reg_file2() 146 assert((ad = archive_write_disk_new()) != NULL); in create_reg_file3() 156 assert(0 == stat(archive_entry_pathname(ae), &st)); in create_reg_file3() 173 assert((ad = archive_write_disk_new()) != NULL); in create_reg_file4() 182 assert(0 == stat(archive_entry_pathname(ae), &st)); in create_reg_file4() 202 assert((ad = archive_write_disk_new()) != NULL); in create_reg_file_win() 215 assert(NULL != fname); in create_reg_file_win() [all …]
|
| D | test_archive_string.c | 45 assert(NULL != (as).s); \ 57 assert(&s == archive_string_ensure(&s, 5)); in test_archive_string_ensure() 61 assert(&s == archive_string_ensure(&s, EXTENT - 1)); in test_archive_string_ensure() 64 assert(&s == archive_string_ensure(&s, EXTENT)); in test_archive_string_ensure() 67 assert(&s == archive_string_ensure(&s, EXTENT + 1)); in test_archive_string_ensure() 82 assert(&s == archive_strcat(&s, "")); in test_archive_strcat() 86 assert(&s == archive_strcat(&s, "")); in test_archive_strcat() 90 assert(&s == archive_strcat(&s, "fubar")); in test_archive_strcat() 94 assert(&s == archive_strcat(&s, "baz")); in test_archive_strcat() 132 assert(&s == archive_strncat(&s, "snafu", 5)); in test_archive_strncat() [all …]
|
| /netbsd/src/external/bsd/openldap/dist/libraries/libldap/ |
| D | rdwr.c | 86 assert( rwlock != NULL ); in ldap_pvt_thread_rdwr_init() 109 assert( rwlock != NULL ); in ldap_pvt_thread_rdwr_destroy() 112 assert( rw != NULL ); in ldap_pvt_thread_rdwr_destroy() 113 assert( rw->ltrw_valid == LDAP_PVT_THREAD_RDWR_VALID ); in ldap_pvt_thread_rdwr_destroy() 120 assert( rw->ltrw_w_active >= 0 ); in ldap_pvt_thread_rdwr_destroy() 121 assert( rw->ltrw_w_wait >= 0 ); in ldap_pvt_thread_rdwr_destroy() 122 assert( rw->ltrw_r_active >= 0 ); in ldap_pvt_thread_rdwr_destroy() 123 assert( rw->ltrw_r_wait >= 0 ); in ldap_pvt_thread_rdwr_destroy() 154 assert( rwlock != NULL ); in ldap_pvt_thread_rdwr_rlock() 157 assert( rw != NULL ); in ldap_pvt_thread_rdwr_rlock() [all …]
|
| /netbsd/src/sys/lib/libkern/ |
| D | strlist.c | 390 assert(strlist_count(sl, slsize) == 6); in main() 394 assert((cp = strlist_next(sl, slsize, &cursor)) != NULL); in main() 395 assert(strcmp(cp, "zero") == 0); in main() 397 assert((cp = strlist_next(sl, slsize, &cursor)) != NULL); in main() 398 assert(strcmp(cp, "one") == 0); in main() 400 assert((cp = strlist_next(sl, slsize, &cursor)) != NULL); in main() 401 assert(strcmp(cp, "two") == 0); in main() 403 assert((cp = strlist_next(sl, slsize, &cursor)) != NULL); in main() 404 assert(strcmp(cp, "three") == 0); in main() 406 assert((cp = strlist_next(sl, slsize, &cursor)) != NULL); in main() [all …]
|
| /netbsd/src/common/lib/libc/gen/ |
| D | radixtree.c | 132 #define KASSERT assert 1160 assert((radix_tree_sum_node(n) & RADIX_TREE_TAG_MASK) == in radix_tree_dump_node() 1195 assert(radix_tree_lookup_node(t, 0) == NULL); in test1() 1196 assert(radix_tree_lookup_node(t, 1000) == NULL); in test1() 1197 assert(radix_tree_gang_lookup_node(t, 0, results, 3, false) == 0); in test1() 1198 assert(radix_tree_gang_lookup_node(t, 0, results, 3, true) == 0); in test1() 1199 assert(radix_tree_gang_lookup_node(t, 1000, results, 3, false) == 0); in test1() 1200 assert(radix_tree_gang_lookup_node(t, 1000, results, 3, true) == 0); in test1() 1201 assert(radix_tree_gang_lookup_node_reverse(t, 0, results, 3, false) == in test1() 1203 assert(radix_tree_gang_lookup_node_reverse(t, 0, results, 3, true) == in test1() [all …]
|
| /netbsd/src/external/bsd/libarchive/dist/cpio/test/ |
| D | test_cmdline.c | 19 assert(f != NULL); in DEFINE_TEST() 23 assert(0 != systemf("%s -i -Q <empty >1.out 2>1.err", testprog)); in DEFINE_TEST() 27 assert(0 != systemf("%s -if <empty >2.out 2>2.err", testprog)); in DEFINE_TEST() 31 assert(0 != systemf("%s -i -f <empty >3.out 2>3.err", testprog)); in DEFINE_TEST() 35 assert(0 != systemf("%s -i --format <empty >4.out 2>4.err", testprog)); in DEFINE_TEST() 39 assert(0 != systemf("%s -i --badop <empty >5.out 2>5.err", testprog)); in DEFINE_TEST() 43 assert(0 != systemf("%s -i --badopt <empty >6.out 2>6.err", testprog)); in DEFINE_TEST() 47 assert(0 != systemf("%s -i --n <empty >7.out 2>7.err", testprog)); in DEFINE_TEST() 51 assert(0 != systemf("%s --create=arg <empty >8.out 2>8.err", testprog)); in DEFINE_TEST() 55 assert(0 == systemf("%s -i <empty >9.out 2>9.err", testprog)); in DEFINE_TEST() [all …]
|
| D | test_owner_parse.c | 58 assert(0 == owner_parse(ROOT, &owner, &errstr)); in DEFINE_TEST() 59 assert(int_in_list(owner.uid, root_uids, in DEFINE_TEST() 64 assert(0 == owner_parse(ROOT ":", &owner, &errstr)); in DEFINE_TEST() 65 assert(int_in_list(owner.uid, root_uids, in DEFINE_TEST() 67 assert(int_in_list(owner.gid, root_gids, in DEFINE_TEST() 71 assert(0 == owner_parse(ROOT ".", &owner, &errstr)); in DEFINE_TEST() 72 assert(int_in_list(owner.uid, root_uids, in DEFINE_TEST() 74 assert(int_in_list(owner.gid, root_gids, in DEFINE_TEST() 78 assert(0 == owner_parse("111", &owner, &errstr)); in DEFINE_TEST() 83 assert(0 == owner_parse("112:", &owner, &errstr)); in DEFINE_TEST() [all …]
|
| D | test_option_c.c | 101 assert(is_octal(e, 76)); /* Entire header is octal digits. */ in DEFINE_TEST() 103 assert(is_octal(e + 6, 6)); /* dev */ in DEFINE_TEST() 105 assert(is_octal(e + 12, 6)); /* ino */ in DEFINE_TEST() 116 assert(is_octal(e + 30, 6)); /* gid */ in DEFINE_TEST() 123 assert(t <= now); /* File wasn't created in future. */ in DEFINE_TEST() 124 assert(t >= now - 2); /* File was created w/in last 2 secs. */ in DEFINE_TEST() 133 assert(is_octal(e, 76)); /* Entire header is octal digits. */ in DEFINE_TEST() 136 assert(ino != from_octal(e + 12, 6)); /* ino */ in DEFINE_TEST() 149 assert(t <= now); /* File wasn't created in future. */ in DEFINE_TEST() 150 assert(t >= now - 2); /* File was created w/in last 2 secs. */ in DEFINE_TEST() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/ |
| D | siginfo-threads.c | 70 assert (i == 0); in timed_mutex_lock() 77 assert (i == EBUSY); in timed_mutex_lock() 80 assert (i == 0); in timed_mutex_lock() 81 assert (now.tv_sec >= start.tv_sec); in timed_mutex_lock() 94 assert (siginfo->si_signo == signo); in handler() 95 assert (siginfo->si_code == SI_TKILL); in handler() 96 assert (siginfo->si_pid == getpid ()); in handler() 105 assert (0); in handler() 114 assert (0); in handler() 117 assert (0); in handler() [all …]
|
| D | ia64-sigill.c | 58 assert (i == 0); in timed_mutex_lock() 65 assert (i == EBUSY); in timed_mutex_lock() 68 assert (i == 0); in timed_mutex_lock() 69 assert (now.tv_sec >= start.tv_sec); in timed_mutex_lock() 94 assert (i == 0); in thread_func() 96 assert (i == 0); in thread_func() 107 assert (i == 0); in thread_func() 109 assert (i == 0); in thread_func() 114 assert (0); in thread_func() 128 assert (i == 0); in thread_func() [all …]
|
| D | watchthreads-reorder.c | 67 assert (i == 0); in timed_mutex_lock() 74 assert (i == EBUSY); in timed_mutex_lock() 77 assert (i == 0); in timed_mutex_lock() 78 assert (now.tv_sec >= start.tv_sec); in timed_mutex_lock() 100 assert (i == 0); in thread1_func() 102 assert (i == 0); in thread1_func() 109 assert (i == 0); in thread1_func() 128 assert (i == 0); in thread2_func() 130 assert (i == 0); in thread2_func() 137 assert (i == 0); in thread2_func() [all …]
|
| D | infcall-thread-announce.c | 62 assert (res == 0); in thread_function() 70 assert (res == 0); in thread_function() 76 assert (res == 0); in thread_function() 81 assert (res == 0); in thread_function() 103 assert (res == 0); in start_thread() 108 assert (res == 0); in start_thread() 112 assert (res == 0); in start_thread() 117 assert (res == 0); in start_thread() 135 assert (res == 0); in stop_thread() 140 assert (res == 0); in stop_thread() [all …]
|
| /netbsd/src/usr.bin/vndcompress/ |
| D | offtab.c | 70 assert(start < offtab->ot_n_offsets); in offtab_compute_window_size() 85 assert(offtab->ot_window_start < offtab->ot_n_offsets); in offtab_current_window_end() 86 assert(offtab_current_window_size(offtab) <= in offtab_current_window_end() 101 assert(window_start <= offtab->ot_n_offsets); in offtab_compute_window_position() 106 assert(offtab->ot_fdpos <= OFFTAB_MAX_FDPOS); in offtab_compute_window_position() 109 assert(ADD_OK(off_t, offtab->ot_fdpos, window_offset)); in offtab_compute_window_position() 123 assert(offtab->ot_mode == OFFTAB_MODE_READ); in offtab_read_window() 124 assert(ISSET(read_flags, OFFTAB_READ_SEEK) || in offtab_read_window() 139 assert(n_read >= 0); in offtab_read_window() 173 assert(offtab->ot_mode == OFFTAB_MODE_WRITE); in offtab_write_window() [all …]
|
| D | vndcompress.c | 134 assert(MIN_BLOCKSIZE <= S->blocksize); in vndcompress() 135 assert(S->blocksize <= MAX_BLOCKSIZE); in vndcompress() 176 assert(readsize > 0); in vndcompress() 177 assert(readsize <= S->blocksize); in vndcompress() 183 assert(S->offset <= MIN(UINT64_MAX, OFF_MAX)); in vndcompress() 201 assert(ADD_OK(uint32_t, S->blkno, 1)); in vndcompress() 202 assert(ADD_OK(uint64_t, S->offset, complen)); in vndcompress() 203 assert(ADD_OK(off_t, (off_t)S->offset, (off_t)complen)); in vndcompress() 204 assert((S->blkno + 1) < S->n_offsets); in vndcompress() 216 assert(S->blkno == S->n_blocks); in vndcompress() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/gdb/testsuite/gdb.arch/ |
| D | aarch64-dbreg-contents.c | 49 assert (len_mask >= 0x01); in set_watchpoint() 50 assert (len_mask <= 0xff); in set_watchpoint() 56 assert (l == 0); in set_watchpoint() 57 assert (AARCH64_DEBUG_ARCH (dreg_state.dbg_info) >= AARCH64_DEBUG_ARCH_V8); in set_watchpoint() 58 assert (AARCH64_DEBUG_NUM_SLOTS (dreg_state.dbg_info) >= 1); in set_watchpoint() 60 assert (!DR_CONTROL_ENABLED (dreg_state.dbg_regs[0].ctrl)); in set_watchpoint() 62 assert ( DR_CONTROL_ENABLED (dreg_state.dbg_regs[0].ctrl)); in set_watchpoint() 64 assert (DR_CONTROL_LENGTH (dreg_state.dbg_regs[0].ctrl) == 0); in set_watchpoint() 66 assert (DR_CONTROL_LENGTH (dreg_state.dbg_regs[0].ctrl) == len_mask); in set_watchpoint() 79 assert (l == 0); in set_watchpoint() [all …]
|
| /netbsd/src/external/bsd/openldap/dist/libraries/liblber/ |
| D | sockbuf.c | 76 assert( sb != NULL ); in ber_sockbuf_free() 77 assert( SOCKBUF_VALID( sb ) ); in ber_sockbuf_free() 93 assert( sb != NULL ); in ber_sockbuf_ctrl() 94 assert( SOCKBUF_VALID( sb ) ); in ber_sockbuf_ctrl() 185 assert( sb != NULL ); in ber_sockbuf_add_io() 186 assert( SOCKBUF_VALID( sb ) ); in ber_sockbuf_add_io() 223 assert( sb != NULL ); in ber_sockbuf_remove_io() 224 assert( SOCKBUF_VALID( sb ) ); in ber_sockbuf_remove_io() 261 assert( buf != NULL); in ber_pvt_sb_buf_destroy() 275 assert( buf != NULL ); in ber_pvt_sb_grow_buffer() [all …]
|
| /netbsd/src/external/bsd/openldap/dist/libraries/librewrite/ |
| D | context.c | 41 assert( c1 != NULL ); in rewrite_context_cmp() 42 assert( c2 != NULL ); in rewrite_context_cmp() 43 assert( lc1->lc_name != NULL ); in rewrite_context_cmp() 44 assert( lc2->lc_name != NULL ); in rewrite_context_cmp() 64 assert( c1 != NULL ); in rewrite_context_dup() 65 assert( c2 != NULL ); in rewrite_context_dup() 66 assert( lc1->lc_name != NULL ); in rewrite_context_dup() 67 assert( lc2->lc_name != NULL ); in rewrite_context_dup() 83 assert( info != NULL ); in rewrite_context_find() 84 assert( rewriteContext != NULL ); in rewrite_context_find() [all …]
|
| D | session.c | 40 assert( s1 != NULL ); in rewrite_cookie_cmp() 41 assert( s2 != NULL ); in rewrite_cookie_cmp() 42 assert( s1->ls_cookie != NULL ); in rewrite_cookie_cmp() 43 assert( s2->ls_cookie != NULL ); in rewrite_cookie_cmp() 63 assert( s1 != NULL ); in rewrite_cookie_dup() 64 assert( s2 != NULL ); in rewrite_cookie_dup() 65 assert( s1->ls_cookie != NULL ); in rewrite_cookie_dup() 66 assert( s2->ls_cookie != NULL ); in rewrite_cookie_dup() 68 assert( s1->ls_cookie != s2->ls_cookie ); in rewrite_cookie_dup() 85 assert( info != NULL ); in rewrite_session_init() [all …]
|
| D | var.c | 40 assert( v1 != NULL ); in rewrite_var_cmp() 41 assert( v2 != NULL ); in rewrite_var_cmp() 42 assert( v1->lv_name != NULL ); in rewrite_var_cmp() 43 assert( v2->lv_name != NULL ); in rewrite_var_cmp() 62 assert( v1 != NULL ); in rewrite_var_dup() 63 assert( v2 != NULL ); in rewrite_var_dup() 64 assert( v1->lv_name != NULL ); in rewrite_var_dup() 65 assert( v2->lv_name != NULL ); in rewrite_var_dup() 79 assert( var != NULL ); in rewrite_var_free() 81 assert( var->lv_name != NULL ); in rewrite_var_free() [all …]
|
| /netbsd/src/share/examples/puffs/pgfs/ |
| D | pgfs_db.c | 94 assert(PQresultStatus(res) == PGRES_NONFATAL_ERROR || in dumperror() 114 assert(cc != NULL); in getxc() 118 assert(xc->owner == NULL); in getxc() 123 assert(xc->owner == xc->blocker); in getxc() 135 assert(xc->in_trans); in relxc() 136 assert(xc->owner != NULL); in relxc() 154 assert(xc->blocker == NULL); in pqwait() 160 assert(xc->owner == cc); in pqwait() 161 assert(xc->blocker == cc); in pqwait() 244 assert(type == BYTEA || in createcmd() [all …]
|