gperftools/skip-arm-in-stacktrace_unittest.patch

35 lines
1019 B
Diff
Raw Normal View History

2021-11-09 08:01:04 +00:00
From abf1ed0ce1340320474a4cf3b790b7b741b9a577 Mon Sep 17 00:00:00 2001
From: zhangyiru <zhangyiru3@huawei.com>
2021-11-09 08:01:04 +00:00
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
2021-11-09 08:01:04 +00:00
index e55a632..85c0bcd 100644
--- a/src/tests/stacktrace_unittest.cc
+++ b/src/tests/stacktrace_unittest.cc
2021-11-09 08:01:04 +00:00
@@ -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
2021-11-09 08:01:04 +00:00
#if TEST_UCONTEXT_BITS
leaf_capture_fn = CaptureLeafUContext;
--
2021-11-09 08:01:04 +00:00
1.8.3.1