From abf1ed0ce1340320474a4cf3b790b7b741b9a577 Mon Sep 17 00:00:00 2001 From: zhangyiru 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 --- 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