/freebsd/lib/msun/tests/ |
H A D | fenv_test.c | 158 ATF_CHECK_EQ(SIGFPE, sig); in trap_handler() 202 ATF_CHECK_EQ(0, memcmp(&env, FE_DFL_ENV, sizeof(env))); in ATF_TC_BODY() 218 ATF_CHECK_EQ(0, fetestexcept(std_except_sets[i])); in ATF_TC_BODY() 224 ATF_CHECK_EQ(excepts, fetestexcept(excepts)); in ATF_TC_BODY() 226 ATF_CHECK_EQ(0, fetestexcept(FE_ALL_EXCEPT)); in ATF_TC_BODY() 229 ATF_CHECK_EQ(excepts, fetestexcept(excepts)); in ATF_TC_BODY() 232 ATF_CHECK_EQ(excepts, (fetestexcept(ALL_STD_EXCEPT) | FE_INEXACT)); in ATF_TC_BODY() 234 ATF_CHECK_EQ(excepts, fetestexcept(ALL_STD_EXCEPT)); in ATF_TC_BODY() 236 ATF_CHECK_EQ(0, feclearexcept(excepts)); in ATF_TC_BODY() 237 ATF_CHECK_EQ(0, fetestexcept(ALL_STD_EXCEPT)); in ATF_TC_BODY() [all …]
|
H A D | ilogb_test.c | 42 ATF_CHECK_EQ(FP_ILOGB0, ilogb(0)); in ATF_TC_BODY() 43 ATF_CHECK_EQ(FP_ILOGBNAN, ilogb(NAN)); in ATF_TC_BODY() 44 ATF_CHECK_EQ(INT_MAX, ilogb(INFINITY)); in ATF_TC_BODY() 48 ATF_CHECK_EQ('\0', *end); in ATF_TC_BODY() 61 ATF_CHECK_EQ(FP_ILOGB0, ilogbf(0)); in ATF_TC_BODY() 62 ATF_CHECK_EQ(FP_ILOGBNAN, ilogbf(NAN)); in ATF_TC_BODY() 63 ATF_CHECK_EQ(INT_MAX, ilogbf(INFINITY)); in ATF_TC_BODY() 67 ATF_CHECK_EQ('\0', *end); in ATF_TC_BODY() 81 ATF_CHECK_EQ(FP_ILOGB0, ilogbl(0)); in ATF_TC_BODY() 82 ATF_CHECK_EQ(FP_ILOGBNAN, ilogbl(NAN)); in ATF_TC_BODY() [all …]
|
/freebsd/contrib/netbsd-tests/lib/libbluetooth/ |
H A D | t_sdp_set.c | 56 ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_BOOL); in ATF_TC_BODY() 58 ATF_CHECK_EQ(test.next[1], 0x01); in ATF_TC_BODY() 60 ATF_CHECK_EQ(test.next[1], 0x00); in ATF_TC_BODY() 63 ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_NIL); in ATF_TC_BODY() 64 ATF_CHECK_EQ(sdp_set_bool(&test, true), false); /* not bool */ in ATF_TC_BODY() 67 ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_BOOL); in ATF_TC_BODY() 68 ATF_CHECK_EQ(sdp_set_bool(&test, true), false); /* no value */ in ATF_TC_BODY() 100 ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_UINT8); in ATF_TC_BODY() 102 ATF_CHECK_EQ(sdp_set_uint(&test, UINT8_MAX + 1), false); /* too big */ in ATF_TC_BODY() 105 ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_NIL); in ATF_TC_BODY() [all …]
|
H A D | t_sdp_get.c | 66 ATF_CHECK_EQ(sdp_data_type(&value), SDP_DATA_UINT16); in ATF_TC_BODY() 67 ATF_CHECK_EQ(sdp_data_size(&value), 3); in ATF_TC_BODY() 70 ATF_CHECK_EQ(sdp_data_type(&value), SDP_DATA_SEQ8); in ATF_TC_BODY() 71 ATF_CHECK_EQ(sdp_data_size(&value), 7); in ATF_TC_BODY() 74 ATF_CHECK_EQ(sdp_data_type(&value), SDP_DATA_SEQ16); in ATF_TC_BODY() 75 ATF_CHECK_EQ(sdp_data_size(&value), 4); in ATF_TC_BODY() 80 ATF_CHECK_EQ(sdp_data_type(&value), SDP_DATA_STR8); in ATF_TC_BODY() 81 ATF_CHECK_EQ(sdp_data_size(&value), 6); in ATF_TC_BODY() 83 ATF_CHECK_EQ(test.next, test.end); in ATF_TC_BODY() 114 ATF_CHECK_EQ(attr, 0x0000); in ATF_TC_BODY() [all …]
|
H A D | t_sdp_data.c | 54 ATF_CHECK_EQ(sdp_data_type(&value), SDP_DATA_NIL); in ATF_TC_BODY() 57 ATF_CHECK_EQ(sdp_data_type(&value), SDP_DATA_UINT8); in ATF_TC_BODY() 59 ATF_CHECK_EQ(test.next, test.end); in ATF_TC_BODY() 94 ATF_CHECK_EQ(sdp_data_size(&value), 1); in ATF_TC_BODY() 97 ATF_CHECK_EQ(sdp_data_size(&value), 2); in ATF_TC_BODY() 100 ATF_CHECK_EQ(sdp_data_size(&value), 3); in ATF_TC_BODY() 103 ATF_CHECK_EQ(sdp_data_size(&value), 5); in ATF_TC_BODY() 106 ATF_CHECK_EQ(sdp_data_size(&value), 2); in ATF_TC_BODY() 109 ATF_CHECK_EQ(sdp_data_size(&value), 2); in ATF_TC_BODY() 112 ATF_CHECK_EQ(sdp_data_size(&value), 4); in ATF_TC_BODY() [all …]
|
H A D | t_bluetooth.c | 49 ATF_CHECK_EQ(bt_aton("0a:0b:0c:0d:0e", &bdaddr), 0); in ATF_TC_BODY() 50 ATF_CHECK_EQ(bt_aton("0a:0b:0c:0d0:0e:0f", &bdaddr), 0); in ATF_TC_BODY() 51 ATF_CHECK_EQ(bt_aton("0a:0b:0c:0d:0e:0f:00", &bdaddr), 0); in ATF_TC_BODY() 52 ATF_CHECK_EQ(bt_aton("0a:0b:0c:0d:0e:0f\n", &bdaddr), 0); in ATF_TC_BODY() 53 ATF_CHECK_EQ(bt_aton(" 0a:0b:0c:0d:0e:0f", &bdaddr), 0); in ATF_TC_BODY() 54 ATF_CHECK_EQ(bt_aton("0a:0b:0x:0d:0e:0f", &bdaddr), 0); in ATF_TC_BODY() 57 ATF_CHECK_EQ(bdaddr.b[0], 0x0f); in ATF_TC_BODY() 58 ATF_CHECK_EQ(bdaddr.b[1], 0x0e); in ATF_TC_BODY() 59 ATF_CHECK_EQ(bdaddr.b[2], 0x0d); in ATF_TC_BODY() 60 ATF_CHECK_EQ(bdaddr.b[3], 0x0c); in ATF_TC_BODY() [all …]
|
/freebsd/tests/sys/kern/ |
H A D | subr_physmem_test.c | 44 ATF_CHECK_EQ(len, 2); in ATF_TC_BODY() 45 ATF_CHECK_EQ(avail[0], 2 * PAGE_SIZE); in ATF_TC_BODY() 46 ATF_CHECK_EQ(avail[1], 3 * PAGE_SIZE); in ATF_TC_BODY() 51 ATF_CHECK_EQ(len, 2); in ATF_TC_BODY() 52 ATF_CHECK_EQ(avail[0], 2 * PAGE_SIZE); in ATF_TC_BODY() 53 ATF_CHECK_EQ(avail[1], 4 * PAGE_SIZE); in ATF_TC_BODY() 58 ATF_CHECK_EQ(len, 2); in ATF_TC_BODY() 59 ATF_CHECK_EQ(avail[0], 2 * PAGE_SIZE); in ATF_TC_BODY() 60 ATF_CHECK_EQ(avail[1], 5 * PAGE_SIZE); in ATF_TC_BODY() 65 ATF_CHECK_EQ(len, 2); in ATF_TC_BODY() [all …]
|
H A D | reaper.c | 81 ATF_CHECK_EQ(3, r); in ATF_TC_BODY() 89 ATF_CHECK_EQ(2, r); in ATF_TC_BODY() 128 ATF_CHECK_EQ(3, r); in ATF_TC_BODY() 133 ATF_CHECK_EQ(2, r); in ATF_TC_BODY() 195 ATF_CHECK_EQ(SIGCHLD, info.si_signo); in ATF_TC_BODY() 196 ATF_CHECK_EQ(CLD_EXITED, info.si_code); in ATF_TC_BODY() 197 ATF_CHECK_EQ(3, info.si_status); in ATF_TC_BODY() 198 ATF_CHECK_EQ(child, info.si_pid); in ATF_TC_BODY() 208 ATF_CHECK_EQ(SIGCHLD, info.si_signo); in ATF_TC_BODY() 209 ATF_CHECK_EQ(CLD_EXITED, info.si_code); in ATF_TC_BODY() [all …]
|
/freebsd/contrib/netbsd-tests/dev/cgd/ |
H A D | t_cgd_blowfish.c | 2070 ATF_CHECK_EQ(write_testvec(cgdfd, &bf_cbc_128_1_vectors[0]), 0); in ATF_TC_BODY() 2071 ATF_CHECK_EQ(write_testvec(cgdfd, &bf_cbc_128_1_vectors[1]), 0); in ATF_TC_BODY() 2072 ATF_CHECK_EQ(write_testvec(cgdfd, &bf_cbc_128_1_vectors[2]), 0); in ATF_TC_BODY() 2073 ATF_CHECK_EQ(write_testvec(cgdfd, &bf_cbc_128_1_vectors[3]), 0); in ATF_TC_BODY() 2079 ATF_CHECK_EQ(read_testvec(cgdfd, &bf_cbc_128_1_vectors[0]), 0); in ATF_TC_BODY() 2080 ATF_CHECK_EQ(read_testvec(cgdfd, &bf_cbc_128_1_vectors[1]), 0); in ATF_TC_BODY() 2081 ATF_CHECK_EQ(read_testvec(cgdfd, &bf_cbc_128_1_vectors[2]), 0); in ATF_TC_BODY() 2082 ATF_CHECK_EQ(read_testvec(cgdfd, &bf_cbc_128_1_vectors[3]), 0); in ATF_TC_BODY() 2087 ATF_CHECK_EQ(check_testvec(dkfd, &bf_cbc_128_1_vectors[0]), 0); in ATF_TC_BODY() 2088 ATF_CHECK_EQ(check_testvec(dkfd, &bf_cbc_128_1_vectors[1]), 0); in ATF_TC_BODY() [all …]
|
H A D | t_cgd_aes.c | 3250 ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_128_1_vectors[0]), 0); in ATF_TC_BODY() 3251 ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_128_1_vectors[1]), 0); in ATF_TC_BODY() 3252 ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_128_1_vectors[2]), 0); in ATF_TC_BODY() 3253 ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_128_1_vectors[3]), 0); in ATF_TC_BODY() 3258 ATF_CHECK_EQ(check_testvec(dkfd, &aes_cbc_128_1_vectors[0]), 0); in ATF_TC_BODY() 3259 ATF_CHECK_EQ(check_testvec(dkfd, &aes_cbc_128_1_vectors[1]), 0); in ATF_TC_BODY() 3260 ATF_CHECK_EQ(check_testvec(dkfd, &aes_cbc_128_1_vectors[2]), 0); in ATF_TC_BODY() 3261 ATF_CHECK_EQ(check_testvec(dkfd, &aes_cbc_128_1_vectors[3]), 0); in ATF_TC_BODY() 3297 ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_128_8_vectors[0]), 0); in ATF_TC_BODY() 3298 ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_128_8_vectors[1]), 0); in ATF_TC_BODY() [all …]
|
H A D | t_cgd_3des.c | 834 ATF_CHECK_EQ(write_testvec(cgdfd, &c3des_cbc_192_1_vectors[0]), 0); in ATF_TC_BODY() 835 ATF_CHECK_EQ(write_testvec(cgdfd, &c3des_cbc_192_1_vectors[1]), 0); in ATF_TC_BODY() 836 ATF_CHECK_EQ(write_testvec(cgdfd, &c3des_cbc_192_1_vectors[2]), 0); in ATF_TC_BODY() 837 ATF_CHECK_EQ(write_testvec(cgdfd, &c3des_cbc_192_1_vectors[3]), 0); in ATF_TC_BODY() 843 ATF_CHECK_EQ(read_testvec(cgdfd, &c3des_cbc_192_1_vectors[0]), 0); in ATF_TC_BODY() 844 ATF_CHECK_EQ(read_testvec(cgdfd, &c3des_cbc_192_1_vectors[1]), 0); in ATF_TC_BODY() 845 ATF_CHECK_EQ(read_testvec(cgdfd, &c3des_cbc_192_1_vectors[2]), 0); in ATF_TC_BODY() 846 ATF_CHECK_EQ(read_testvec(cgdfd, &c3des_cbc_192_1_vectors[3]), 0); in ATF_TC_BODY() 851 ATF_CHECK_EQ(check_testvec(dkfd, &c3des_cbc_192_1_vectors[0]), 0); in ATF_TC_BODY() 852 ATF_CHECK_EQ(check_testvec(dkfd, &c3des_cbc_192_1_vectors[1]), 0); in ATF_TC_BODY() [all …]
|
/freebsd/lib/libcam/tests/ |
H A D | cam_test.c | 43 ATF_CHECK_EQ(0, cam_strmatch("foo", "foo", 3)); in ATF_TC_BODY() 48 ATF_CHECK_EQ(0, cam_strmatch("fooxuehfxeuf", "foo", 3)); in ATF_TC_BODY() 52 ATF_CHECK_EQ(0, cam_strmatch("foo ", "foo", 16)); in ATF_TC_BODY() 55 ATF_CHECK_EQ(0, cam_strmatch("foobar", "foo*", 6)); in ATF_TC_BODY() 56 ATF_CHECK_EQ(0, cam_strmatch("foobar", "*bar", 6)); in ATF_TC_BODY() 58 ATF_CHECK_EQ(0, cam_strmatch("foobarbaz", "*bar*", 9)); in ATF_TC_BODY() 60 ATF_CHECK_EQ(0, cam_strmatch("foo\0bar", "foo*", 7)); in ATF_TC_BODY() 62 ATF_CHECK_EQ(0, cam_strmatch("foo", "foo*", 3)); in ATF_TC_BODY() 67 ATF_CHECK_EQ(0, cam_strmatch("foobar", "foo?ar", 6)); in ATF_TC_BODY() 70 ATF_CHECK_EQ(0, cam_strmatch("foo\0bar", "foo?bar", 7)); in ATF_TC_BODY() [all …]
|
/freebsd/contrib/netbsd-tests/lib/libppath/ |
H A D | t_ppath.c | 51 ATF_CHECK_EQ(nppath, 0); in assert_no_ppath_extant() 57 ATF_CHECK_EQ(nppath_component, 0); in assert_no_ppath_component_extant() 113 ATF_CHECK_EQ(rp, p); in ATF_TC_BODY() 117 ATF_CHECK_EQ(rp, NULL); in ATF_TC_BODY() 120 ATF_CHECK_EQ(rp, NULL); in ATF_TC_BODY() 153 ATF_CHECK_EQ(rp, p); in ATF_TC_BODY() 158 ATF_CHECK_EQ(rp, p); in ATF_TC_BODY() 159 ATF_CHECK_EQ(rpc, pc); in ATF_TC_BODY() 164 ATF_CHECK_EQ(rp, NULL); in ATF_TC_BODY() 166 ATF_CHECK_EQ(rp, NULL); in ATF_TC_BODY() [all …]
|
/freebsd/tests/sys/netinet/ |
H A D | socket_afinet.c | 66 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY() 86 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY() 106 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY() 113 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY() 115 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY() 118 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY() 124 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY() 132 ATF_CHECK_EQ(1, rc); in ATF_TC_BODY() 133 ATF_CHECK_EQ(POLLOUT, pfd.revents); in ATF_TC_BODY() 137 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY() [all …]
|
/freebsd/contrib/netbsd-tests/sys/uvm/ |
H A D | t_uvm_physseg.c | 497 ATF_CHECK_EQ(npages1 in ATF_TC_BODY() 579 ATF_CHECK_EQ(atop(FIVEONETWO_KILO), uvmexp.npages); in ATF_TC_BODY() 651 ATF_CHECK_EQ(1, uvm_physseg_get_entries()); in ATF_TC_BODY() 664 ATF_CHECK_EQ(2, uvm_physseg_get_entries()); in ATF_TC_BODY() 695 ATF_CHECK_EQ(1, uvm_physseg_get_entries()); in ATF_TC_BODY() 712 ATF_CHECK_EQ(2, uvm_physseg_get_entries()); in ATF_TC_BODY() 736 ATF_CHECK_EQ(UVM_PHYSSEG_TYPE_INVALID_EMPTY, uvm_physseg_get_prev(upm)); in ATF_TC_BODY() 759 ATF_CHECK_EQ(VALID_START_PFN_1, uvm_physseg_get_start(upm)); in ATF_TC_BODY() 760 ATF_CHECK_EQ(VALID_END_PFN_1, uvm_physseg_get_end(upm)); in ATF_TC_BODY() 914 ATF_CHECK_EQ(0, uvmexp.npages); [all …]
|
/freebsd/tests/sys/sys/ |
H A D | qmath_test.c | 81 ATF_CHECK_EQ(sizeof(s8) << 3, Q_NTBITS(s8)); in ATF_TC_BODY() 82 ATF_CHECK_EQ(QTEST_RPSHFT, Q_NFBITS(s8)); in ATF_TC_BODY() 83 ATF_CHECK_EQ(QTEST_INTBITS(s8), Q_NIBITS(s8)); in ATF_TC_BODY() 84 ATF_CHECK_EQ(QTEST_QITRUNC(s8, INT8_MAX), Q_IMAXVAL(s8)); in ATF_TC_BODY() 85 ATF_CHECK_EQ(-Q_IMAXVAL(s8), Q_IMINVAL(s8)); in ATF_TC_BODY() 97 ATF_CHECK_EQ(sizeof(s16) << 3, Q_NTBITS(s16)); in ATF_TC_BODY() 98 ATF_CHECK_EQ(QTEST_RPSHFT, Q_NFBITS(s16)); in ATF_TC_BODY() 99 ATF_CHECK_EQ(QTEST_INTBITS(s16), Q_NIBITS(s16)); in ATF_TC_BODY() 100 ATF_CHECK_EQ(QTEST_QITRUNC(s16, INT16_MAX), Q_IMAXVAL(s16)); in ATF_TC_BODY() 101 ATF_CHECK_EQ(-Q_IMAXVAL(s16), Q_IMINVAL(s16)); in ATF_TC_BODY() [all …]
|
/freebsd/lib/libc/tests/stdio/ |
H A D | sscanf_test.c | 154 ATF_CHECK_EQ(expret, ret); \ 156 ATF_CHECK_EQ(expval, val); \ 157 ATF_CHECK_EQ(explen, len); \ 252 ATF_CHECK_EQ(1, sscanf(x00, "%w" #N "i", &i)); \ in ATF_TC_BODY() 253 ATF_CHECK_EQ(0, i); \ in ATF_TC_BODY() 254 ATF_CHECK_EQ(1, sscanf(x7f, "%w" #N "i", &i)); \ in ATF_TC_BODY() 255 ATF_CHECK_EQ(imin, i); \ in ATF_TC_BODY() 256 ATF_CHECK_EQ(1, sscanf(x00, "%w" #N "x", &u)); \ in ATF_TC_BODY() 257 ATF_CHECK_EQ(0, u); \ in ATF_TC_BODY() 258 ATF_CHECK_EQ(1, sscanf(xff, "%w" #N "x", &u)); \ in ATF_TC_BODY() [all …]
|
H A D | flushlbuf_test.c | 63 ATF_CHECK_EQ(BUFSIZE, i); in ATF_TC_BODY() 64 ATF_CHECK_EQ(seq[i - 1], buf[BUFSIZE - 1]); in ATF_TC_BODY() 65 ATF_CHECK_EQ(1, ret); in ATF_TC_BODY() 66 ATF_CHECK_EQ(0, s.pos); in ATF_TC_BODY() 77 ATF_CHECK_EQ(s.len, s.pos); in ATF_TC_BODY() 86 ATF_CHECK_EQ(BUFSIZE + s.len, i); in ATF_TC_BODY() 87 ATF_CHECK_EQ(seq[i - 1], buf[BUFSIZE - 1]); in ATF_TC_BODY() 88 ATF_CHECK_EQ(0, buf[BUFSIZE]); in ATF_TC_BODY() 95 ATF_CHECK_EQ(0, buf[BUFSIZE]); in ATF_TC_BODY() 118 ATF_CHECK_EQ(BUFSIZE, i); in ATF_TC_BODY() [all …]
|
H A D | swscanf_test.c | 157 ATF_CHECK_EQ(expret, ret); \ 159 ATF_CHECK_EQ(expval, val); \ 160 ATF_CHECK_EQ(explen, len); \ 255 ATF_CHECK_EQ(1, swscanf(x00, L"%w" L(#N) L"i", &i)); \ in ATF_TC_BODY() 256 ATF_CHECK_EQ(0, i); \ in ATF_TC_BODY() 257 ATF_CHECK_EQ(1, swscanf(x7f, L"%w" L(#N) L"i", &i)); \ in ATF_TC_BODY() 258 ATF_CHECK_EQ(imin, i); \ in ATF_TC_BODY() 259 ATF_CHECK_EQ(1, swscanf(x00, L"%w" L(#N) L"x", &u)); \ in ATF_TC_BODY() 260 ATF_CHECK_EQ(0, u); \ in ATF_TC_BODY() 261 ATF_CHECK_EQ(1, swscanf(xff, L"%w" L(#N) L"x", &u)); \ in ATF_TC_BODY() [all …]
|
/freebsd/contrib/netbsd-tests/lib/librefuse/ |
H A D | t_refuse_opt.c | 194 ATF_CHECK_EQ(config.number, 0); in ATF_TC_BODY() 195 ATF_CHECK_EQ(config.string, NULL); in ATF_TC_BODY() 196 ATF_CHECK_EQ(config.nonopt, NULL); in ATF_TC_BODY() 217 ATF_CHECK_EQ(config.number, 0); in ATF_TC_BODY() 218 ATF_CHECK_EQ(config.string, NULL); in ATF_TC_BODY() 219 ATF_CHECK_EQ(config.nonopt, NULL); in ATF_TC_BODY() 220 ATF_CHECK_EQ(args.argc, 4); in ATF_TC_BODY() 246 ATF_CHECK_EQ(config.number, 1); in ATF_TC_BODY() 248 ATF_CHECK_EQ(config.nonopt, NULL); in ATF_TC_BODY() 249 ATF_CHECK_EQ(args.argc, 2); in ATF_TC_BODY() [all …]
|
/freebsd/lib/libc/tests/stdlib/ |
H A D | qsort_s_test.c | 127 ATF_CHECK_EQ(b[0], 81); in ATF_TC_BODY() 128 ATF_CHECK_EQ(b[1], 4); in ATF_TC_BODY() 129 ATF_CHECK_EQ(b[2], 7); in ATF_TC_BODY() 143 ATF_CHECK_EQ(b[0], 81); in ATF_TC_BODY() 144 ATF_CHECK_EQ(b[1], 4); in ATF_TC_BODY() 145 ATF_CHECK_EQ(b[2], 7); in ATF_TC_BODY() 159 ATF_CHECK_EQ(b[0], 81); in ATF_TC_BODY() 160 ATF_CHECK_EQ(b[1], 4); in ATF_TC_BODY() 161 ATF_CHECK_EQ(b[2], 7); in ATF_TC_BODY() 175 ATF_CHECK_EQ(b[0], 81); in ATF_TC_BODY() [all …]
|
/freebsd/contrib/netbsd-tests/include/sys/ |
H A D | t_bootblock.c | 46 ATF_CHECK_EQ(512, sizeof(struct mbr_sector)); in ATF_TC_BODY() 48 ATF_CHECK_EQ(MBR_BPB_OFFSET, offsetof(struct mbr_sector, mbr_bpb)); in ATF_TC_BODY() 49 ATF_CHECK_EQ(MBR_BS_OFFSET, offsetof(struct mbr_sector, mbr_bootsel)); in ATF_TC_BODY() 51 ATF_CHECK_EQ(440, offsetof(struct mbr_sector, mbr_dsn)); in ATF_TC_BODY() 53 ATF_CHECK_EQ(446, MBR_PART_OFFSET); in ATF_TC_BODY() 54 ATF_CHECK_EQ(MBR_PART_OFFSET, offsetof(struct mbr_sector, mbr_parts)); in ATF_TC_BODY() 56 ATF_CHECK_EQ(510, MBR_MAGIC_OFFSET); in ATF_TC_BODY() 57 ATF_CHECK_EQ(MBR_MAGIC_OFFSET, offsetof(struct mbr_sector, mbr_magic)); in ATF_TC_BODY() 63 ATF_CHECK_EQ(16, sizeof(struct mbr_partition)); in ATF_TC_BODY()
|
/freebsd/contrib/netbsd-tests/lib/libc/tls/ |
H A D | t_tls_dynamic.c | 70 ATF_CHECK_EQ(var1, 1); in testf() 71 ATF_CHECK_EQ(var2, 0); in testf() 73 ATF_CHECK_EQ(var1, 2); in testf() 74 ATF_CHECK_EQ(var2, 2); in testf() 76 ATF_CHECK_EQ(var1, 3); in testf() 77 ATF_CHECK_EQ(var2, 3); in testf() 78 ATF_CHECK_EQ(var3, &optind); in testf() 79 ATF_CHECK_EQ(var4, &var4_helper); in testf() 80 ATF_CHECK_EQ(dso_var1, getpid); in testf()
|
H A D | t_tls_dlopen.c | 69 ATF_CHECK_EQ(var1, 1); in testf() 70 ATF_CHECK_EQ(var2, 0); in testf() 71 ATF_CHECK_EQ(var3, &optind); in testf() 72 ATF_CHECK_EQ(var4, &var4_helper); in testf() 74 ATF_CHECK_EQ(var1, 2); in testf() 75 ATF_CHECK_EQ(var2, 2); in testf() 77 ATF_CHECK_EQ(var1, 3); in testf() 78 ATF_CHECK_EQ(var2, 3); in testf() 79 ATF_CHECK_EQ(var3, &optind); in testf()
|
/freebsd/contrib/netbsd-tests/lib/libc/string/ |
H A D | t_strspn.c | 46 ATF_CHECK_EQ(strspn("abcdefghijklmnop", ""), 0); in ATF_TC_BODY() 47 ATF_CHECK_EQ(strspn("abcdefghijklmnop", "a"), 1); in ATF_TC_BODY() 48 ATF_CHECK_EQ(strspn("abcdefghijklmnop", "b"), 0); in ATF_TC_BODY() 49 ATF_CHECK_EQ(strspn("abcdefghijklmnop", "ab"), 2); in ATF_TC_BODY() 50 ATF_CHECK_EQ(strspn("abcdefghijklmnop", "abc"), 3); in ATF_TC_BODY() 51 ATF_CHECK_EQ(strspn("abcdefghijklmnop", "abce"), 3); in ATF_TC_BODY() 52 ATF_CHECK_EQ(strspn("abcdefghijklmnop", "abcdefghijklmnop"), 16); in ATF_TC_BODY()
|