summaryrefslogtreecommitdiffstats
path: root/debian/patches/test-backtrace.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:51:25 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:51:25 +0000
commit4a31b814a318a37fe8b58d42f2025e49072971e4 (patch)
tree5ba51f467804ef2f6fea80a7ea2682cbdec1ff8f /debian/patches/test-backtrace.patch
parentAdding upstream version 1:2.3.19.1+dfsg1. (diff)
downloaddovecot-4a31b814a318a37fe8b58d42f2025e49072971e4.tar.xz
dovecot-4a31b814a318a37fe8b58d42f2025e49072971e4.zip
Adding debian version 1:2.3.19.1+dfsg1-2.1.debian/1%2.3.19.1+dfsg1-2.1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/patches/test-backtrace.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/debian/patches/test-backtrace.patch b/debian/patches/test-backtrace.patch
new file mode 100644
index 0000000..29a03c4
--- /dev/null
+++ b/debian/patches/test-backtrace.patch
@@ -0,0 +1,36 @@
+From: Noah Meyerhans <noahm@debian.org>
+Date: Fri, 12 Jun 2020 16:51:06 -0700
+Subject: Updates the symbol to check for in the backtrace unit tests
+
+Updates the symbol to check for in the backtrace unit tests to
+something that appears in all the traces on the platforms we support.
+---
+ src/lib/test-backtrace.c | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/lib/test-backtrace.c b/src/lib/test-backtrace.c
+index fdebe0f..640dc5b 100644
+--- a/src/lib/test-backtrace.c
++++ b/src/lib/test-backtrace.c
+@@ -17,8 +17,8 @@ static void test_backtrace_append(void)
+ #elif (defined(HAVE_BACKTRACE_SYMBOLS) && defined(HAVE_EXECINFO_H)) || \
+ (defined(HAVE_WALKCONTEXT) && defined(HAVE_UCONTEXT_H))
+ test_assert(backtrace_append(bt) == 0);
+- /* it should have some kind of main in it */
+- test_assert(strstr(str_c(bt), "main") != NULL);
++ i_debug("backtrace: '%s'", str_c(bt));
++ test_assert(strstr(str_c(bt), "test_backtrace_append") != NULL || strstr(str_c(bt), "main") != NULL);
+ #else
+ /* should not work in this context */
+ test_assert(backtrace_append(bt) == -1);
+@@ -41,8 +41,8 @@ static void test_backtrace_get(void)
+ #elif (defined(HAVE_BACKTRACE_SYMBOLS) && defined(HAVE_EXECINFO_H)) || \
+ (defined(HAVE_WALKCONTEXT) && defined(HAVE_UCONTEXT_H))
+ test_assert(backtrace_get(&bt) == 0);
+- /* it should have some kind of main in it */
+- test_assert(strstr(bt, "main") != NULL);
++ i_debug("backtrace: '%s'", bt);
++ test_assert(strstr(bt, "test_backtrace_get") != NULL || strstr(bt, "main") != NULL);
+ #else
+ /* should not work in this context */
+ test_assert(backtrace_get(&bt) == -1);