1From 0224ac01f620ff226bdf877e2b278d20c0fa1b56 Mon Sep 17 00:00:00 2001 2From: chenziyang <chenziyang4@huawei.com> 3Date: Mon, 3 Jul 2023 14:27:47 +0800 4Subject: [PATCH] Fix run-ptrace-mapper test case failed by allowing 5 unw_get_proc_info() return unsuccessful result. Because it is not an error 6 unw_get_proc_info() does not return the auxiliary information, so we edit 7 test case and don't treat it as error. 8 9--- 10 tests/test-ptrace.c | 2 +- 11 1 file changed, 1 insertion(+), 1 deletion(-) 12 13diff --git a/tests/test-ptrace.c b/tests/test-ptrace.c 14index 846bcd8..32f42e8 100644 15--- a/tests/test-ptrace.c 16+++ b/tests/test-ptrace.c 17@@ -111,7 +111,7 @@ do_backtrace (void) 18 printf ("%016lx %-32s (sp=%016lx)\n", (long) ip, buf, (long) sp); 19 } 20 21- if ((ret = unw_get_proc_info (&c, &pi)) < 0) 22+ if ((ret = unw_get_proc_info (&c, &pi)) < 0 && ret != -UNW_ENOINFO) /* It's possible unw_get_proc_info don't return infomation */ 23 panic ("unw_get_proc_info(ip=0x%lx) failed: ret=%d\n", (long) ip, ret); 24 else if (verbose) 25 printf ("\tproc=%016lx-%016lx\n\thandler=%lx lsda=%lx", 26-- 272.33.0 28 29