| /xnu-12377.1.9/bsd/tests/ |
| H A D | copyio_tests.c | 135 T_EXPECT_EQ_INT(err, 0, "copyin() with valid parameters should succeed"); in copyin_test() 137 T_EXPECT_EQ_INT(cmp, 0, "copyin() should correctly copy in data"); in copyin_test() 140 T_EXPECT_EQ_INT(err, 0, "copyin() with 0 size should always succeed"); in copyin_test() 143 T_EXPECT_EQ_INT(err, EFAULT, "copyin() from unmapped userspace address should return EFAULT"); in copyin_test() 145 T_EXPECT_EQ_INT(err, EFAULT, "copyin() from partially valid userspace range should return EFAULT"); in copyin_test() 147 T_EXPECT_EQ_INT(err, EFAULT, "copyin() past end of userspace address space should return EFAULT"); in copyin_test() 151 T_EXPECT_EQ_INT(err, 0, "copyin() from kernel address in kernel_task thread should succeed"); in copyin_test() 153 T_EXPECT_EQ_INT(cmp, 0, "copyin() from kernel address should correctly copy in data"); in copyin_test() 155 T_EXPECT_EQ_INT(err, EFAULT, "copyin() from kernel address in other threads should return EFAULT"); in copyin_test() 159 T_EXPECT_EQ_INT(err, EFAULT, "copyin() from write-only address should return EFAULT"); in copyin_test() [all …]
|
| H A D | tree_tests_sysctl.c | 100 …T_EXPECT_EQ_INT(node->rbt_flags & RBT_MASK_IN_USE, 0, "Trying to insert a tree node that is alread… in rb_tree_insert_nodes() 118 …T_EXPECT_EQ_INT(node->rbt_flags & RBT_MASK_IN_USE, 1, "Trying to remove a tree node that is not in… in rb_tree_remove_nodes() 119 T_EXPECT_EQ_INT(node->rbt_id, test_node_ids[idx], "The node id does not match the node index"); in rb_tree_remove_nodes()
|
| /xnu-12377.1.9/tests/ |
| H A D | signal_exit_reason.c | 197 T_EXPECT_EQ_INT(ret, 0, "expect proc_signal_delegate return: %d", ret); in __test_exit_reason_delegate_signal() 201 T_EXPECT_EQ_INT(ret, ESRCH, "expect no such process return: %d", ret); in __test_exit_reason_delegate_signal() 222 T_EXPECT_EQ_INT(ret, 0, "expect proc_terminate_delegate return: %d", ret); in __test_exit_reason_delegate_terminate() 227 T_EXPECT_EQ_INT(ret, ESRCH, "expect no such process return: %d", ret); in __test_exit_reason_delegate_terminate() 231 T_EXPECT_EQ_INT(ret, EPERM, "expected eperm return: %d", ret); in __test_exit_reason_delegate_terminate() 249 T_EXPECT_EQ_INT(ret, 0, "expect proc_terminate_delegate return: %d", ret); in __test_exit_reason_terminate() 254 T_EXPECT_EQ_INT(ret, ESRCH, "expected no such process return: %d", ret); in __test_exit_reason_terminate() 257 T_EXPECT_EQ_INT(ret, EPERM, "expected eperm return: %d", ret); in __test_exit_reason_terminate() 276 T_EXPECT_EQ_INT(ret, 0, "expect proc_signal_with_audittoken return: %d", ret); in __test_exit_reason_signal_with_audittoken() 279 T_EXPECT_EQ_INT(ret, ESRCH, "expect no such process return: %d", ret); in __test_exit_reason_signal_with_audittoken() [all …]
|
| H A D | proc_info.c | 946 T_EXPECT_EQ_INT(c_uniqidinfo->p_orig_ppidversion, p_uniqidinfo->p_idversion, 1157 …T_EXPECT_EQ_INT(p_task_info_new->pti_policy, POLICY_TIMESHARE, "PROC_PIDTASKINFO returned valid va… 1167 T_EXPECT_EQ_INT((p_task_info_new->pti_messages_sent - p_task_info->pti_messages_sent), 0, 1169 T_EXPECT_EQ_INT((p_task_info_new->pti_messages_received - p_task_info->pti_messages_received), 0, 1171 T_EXPECT_EQ_INT(p_task_info_new->pti_priority, p_task_info->pti_priority, 1214 …T_EXPECT_EQ_INT(pall->pbsd.pbi_nice, CONF_NICE_VAL, "PROC_PIDTASKALLINFO returns valid nice value"… 1227 …T_EXPECT_EQ_INT(pall->ptinfo.pti_policy, POLICY_TIMESHARE, "PROC_PIDTASKALLINFO returned valid val… 1237 T_EXPECT_EQ_INT((pall->ptinfo.pti_messages_sent - p_task_info->pti_messages_sent), 0, 1239 T_EXPECT_EQ_INT((pall->ptinfo.pti_messages_received - p_task_info->pti_messages_received), 0, 1241 T_EXPECT_EQ_INT(pall->ptinfo.pti_priority, p_task_info->pti_priority, [all …]
|
| H A D | proc_archinfo.c | 50 …T_EXPECT_EQ_INT(pai.p_cputype, CPU_TYPE_ARM, "PROC_PIDARCHINFO returned valid value for p_cputype"… 52 T_EXPECT_EQ_INT((pai.p_cpusubtype & CPU_SUBTYPE_ARM_ALL), CPU_SUBTYPE_ARM_ALL, 58 …T_EXPECT_EQ_INT(pai.p_cputype, CPU_TYPE_X86, "PROC_PIDARCHINFO returned valid value for p_cputype"…
|
| H A D | kqueue_port_tests.c | 207 T_QUIET; T_EXPECT_EQ_INT(rc, 1, "registration failed"); 208 T_EXPECT_EQ_INT(error, EINVAL, "cannot modify filter flag MACH_RCV_MSG"); 211 T_QUIET; T_EXPECT_EQ_INT(rc, 1, "registration failed"); 212 T_EXPECT_EQ_INT(error, EINVAL, "cannot modify filter flag MACH_RCV_SYNC_PEEK");
|
| H A D | task_vm_info_decompressions.c | 146 T_EXPECT_EQ_INT(0, err, "Detected %d cpus\n", ncpu); 160 T_EXPECT_EQ_INT(0, err, "task_info(TASK_VM_INFO) returned 0"); 161 T_EXPECT_EQ_INT(0, vm_info.decompressions, "Expected 0 decompressions before test starts"); 182 T_QUIET; T_EXPECT_EQ_INT(0, err, "task_info(TASK_VM_INFO) returned 0");
|
| H A D | proc_rlimit.c | 217 T_EXPECT_EQ_INT(0, err, "maxfilesperproc: %llu", maxfilesperproc); 220 T_EXPECT_EQ_INT(0, err, "maxprocperuid: %llu", maxprocperuid); 224 T_EXPECT_EQ_INT(0, err, "maxfiles: %llu", maxfiles); 227 T_EXPECT_EQ_INT(0, err, "maxproc: %llu", maxproc);
|
| H A D | task_info_28439149.c | 24 T_QUIET; T_EXPECT_EQ_INT(exit, 1, "exit"); in do_child() 77 …T_EXPECT_EQ_INT(ret, KERN_INVALID_ARGUMENT, "task info TASK_DYLD_INFO should fail with mach_port_n…
|
| H A D | vm_test_mach_map.c | 2200 T_EXPECT_EQ_INT(info.protection, VM_PROT_DEFAULT, "child: current protection is VM_PROT_DEFAULT"); 2201 T_EXPECT_EQ_INT(info.max_protection, VM_PROT_ALL, "child: maximum protextion is VM_PROT_ALL"); 2246 T_EXPECT_EQ_INT(info.protection, VM_PROT_NONE, "parent: current protection is VM_PROT_NONE"); 2247 T_EXPECT_EQ_INT(info.max_protection, VM_PROT_NONE, "parent: maximum protextion is VM_PROT_NONE"); 2255 T_EXPECT_EQ_INT(ret, pid, "waitpid: child was stopped or terminated");
|
| H A D | net_tuntests.c | 843 T_QUIET; T_EXPECT_EQ_INT(nev, 1, NULL); in xfer_1_packet_singly() 937 T_QUIET; T_EXPECT_EQ_INT(nev, channel_count, NULL); in xfer_1_packet_together()
|
| /xnu-12377.1.9/osfmk/kern/ |
| H A D | machine.c | 1772 T_EXPECT_EQ_INT(err, KERN_INVALID_ARGUMENT, "Can't set timeout for empty region"); in ml_io_timeout_test() 1775 T_EXPECT_EQ_INT(err, KERN_INVALID_ARGUMENT, "Can't set timeout for region > 4096 bytes"); in ml_io_timeout_test() 1778 T_EXPECT_EQ_INT(err, KERN_INVALID_ARGUMENT, "Can't set timeout for overflowed region"); in ml_io_timeout_test() 1781 T_EXPECT_EQ_INT(err, KERN_SUCCESS, "Setting timeout for first VA region should succeed"); in ml_io_timeout_test() 1784 T_EXPECT_EQ_INT(err, KERN_SUCCESS, "Setting timeout for second VA region should succeed"); in ml_io_timeout_test() 1787 T_EXPECT_EQ_INT(err, KERN_INVALID_ARGUMENT, "Can't set timeout for same region twice"); in ml_io_timeout_test() 1790 T_EXPECT_EQ_INT(err, KERN_INVALID_ARGUMENT, "Can't set timeout for overlapping regions"); in ml_io_timeout_test() 1806 T_EXPECT_EQ_INT(err, KERN_NOT_FOUND, "Can't reset timeout for subregion"); in ml_io_timeout_test() 1809 T_EXPECT_EQ_INT(err, KERN_NOT_FOUND, "Can't reset timeout for non-existent region"); in ml_io_timeout_test() 1812 T_EXPECT_EQ_INT(err, KERN_SUCCESS, "Resetting timeout for first VA region should succeed"); in ml_io_timeout_test() [all …]
|
| /xnu-12377.1.9/tests/vm/ |
| H A D | memorystatus_jetsam_zprint_snapshot.c | 275 T_EXPECT_EQ_INT(1, jzs_data_available(), "Test finished: jzs_data_available()");
|
| /xnu-12377.1.9/pexpert/gen/ |
| H A D | bootargs.c | 307 T_EXPECT_EQ_INT(result, test_case->argvalue, in parse_boot_arg_test()
|
| /xnu-12377.1.9/bsd/kern/ |
| H A D | kern_mib.c | 1292 T_EXPECT_EQ_INT(mvfp_info->neon, gARM_AdvSIMD, "neon value should match legacy"); in arm_cpu_capabilities_legacy_test() 1293 …T_EXPECT_EQ_INT(mvfp_info->neon_hpfp, gARM_AdvSIMD_HPFPCvt, "neon hpfp cvt value should match lega… in arm_cpu_capabilities_legacy_test() 1294 T_EXPECT_EQ_INT(mvfp_info->neon_fp16, gARM_FEAT_FP16, "neon fp16 value should match legacy"); in arm_cpu_capabilities_legacy_test()
|
| /xnu-12377.1.9/osfmk/tests/ |
| H A D | ktest.h | 443 #define T_EXPECT_EQ_INT(lhs, rhs, msg, ...) \ macro
|
| H A D | kernel_tests.c | 387 …T_EXPECT_EQ_INT(retval, XT_RET_W_SUCCESS, "%s reported successful handling. Returning from kdb_sto… in xnupost_process_kdb_stop() 400 …T_EXPECT_EQ_INT(retval, XT_PANIC_W_SUCCESS, "%s reported successful testcase. But continuing to kd… in xnupost_process_kdb_stop()
|