Repository navigation
Expand file tree
/
Copy pathtests.patch
More file actions
48 lines (41 loc) · 1.67 KB
/
Copy pathtests.patch
File metadata and controls
48 lines (41 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
From 9f642dd868db6e7401f24e4fb4031b5bdca8aae7 Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Sat, 28 Dec 2024 13:17:24 +0000
Subject: [PATCH] lib: test-data-stack - Drop bogus assertion
This assertion goes back to 992a1726a41b42fa47204565ff17f7c635fcb421 when
test-data-stack.c was added.
It starts to fail with (upcoming) GCC 15 which has improvements for
optimising out redundant pointer-vs-pointer comparisons, specifically
r15-580-gf3e5f4c58591f5 for gcc bug PR13962.
Anyway, this is a problem for this assertion because t_malloc_no0
is marked with `__attribute__((malloc))` which guarantees that the
returned pointer doesn't alias, hence a == b must be false.
Bug: https://bugs.gentoo.org/939857
---
src/lib/test-data-stack.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/lib/test-data-stack.c b/src/lib/test-data-stack.c
index c38da60fd0f..3c335976853 100644
--- a/src/lib/test-data-stack.c
+++ b/src/lib/test-data-stack.c
@@ -186,9 +186,8 @@ static void test_ds_buffers(void)
test_begin("data-stack buffer interruption");
T_BEGIN {
void *b = t_buffer_get(1000);
- void *a = t_malloc_no0(1);
+ (void)t_malloc_no0(1);
void *b2 = t_buffer_get(1001);
- test_assert(a == b); /* expected, not guaranteed */
test_assert(b2 != b);
} T_END;
test_end();
--- dovecot-2.3.21.1/src/imap/Makefile.am.orig 2024-08-13 12:37:50.000000000 +0200
+++ dovecot-2.3.21.1/src/imap/Makefile.am 2026-01-25 01:17:36.604119058 +0100
@@ -115,8 +115,7 @@
pkginc_libdir=$(pkgincludedir)
pkginc_lib_HEADERS = $(headers)
-test_programs = \
- test-imap-client-hibernate
+test_programs =
noinst_PROGRAMS = $(test_programs)
test_imap_client_hibernate_SOURCES = \