| /xnu-11215.81.4/bsd/tests/ |
| H A D | copyio_tests.c | 134 T_EXPECT_EQ_INT(err, 0, "copyin() with valid parameters should succeed"); in copyin_test() 136 T_EXPECT_EQ_INT(cmp, 0, "copyin() should correctly copy in data"); in copyin_test() 139 T_EXPECT_EQ_INT(err, 0, "copyin() with 0 size should always succeed"); in copyin_test() 142 T_EXPECT_EQ_INT(err, EFAULT, "copyin() from unmapped userspace address should return EFAULT"); in copyin_test() 144 T_EXPECT_EQ_INT(err, EFAULT, "copyin() from partially valid userspace range should return EFAULT"); in copyin_test() 146 T_EXPECT_EQ_INT(err, EFAULT, "copyin() past end of userspace address space should return EFAULT"); in copyin_test() 150 T_EXPECT_EQ_INT(err, 0, "copyin() from kernel address in kernel_task thread should succeed"); in copyin_test() 152 T_EXPECT_EQ_INT(cmp, 0, "copyin() from kernel address should correctly copy in data"); in copyin_test() 154 T_EXPECT_EQ_INT(err, EFAULT, "copyin() from kernel address in other threads should return EFAULT"); in copyin_test() 158 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-11215.81.4/tests/ |
| H A D | proc_info.c | 1074 …T_EXPECT_EQ_INT(p_task_info_new->pti_policy, POLICY_TIMESHARE, "PROC_PIDTASKINFO returned valid va… 1084 T_EXPECT_EQ_INT((p_task_info_new->pti_messages_sent - p_task_info->pti_messages_sent), 0, 1086 T_EXPECT_EQ_INT((p_task_info_new->pti_messages_received - p_task_info->pti_messages_received), 0, 1088 T_EXPECT_EQ_INT(p_task_info_new->pti_priority, p_task_info->pti_priority, 1129 …T_EXPECT_EQ_INT(pall->pbsd.pbi_nice, CONF_NICE_VAL, "PROC_PIDTASKALLINFO returns valid nice value"… 1142 …T_EXPECT_EQ_INT(pall->ptinfo.pti_policy, POLICY_TIMESHARE, "PROC_PIDTASKALLINFO returned valid val… 1152 T_EXPECT_EQ_INT((pall->ptinfo.pti_messages_sent - p_task_info->pti_messages_sent), 0, 1154 T_EXPECT_EQ_INT((pall->ptinfo.pti_messages_received - p_task_info->pti_messages_received), 0, 1156 T_EXPECT_EQ_INT(pall->ptinfo.pti_priority, p_task_info->pti_priority, 1199 …T_EXPECT_EQ_INT(pthinfo->pth_policy, POLICY_TIMESHARE, "PROC_PIDTHREADINFO returns valid value for… [all …]
|
| H A D | signal_exit_reason.c | 196 T_EXPECT_EQ_INT(ret, 0, "expect proc_signal_delegate return: %d", ret); in __test_exit_reason_delegate_signal() 200 T_EXPECT_EQ_INT(ret, ESRCH, "expect no such process return: %d", ret); in __test_exit_reason_delegate_signal() 220 T_EXPECT_EQ_INT(ret, 0, "expect proc_terminate_delegate return: %d", ret); in __test_exit_reason_delegate_terminate() 225 T_EXPECT_EQ_INT(ret, ESRCH, "expect no such process return: %d", ret); in __test_exit_reason_delegate_terminate() 244 T_EXPECT_EQ_INT(ret, 0, "expect proc_signal_with_audittoken return: %d", ret); in __test_exit_reason_signal_with_audittoken() 247 T_EXPECT_EQ_INT(ret, ESRCH, "expect no such process return: %d", ret); in __test_exit_reason_signal_with_audittoken() 267 T_EXPECT_EQ_INT(ret, ESRCH, "expect bad audit token return: %d", ret); in __test_exit_reason_signal_with_audittoken_fail_bad_token() 284 T_EXPECT_EQ_INT(ret, EINVAL, "expect null audit token return: %d", ret); in __test_exit_reason_signal_with_audittoken_fail_null_token() 302 T_EXPECT_EQ_INT(ret, EINVAL, "expect invalid sig num return: %d", ret); in __test_exit_reason_signal_with_audittoken_fail_bad_signal()
|
| 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 | 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_vm_info_decompressions.c | 176 T_EXPECT_EQ_INT(0, err, "Detected %d cpus\n", ncpu); 190 T_EXPECT_EQ_INT(0, err, "task_info(TASK_VM_INFO) returned 0"); 191 T_EXPECT_EQ_INT(0, vm_info.decompressions, "Expected 0 decompressions before test starts");
|
| 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 | 2090 T_EXPECT_EQ_INT(info.protection, VM_PROT_DEFAULT, "child: current protection is VM_PROT_DEFAULT"); 2091 T_EXPECT_EQ_INT(info.max_protection, VM_PROT_ALL, "child: maximum protextion is VM_PROT_ALL"); 2136 T_EXPECT_EQ_INT(info.protection, VM_PROT_NONE, "parent: current protection is VM_PROT_NONE"); 2137 T_EXPECT_EQ_INT(info.max_protection, VM_PROT_NONE, "parent: maximum protextion is VM_PROT_NONE"); 2145 T_EXPECT_EQ_INT(ret, pid, "waitpid: child was stopped or terminated");
|
| H A D | net_tuntests.c | 998 T_QUIET; T_EXPECT_EQ_INT(nev, 1, NULL); in xfer_1_packet_singly() 1092 T_QUIET; T_EXPECT_EQ_INT(nev, channel_count, NULL); in xfer_1_packet_together()
|
| /xnu-11215.81.4/osfmk/kern/ |
| H A D | machine.c | 1600 T_EXPECT_EQ_INT(err, KERN_INVALID_ARGUMENT, "Can't set timeout for empty region"); in ml_io_timeout_test() 1603 T_EXPECT_EQ_INT(err, KERN_INVALID_ARGUMENT, "Can't set timeout for region > 4096 bytes"); in ml_io_timeout_test() 1606 T_EXPECT_EQ_INT(err, KERN_INVALID_ARGUMENT, "Can't set timeout for overflowed region"); in ml_io_timeout_test() 1609 T_EXPECT_EQ_INT(err, KERN_SUCCESS, "Setting timeout for first VA region should succeed"); in ml_io_timeout_test() 1612 T_EXPECT_EQ_INT(err, KERN_SUCCESS, "Setting timeout for second VA region should succeed"); in ml_io_timeout_test() 1615 T_EXPECT_EQ_INT(err, KERN_INVALID_ARGUMENT, "Can't set timeout for same region twice"); in ml_io_timeout_test() 1618 T_EXPECT_EQ_INT(err, KERN_INVALID_ARGUMENT, "Can't set timeout for overlapping regions"); in ml_io_timeout_test() 1634 T_EXPECT_EQ_INT(err, KERN_NOT_FOUND, "Can't reset timeout for subregion"); in ml_io_timeout_test() 1637 T_EXPECT_EQ_INT(err, KERN_NOT_FOUND, "Can't reset timeout for non-existent region"); in ml_io_timeout_test() 1640 T_EXPECT_EQ_INT(err, KERN_SUCCESS, "Resetting timeout for first VA region should succeed"); in ml_io_timeout_test() [all …]
|
| /xnu-11215.81.4/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-11215.81.4/pexpert/gen/ |
| H A D | bootargs.c | 306 T_EXPECT_EQ_INT(result, test_case->argvalue, in parse_boot_arg_test()
|
| /xnu-11215.81.4/bsd/kern/ |
| H A D | kern_mib.c | 1416 T_EXPECT_EQ_INT(mvfp_info->neon, gARM_AdvSIMD, "neon value should match legacy"); in arm_cpu_capabilities_legacy_test() 1417 …T_EXPECT_EQ_INT(mvfp_info->neon_hpfp, gARM_AdvSIMD_HPFPCvt, "neon hpfp cvt value should match lega… in arm_cpu_capabilities_legacy_test() 1418 T_EXPECT_EQ_INT(mvfp_info->neon_fp16, gARM_FEAT_FP16, "neon fp16 value should match legacy"); in arm_cpu_capabilities_legacy_test()
|
| /xnu-11215.81.4/osfmk/tests/ |
| H A D | ktest.h | 443 #define T_EXPECT_EQ_INT(lhs, rhs, msg, ...) \ macro
|
| H A D | kernel_tests.c | 383 …T_EXPECT_EQ_INT(retval, XT_RET_W_SUCCESS, "%s reported successful handling. Returning from kdb_sto… in xnupost_process_kdb_stop() 396 …T_EXPECT_EQ_INT(retval, XT_PANIC_W_SUCCESS, "%s reported successful testcase. But continuing to kd… in xnupost_process_kdb_stop()
|