summaryrefslogtreecommitdiff
path: root/user/dovecot/test-file-cache-enomem.patch
blob: 536b857decc1491262968235e64de62efcfbc8b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/src/lib/test-file-cache.c	2021-01-05 14:10:50.160000000 +0000
+++ b/src/lib/test-file-cache.c	2021-01-05 14:10:50.160000000 +0000
@@ -263,7 +263,7 @@
 	};
 	const char *errstr =
 		t_strdup_printf("mmap_anon(.test_file_cache, %zu) failed: "
-				"Cannot allocate memory", page_size);
+               "Out of memory", page_size);
 	test_assert(setrlimit(RLIMIT_AS, &rl_new) == 0);
 	test_expect_error_string(errstr);
 	test_assert(file_cache_set_size(cache, 1024) == -1);
@@ -271,7 +271,7 @@
 
 	/* same for mremap */
 	errstr = t_strdup_printf("mremap_anon(.test_file_cache, %zu) failed: "
-				 "Cannot allocate memory", page_size*2);
+                "Out of memory", page_size*2);
 	test_assert(file_cache_set_size(cache, 1) == 0);
 	test_assert(setrlimit(RLIMIT_AS, &rl_new) == 0);
 	test_expect_error_string(errstr);