1 Star 0 Fork 25

liusirui/gperftools

forked from src-openEuler/gperftools 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
skip-heapchecker-in-arm-arch.patch 1.61 KB
一键复制 编辑 原始数据 按行查看 历史
From 0329adf56e817636e4bd19cb980c07f47c481c42 Mon Sep 17 00:00:00 2001
From: zhangyiru <zhangyiru3@huawei.com>
Date: Wed, 20 Oct 2021 11:22:59 -0400
Subject: [PATCH] skip heapchecker in arm arch
arm do not have fully functional heap checker, so skip these three
testcases.
Signed-off-by: zhangyiru <zhangyiru3@huawei.com>
---
src/tests/heap-checker-death_unittest.sh | 5 +++++
src/tests/heap-checker_unittest.sh | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/src/tests/heap-checker-death_unittest.sh b/src/tests/heap-checker-death_unittest.sh
index 69db0c9..deac493 100755
--- a/src/tests/heap-checker-death_unittest.sh
+++ b/src/tests/heap-checker-death_unittest.sh
@@ -34,6 +34,11 @@
# Run the heap checker unittest in a mode where it is supposed to crash and
# return an error if it doesn't.
+arch=$(uname -r | grep x86)
+if [[ $arch == "" ]]; then
+# skip this test, libtool define EXIT_SKIP=77
+ exit 77
+fi
# We expect BINDIR to be set in the environment.
# If not, we set it to some reasonable value.
BINDIR="${BINDIR:-.}"
diff --git a/src/tests/heap-checker_unittest.sh b/src/tests/heap-checker_unittest.sh
index 3c9c0e9..7c27044 100755
--- a/src/tests/heap-checker_unittest.sh
+++ b/src/tests/heap-checker_unittest.sh
@@ -37,6 +37,11 @@
# and heap checker via environment variables. This test makes sure
# they all play well together.
+arch=$(uname -r | grep x86)
+if [[ $arch == "" ]]; then
+# skip this test, libtool define EXIT_SKIP=77
+ exit 77
+fi
# We expect BINDIR and PPROF_PATH to be set in the environment.
# If not, we set them to some reasonable values
BINDIR="${BINDIR:-.}"
--
2.27.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/liusirui91/gperftools.git
git@gitee.com:liusirui91/gperftools.git
liusirui91
gperftools
gperftools
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385