Source: libmmap-allocator Version: 0.4.0+git20200122.adbfbe1-2 Severity: serious Tags: ftbfs patch Control: close 1089928
https://buildd.debian.org/status/logs.php?pkg=libmmap-allocator&ver=0.4.0%2Bgit20200122.adbfbe1-2 ... Running mmap allocator regression test suite. bash -c 'export LD_LIBRARY_PATH=. ; ./test_allocator' test_allocator: test_allocator.cpp:61: void test_page_align_macros(): Assertion `ALIGN_TO_PAGE(p) == 0x6000' failed. make[2]: *** [Makefile:40: test] Aborted The code itself looks OK and uses pagesize() to get the page size, but the tests make assumptions about page size that can be wrong depending on architecture and kernel configuration. The attached patch disables the bogus tests.
Description: Disable tests that assume a fixed page size Page size differs depending on architecture and kernel configuration. Author: Adrian Bunk <b...@debian.org> --- libmmap-allocator-0.4.0+git20200122.adbfbe1.orig/test_allocator.cpp +++ libmmap-allocator-0.4.0+git20200122.adbfbe1/test_allocator.cpp @@ -489,7 +489,7 @@ int main(int argc, char ** argv) { set_verbosity(1); - test_page_align_macros(); + //test_page_align_macros(); test_throw_catch(); test_exceptions(); test_mmap_file_pool();