Home
last modified time | relevance | path

Searched refs:test (Results 1 – 25 of 627) sorted by relevance

12345678910>>...26

/illumos-gate/usr/src/test/os-tests/tests/zen_umc/
H A Dzen_umc_test.c105 zen_umc_test_fabric_one(const umc_fabric_test_t *test) in zen_umc_test_fabric_one() argument
109 (void) printf("Running test: %s\n", test->uft_desc); in zen_umc_test_fabric_one()
110 if (test->uft_compose) { in zen_umc_test_fabric_one()
115 valid = zen_fabric_id_valid_parts(test->uft_decomp, in zen_umc_test_fabric_one()
116 test->uft_sock_id, test->uft_die_id, test->uft_comp_id); in zen_umc_test_fabric_one()
118 if (test->uft_valid) { in zen_umc_test_fabric_one()
128 if (!test->uft_valid) { in zen_umc_test_fabric_one()
134 zen_fabric_id_compose(test->uft_decomp, test->uft_sock_id, in zen_umc_test_fabric_one()
135 test->uft_die_id, test->uft_comp_id, &fab); in zen_umc_test_fabric_one()
136 if (fab != test->uft_fabric_id) { in zen_umc_test_fabric_one()
[all …]
/illumos-gate/usr/src/uts/sun4u/sunfire/io/
H A Dac_test.c100 struct test_info *test; in ac_mem_test_start() local
153 for (test = test_base; test != NULL; test = test->next) { in ac_mem_test_start()
154 if (test->board == softsp->board && in ac_mem_test_start()
155 test->bank == pkt->bank) in ac_mem_test_start()
158 if (test == NULL) { in ac_mem_test_start()
169 if (ddi_copyout(&test->info, pkt->cmd_cfga.private, in ac_mem_test_start()
185 test = kmem_zalloc(sizeof (struct test_info), KM_SLEEP); in ac_mem_test_start()
186 test->va = vmem_alloc(heap_arena, PAGESIZE, VM_SLEEP); in ac_mem_test_start()
189 test->mem_info = mem_info; in ac_mem_test_start()
190 test->board = softsp->board; in ac_mem_test_start()
[all …]
/illumos-gate/usr/src/test/libc-tests/tests/threads/
H A Dthread_name.c50 int test; in main() local
55 test = 1; in main()
60 errx(EXIT_FAILURE, "test %d failed with %d", test, rc); in main()
63 test = 2; in main()
69 errx(EXIT_FAILURE, "test %d failed with %d", test, rc); in main()
74 errx(EXIT_FAILURE, "test %d failed with %d", test, rc); in main()
77 test = 3; in main()
82 errx(EXIT_FAILURE, "test %d failed with %d", test, rc); in main()
85 test = 4; in main()
90 errx(EXIT_FAILURE, "test %d failed with %d", test, rc); in main()
[all …]
/illumos-gate/usr/src/cmd/dtrace/test/tst/sparc/pid/
H A Dtst.br.d.out1 test:entry
2 test:0
3 test:4
4 test:8
5 test:c
6 test:10
7 test:14
8 test:18
9 test:1c
10 test:20
[all …]
/illumos-gate/usr/src/test/os-tests/tests/imc/
H A Dimc_test.c154 imc_test_run_one(const imc_test_case_t *test) in imc_test_run_one() argument
159 imc_print("Running test: %s\n", test->itc_desc); in imc_test_run_one()
160 imc_print("\tDecoding address: 0x%" PRIx64 "\n", test->itc_pa); in imc_test_run_one()
163 pass = imc_decode_pa(test->itc_imc, test->itc_pa, &dec); in imc_test_run_one()
164 if (pass && !test->itc_pass) { in imc_test_run_one()
167 imc_test_strerror(test->itc_fail), in imc_test_run_one()
168 imc_test_strenum(test->itc_fail), in imc_test_run_one()
169 test->itc_fail); in imc_test_run_one()
185 if (test->itc_nodeid != UINT32_MAX && in imc_test_run_one()
186 test->itc_nodeid != dec.ids_nodeid) { in imc_test_run_one()
[all …]
/illumos-gate/usr/src/test/libc-tests/tests/regex/
H A Dtestregex.c574 quote(char* s, int len, unsigned long test) in quote() argument
587 else if (test & TEST_EXPAND) in quote()
592 if (test & TEST_DELIMIT) in quote()
601 if (test & TEST_DELIMIT) in quote()
646 if (test & TEST_DELIMIT) in quote()
654 …ort(char* comment, char* fun, char* re, char* s, int len, char* msg, int flags, unsigned long test) in report() argument
662 quote(re, -1, test|TEST_DELIMIT); in report()
666 quote(s, len, test|TEST_DELIMIT); in report()
669 if (test & TEST_UNSPECIFIED) in report()
717 bad(char* comment, char* re, char* s, int len, unsigned long test) in bad() argument
[all …]
/illumos-gate/usr/src/test/libc-tests/tests/posix_spawn/
H A Dposix_spawn.c205 posix_spawn_test_one_dir(const spawn_dir_test_t *test, int pipes[2], in posix_spawn_test_one_dir() argument
218 if (!test->sdt_pass) { in posix_spawn_test_one_dir()
220 "failed as expected\n", test->sdt_desc, desc); in posix_spawn_test_one_dir()
225 "but expected success", test->sdt_desc, in posix_spawn_test_one_dir()
234 test->sdt_desc, pid); in posix_spawn_test_one_dir()
239 "foud si_code: %d", test->sdt_desc, sig.si_code); in posix_spawn_test_one_dir()
244 if (!test->sdt_pass) { in posix_spawn_test_one_dir()
246 "failed", test->sdt_desc, desc); in posix_spawn_test_one_dir()
252 "success", test->sdt_desc, sig.si_status); in posix_spawn_test_one_dir()
254 } else if (!test->sdt_pass) { in posix_spawn_test_one_dir()
[all …]
/illumos-gate/usr/src/test/os-tests/tests/minttl/
H A Dminttl.c368 ttl_bind_dest(const ttl_test_t *test, int sock, struct sockaddr_storage *dst) in ttl_bind_dest() argument
375 if (test->tt_domain == PF_INET) { in ttl_bind_dest()
381 "to an IPv4 address", test->tt_desc); in ttl_bind_dest()
391 "to an IPv6 address", test->tt_desc); in ttl_bind_dest()
399 test->tt_desc); in ttl_bind_dest()
406 test->tt_desc); in ttl_bind_dest()
418 ttl_connect(const ttl_test_t *test, int port, int src, int dst, int *cfd, in ttl_connect() argument
422 int namelen = test->tt_domain == PF_INET ? sizeof (struct sockaddr_in) : in ttl_connect()
428 warn("TEST FAILED: %s: failed to listen", test->tt_desc); in ttl_connect()
433 warn("TEST FAILED: %s: failed to connect", test->tt_desc); in ttl_connect()
[all …]
/illumos-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Kstat/t/
H A DKstat.t27 # test script for Sun::Solaris::Kstat
58 my ($test, $ks);
59 $test = 2;
61 print("not ok $test: $@");
63 print("ok $test\n");
65 $test++;
69 print("not ok $test: $@");
71 print("ok $test\n");
73 $test++;
81 print("ok $test\n");
[all …]
/illumos-gate/usr/src/test/libc-tests/tests/clocklock/
H A Dclock_lock_rwlock.c83 clock_test_rwlock_invalid_source(const clock_test_t *test, void *prim) in clock_test_rwlock_invalid_source() argument
98 test->ct_desc, c, strerrorname_np(p)); in clock_test_rwlock_invalid_source()
106 test->ct_desc, c, strerrorname_np(p)); in clock_test_rwlock_invalid_source()
114 test->ct_desc, c, strerrorname_np(p)); in clock_test_rwlock_invalid_source()
122 test->ct_desc, c, strerrorname_np(p)); in clock_test_rwlock_invalid_source()
132 clock_test_rwlock_inv_to_ign_abs(const clock_test_t *test, void *prim) in clock_test_rwlock_inv_to_ign_abs() argument
141 "expected success, found %s", test->ct_desc, in clock_test_rwlock_inv_to_ign_abs()
145 test->ct_ops->lo_unlock(rwl); in clock_test_rwlock_inv_to_ign_abs()
152 "expected success, found %s", test->ct_desc, in clock_test_rwlock_inv_to_ign_abs()
156 test->ct_ops->lo_unlock(rwl); in clock_test_rwlock_inv_to_ign_abs()
[all …]
H A Dclock_lock_sem.c79 clock_test_sem_invalid_source(const clock_test_t *test, void *prim) in clock_test_sem_invalid_source() argument
92 "returned %s, not EINVAL", test->ct_desc, c, in clock_test_sem_invalid_source()
100 "0x%x returned %s, not EINVAL", test->ct_desc, c, in clock_test_sem_invalid_source()
110 clock_test_sem_inv_to_ign_abs(const clock_test_t *test, void *prim) in clock_test_sem_inv_to_ign_abs() argument
118 "success, found %s", test->ct_desc, strerrorname_np(errno)); in clock_test_sem_inv_to_ign_abs()
121 test->ct_ops->lo_unlock(sem); in clock_test_sem_inv_to_ign_abs()
127 "success, found %s", test->ct_desc, strerrorname_np(errno)); in clock_test_sem_inv_to_ign_abs()
130 test->ct_ops->lo_unlock(sem); in clock_test_sem_inv_to_ign_abs()
137 clock_test_sem_inv_to_abs(const clock_test_t *test, void *prim) in clock_test_sem_inv_to_abs() argument
144 "returned %s, not EINVAL", test->ct_desc, in clock_test_sem_inv_to_abs()
[all …]
H A Dclock_lock_mutex.c90 clock_test_mutex_invalid_source(const clock_test_t *test, void *prim) in clock_test_mutex_invalid_source() argument
104 "clock 0x%x returned %s, not EINVAL", test->ct_desc, in clock_test_mutex_invalid_source()
113 test->ct_desc, c, strerrorname_np(p)); in clock_test_mutex_invalid_source()
122 clock_test_mutex_inv_to_ign_abs(const clock_test_t *test, void *prim) in clock_test_mutex_inv_to_ign_abs() argument
131 "expected success, found %s", test->ct_desc, in clock_test_mutex_inv_to_ign_abs()
135 test->ct_ops->lo_unlock(mutex); in clock_test_mutex_inv_to_ign_abs()
142 "expected success, found %s", test->ct_desc, in clock_test_mutex_inv_to_ign_abs()
146 test->ct_ops->lo_unlock(mutex); in clock_test_mutex_inv_to_ign_abs()
153 clock_test_mutex_inv_to_abs(const clock_test_t *test, void *prim) in clock_test_mutex_inv_to_abs() argument
161 "timeout returned %s, not EINVAL", test->ct_desc, in clock_test_mutex_inv_to_abs()
[all …]
/illumos-gate/usr/src/test/os-tests/tests/tcpsig/
H A Dtcpsig.c373 tcpsig_bind_dest(const tcpsig_test_t *test, int sock, in tcpsig_bind_dest() argument
381 if (test->tt_domain == PF_INET) { in tcpsig_bind_dest()
384 in->sin_port = htons(test->tt_port); in tcpsig_bind_dest()
387 "to an IPv4 address", test->tt_desc); in tcpsig_bind_dest()
394 in6->sin6_port = htons(test->tt_port); in tcpsig_bind_dest()
397 "to an IPv6 address", test->tt_desc); in tcpsig_bind_dest()
405 test->tt_desc); in tcpsig_bind_dest()
412 test->tt_desc); in tcpsig_bind_dest()
424 tcpsig_connect(const tcpsig_test_t *test, int port, int src, int dst, int *cfd, in tcpsig_connect() argument
428 int namelen = test->tt_domain == PF_INET ? sizeof (struct sockaddr_in) : in tcpsig_connect()
[all …]
/illumos-gate/usr/src/test/nvme-tests/tests/ioctl/
H A Dmulti-reader-lock.c120 bool test; in main() local
131 test = true; in main()
135 test = false; in main()
142 test = false; in main()
149 test = false; in main()
153 if (test) { in main()
167 test = true; in main()
171 test = false; in main()
178 test = false; in main()
185 test = false; in main()
[all …]
H A Dbasic-lock.c78 basic_lock_test(const basic_lock_test_t *test, int fd) in basic_lock_test() argument
84 lock.nil_common.nioc_nsid = test->blt_nsid; in basic_lock_test()
85 lock.nil_ent = test->blt_ent; in basic_lock_test()
86 lock.nil_level = test->blt_level; in basic_lock_test()
90 unlock.niu_common.nioc_nsid = test->blt_nsid; in basic_lock_test()
91 unlock.niu_ent = test->blt_ent; in basic_lock_test()
96 test->blt_desc, i); in basic_lock_test()
100 "driver error 0x%x", test->blt_desc, i, in basic_lock_test()
105 test->blt_desc, i); in basic_lock_test()
114 test->blt_desc, i); in basic_lock_test()
[all …]
/illumos-gate/usr/src/test/os-tests/tests/vfs/
H A Dstatvfs.c131 statvfs_open_file(const fstatvfs_test_t *test) in statvfs_open_file() argument
133 int fd = open(test->ft_path, O_RDONLY); in statvfs_open_file()
136 test->ft_path); in statvfs_open_file()
143 statvfs_open_socket(const fstatvfs_test_t *test) in statvfs_open_socket() argument
161 statvfs_open_uds(const fstatvfs_test_t *test) in statvfs_open_uds() argument
172 statvfs_open_pipe(const fstatvfs_test_t *test) in statvfs_open_pipe() argument
185 statvfs_open_negfd(const fstatvfs_test_t *test) in statvfs_open_negfd() argument
191 statvfs_open_bigfd(const fstatvfs_test_t *test) in statvfs_open_bigfd() argument
197 statvfs_open_portfs(const fstatvfs_test_t *test) in statvfs_open_portfs() argument
215 statvfs_open_door(const fstatvfs_test_t *test) in statvfs_open_door() argument
[all …]
/illumos-gate/usr/src/test/libc-tests/tests/
H A Dstdbit.c1034 stdbit_test_one(const stdbit_test_t *test, const stdbit_ops_t *ops) in stdbit_test_one() argument
1037 uint64_t comp = test->st_res; in stdbit_test_one()
1039 VERIFY3U(test->st_types, !=, 0); in stdbit_test_one()
1040 if ((test->st_types & STDBIT_TEST_U8) != 0) { in stdbit_test_one()
1041 unsigned res = ops->so_uc(test->st_val); in stdbit_test_one()
1045 ops->so_name, test->st_val, res, comp); in stdbit_test_one()
1052 if ((test->st_types & STDBIT_TEST_U16) != 0) { in stdbit_test_one()
1053 unsigned res = ops->so_us(test->st_val); in stdbit_test_one()
1057 ops->so_name, test->st_val, res, comp); in stdbit_test_one()
1064 if ((test->st_types & STDBIT_TEST_U32) != 0) { in stdbit_test_one()
[all …]
H A Daligned_alloc.c83 alloc_test_one(const alloc_test_t *test) in alloc_test_one() argument
86 void *buf = aligned_alloc(test->at_align, test->at_size); in alloc_test_one()
89 if (test->at_errno == 0) { in alloc_test_one()
91 "expected success", test->at_desc, in alloc_test_one()
93 } else if (errno != test->at_errno) { in alloc_test_one()
95 "expected errno %s", test->at_desc, in alloc_test_one()
97 strerrorname_np(test->at_errno)); in alloc_test_one()
99 (void) printf("TEST PASSED: %s\n", test->at_desc); in alloc_test_one()
102 } else if (test->at_errno != 0) { in alloc_test_one()
104 "errno %s", test->at_desc, strerrorname_np(test->at_errno)); in alloc_test_one()
[all …]
H A Dmutex-16200.c133 const mutex_test_t *test = arg; in mutex_test_thr() local
135 if ((test->mt_flags & MUTEX_TEST_F_USE_ATTR) != 0) { in mutex_test_thr()
139 if ((test->mt_flags & MUTEX_TEST_F_SET_TYPE) != 0) { in mutex_test_thr()
141 test->mt_type)); in mutex_test_thr()
145 if ((test->mt_flags & MUTEX_TEST_F_UNLOCK) != 0) { in mutex_test_thr()
146 if ((test->mt_flags & MUTEX_TEST_F_ILLUMOS) != 0) { in mutex_test_thr()
149 VERIFY0(mutex_init(&m, test->mt_type, NULL)); in mutex_test_thr()
161 if ((test->mt_flags & MUTEX_TEST_F_ILLUMOS) != 0) { in mutex_test_thr()
164 VERIFY0(mutex_init(&m, test->mt_type, NULL)); in mutex_test_thr()
223 mutex_test_run_one(const mutex_test_t *test) in mutex_test_run_one() argument
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/channel_program/lua_core/
H A Dnvlist_to_lua.c86 test(const char *testname, boolean_t expect_success, boolean_t expect_match) in test() function
140 test("boolean", B_TRUE, B_FALSE); in run_tests()
143 test("boolean_value", B_FALSE, B_FALSE); in run_tests()
146 test("byte", B_FALSE, B_FALSE); in run_tests()
149 test("int8", B_FALSE, B_FALSE); in run_tests()
152 test("uint8", B_FALSE, B_FALSE); in run_tests()
155 test("int16", B_FALSE, B_FALSE); in run_tests()
158 test("uint16", B_FALSE, B_FALSE); in run_tests()
161 test("int32", B_FALSE, B_FALSE); in run_tests()
164 test("uint32", B_FALSE, B_FALSE); in run_tests()
[all …]
/illumos-gate/usr/src/test/util-tests/tests/libjedec/hex2spd/
H A Dlibjedec_hex2spd.c156 hex2spd_test_one(const char *dir, const hex2spd_test_t *test) in hex2spd_test_one() argument
165 if (snprintf(path, sizeof (path), "%s/%s.spd", dir, test->ht_file) >= in hex2spd_test_one()
169 test->ht_file); in hex2spd_test_one()
183 (void) printf("TEST PASSED: initially parsed %s\n", test->ht_file); in hex2spd_test_one()
190 warnx("TEST FAILED: %s contains errors:", test->ht_file); in hex2spd_test_one()
197 warnx("TEST FAILED: %s flagged as incomplete:", test->ht_file); in hex2spd_test_one()
201 for (const hex2spd_spd_t *spd = &test->ht_checks[0]; in hex2spd_test_one()
217 "lookup key %s", test->ht_file, in hex2spd_test_one()
222 "0x%x, but expected 0x%x", test->ht_file, in hex2spd_test_one()
227 "matches\n", test->ht_file, spd->hs_key); in hex2spd_test_one()
[all …]
/illumos-gate/usr/src/test/os-tests/tests/sockfs/
H A Dso_protocol.c183 so_test_one(const so_prot_test_t *test) in so_test_one() argument
189 s = socket(test->sp_dom, test->sp_type, test->sp_prot); in so_test_one()
192 "domain/type/protocol 0x%x/0x%x/0x%x", test->sp_desc, in so_test_one()
193 test->sp_dom, test->sp_type, test->sp_prot); in so_test_one()
199 warn("TEST FAILED: %s: failed to get SO_DOMAIN", test->sp_desc); in so_test_one()
201 } else if (opt != test->sp_dom) { in so_test_one()
203 test->sp_desc, test->sp_dom, opt); in so_test_one()
207 test->sp_desc); in so_test_one()
212 warn("TEST FAILED: %s: failed to get SO_TYPE", test->sp_desc); in so_test_one()
214 } else if (opt != test->sp_type) { in so_test_one()
[all …]
/illumos-gate/usr/src/test/os-tests/tests/uccid/
H A Datrparse.c564 atr_parse_failed(atr_test_t *test, const char *fmt, ...) in atr_parse_failed() argument
569 (void) fprintf(stderr, "Test \"%s\" failed: ", test->ar_test); in atr_parse_failed()
576 atr_parse_one(atr_data_t *data, atr_test_t *test) in atr_parse_one() argument
586 ret = atr_parse(test->ar_buf, test->ar_len, data); in atr_parse_one()
587 if (ret != test->ar_retval) { in atr_parse_one()
588 atr_parse_failed(test, "found unexpected return " in atr_parse_one()
590 test->ar_retval); in atr_parse_one()
607 if (sup != test->ar_sup) { in atr_parse_one()
608 atr_parse_failed(test, "Found mismatched supported " in atr_parse_one()
609 "protocols: %u, expected: %u", sup, test->ar_sup); in atr_parse_one()
[all …]
/illumos-gate/usr/src/lib/libsqlite/test/
H A Dmemleak.test14 # $Id: memleak.test,v 1.3 2004/02/12 18:46:39 drh Exp $
31 # each round of the test. This number should be constant. If it
37 all.test
38 quick.test
39 malloc.test
40 misuse.test
41 memleak.test
42 btree2.test
43 trans.test
47 attach.test \
[all …]
/illumos-gate/usr/src/lib/libc/amd64/gen/
H A Dstrlen.S60 test %edx, %edx
71 test %edx, %edx /* if no null byte, %edx must be 0 */
77 test %edx, %edx
83 test %edx, %edx
89 test %edx, %edx
113 test %dl, %dl
115 test $0x01, %dl
118 test $0x02, %dl
122 test $0x04, %dl
125 test $0x08, %dl
[all …]

12345678910>>...26