Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/sys Add more debug to register writing tests
details: https://anonhg.NetBSD.org/src/rev/0a4227fa6e66
branches: trunk
changeset: 451789:0a4227fa6e66
user: mgorny <mgorny%NetBSD.org@localhost>
date: Tue Jun 04 12:17:05 2019 +0000
description:
Add more debug to register writing tests
diffstat:
tests/lib/libc/sys/t_ptrace_amd64_wait.h | 4 +++-
tests/lib/libc/sys/t_ptrace_i386_wait.h | 4 +++-
tests/lib/libc/sys/t_ptrace_x86_wait.h | 4 +++-
3 files changed, 9 insertions(+), 3 deletions(-)
diffs (75 lines):
diff -r abcbaeea3cd0 -r 0a4227fa6e66 tests/lib/libc/sys/t_ptrace_amd64_wait.h
--- a/tests/lib/libc/sys/t_ptrace_amd64_wait.h Tue Jun 04 11:59:05 2019 +0000
+++ b/tests/lib/libc/sys/t_ptrace_amd64_wait.h Tue Jun 04 12:17:05 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ptrace_amd64_wait.h,v 1.10 2019/05/10 16:24:35 mgorny Exp $ */
+/* $NetBSD: t_ptrace_amd64_wait.h,v 1.11 2019/06/04 12:17:05 mgorny Exp $ */
/*-
* Copyright (c) 2016, 2017, 2018, 2019 The NetBSD Foundation, Inc.
@@ -262,6 +262,7 @@
:
);
+ DPRINTF("Before comparing results\n");
FORKEE_ASSERT_EQ(v_rax, rax);
FORKEE_ASSERT_EQ(v_rbx, rbx);
FORKEE_ASSERT_EQ(v_rcx, rcx);
@@ -462,6 +463,7 @@
: "%r8", "%r9", "%r10", "%r11", "%r12", "%r13", "%r14", "%r15"
);
+ DPRINTF("Before comparing results\n");
FORKEE_ASSERT_EQ(v_r8[0], r8[0]);
FORKEE_ASSERT_EQ(v_r8[1], r8[1]);
FORKEE_ASSERT_EQ(v_r8[2], r8[2]);
diff -r abcbaeea3cd0 -r 0a4227fa6e66 tests/lib/libc/sys/t_ptrace_i386_wait.h
--- a/tests/lib/libc/sys/t_ptrace_i386_wait.h Tue Jun 04 11:59:05 2019 +0000
+++ b/tests/lib/libc/sys/t_ptrace_i386_wait.h Tue Jun 04 12:17:05 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ptrace_i386_wait.h,v 1.8 2019/05/10 16:24:35 mgorny Exp $ */
+/* $NetBSD: t_ptrace_i386_wait.h,v 1.9 2019/06/04 12:17:05 mgorny Exp $ */
/*-
* Copyright (c) 2016, 2017, 2018, 2019 The NetBSD Foundation, Inc.
@@ -226,6 +226,7 @@
:
);
+ DPRINTF("Before comparing results\n");
FORKEE_ASSERT_EQ(v_eax, eax);
FORKEE_ASSERT_EQ(v_ebx, ebx);
FORKEE_ASSERT_EQ(v_ecx, ecx);
@@ -393,6 +394,7 @@
:
);
+ DPRINTF("Before comparing results\n");
FORKEE_ASSERT_EQ(v_esp, esp);
FORKEE_ASSERT_EQ(v_ebp, ebp);
diff -r abcbaeea3cd0 -r 0a4227fa6e66 tests/lib/libc/sys/t_ptrace_x86_wait.h
--- a/tests/lib/libc/sys/t_ptrace_x86_wait.h Tue Jun 04 11:59:05 2019 +0000
+++ b/tests/lib/libc/sys/t_ptrace_x86_wait.h Tue Jun 04 12:17:05 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ptrace_x86_wait.h,v 1.13 2019/05/10 18:07:10 mgorny Exp $ */
+/* $NetBSD: t_ptrace_x86_wait.h,v 1.14 2019/06/04 12:17:05 mgorny Exp $ */
/*-
* Copyright (c) 2016, 2017, 2018, 2019 The NetBSD Foundation, Inc.
@@ -2387,6 +2387,7 @@
DPRINTF("Before running assembly from child\n");
get_mm_regs(v_mm);
+ DPRINTF("Before comparing results\n");
FORKEE_ASSERT_EQ(v_mm[0], mm[0]);
FORKEE_ASSERT_EQ(v_mm[1], mm[1]);
FORKEE_ASSERT_EQ(v_mm[2], mm[2]);
@@ -2724,6 +2725,7 @@
DPRINTF("Before running assembly from child\n");
get_xmm_regs(v_xmm);
+ DPRINTF("Before comparing results\n");
FORKEE_ASSERT(!memcmp(&v_xmm[0], &xmm[0], sizeof(*xmm)));
FORKEE_ASSERT(!memcmp(&v_xmm[1], &xmm[1], sizeof(*xmm)));
FORKEE_ASSERT(!memcmp(&v_xmm[2], &xmm[2], sizeof(*xmm)));
Home |
Main Index |
Thread Index |
Old Index