1 Star 0 Fork 26

liuzhiqiang/gperftools

forked from src-openEuler/gperftools 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
skip-arm-in-stacktrace_unittest.patch 1019 Bytes
一键复制 编辑 原始数据 按行查看 历史
openeuler-ci-bot 提交于 2021-11-09 08:01 . update to 2.9.1
From abf1ed0ce1340320474a4cf3b790b7b741b9a577 Mon Sep 17 00:00:00 2001
From: zhangyiru <zhangyiru3@huawei.com>
Date: Mon, 29 Nov 2021 10:35:01 +0800
Subject: [PATCH] skip stacktrace_unittest in arm
the calling of unw_step in arm stacktrace_unittest is incorrect, but the
function is not affected, so skip it.
Signed-off-by: zhangyiru <zhangyiru3@huawei.com>
---
src/tests/stacktrace_unittest.cc | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/tests/stacktrace_unittest.cc b/src/tests/stacktrace_unittest.cc
index e55a632..85c0bcd 100644
--- a/src/tests/stacktrace_unittest.cc
+++ b/src/tests/stacktrace_unittest.cc
@@ -285,8 +285,13 @@ void ATTRIBUTE_NOINLINE CheckStackTrace(int i) {
//-----------------------------------------------------------------------//
int main(int argc, char ** argv) {
+#if defined(__x86_64__)
CheckStackTrace(0);
printf("PASS\n");
+#else
+ printf("ARM SKIP\n");
+ exit(77);
+#endif
#if TEST_UCONTEXT_BITS
leaf_capture_fn = CaptureLeafUContext;
--
1.8.3.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/liuzhiqiang26/gperftools.git
git@gitee.com:liuzhiqiang26/gperftools.git
liuzhiqiang26
gperftools
gperftools
master

搜索帮助