aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/allocators/SuperMalloc/remove_faulty_aligned_alloc_test.patch13
-rw-r--r--src/allocators/supermalloc.py1
2 files changed, 14 insertions, 0 deletions
diff --git a/src/allocators/SuperMalloc/remove_faulty_aligned_alloc_test.patch b/src/allocators/SuperMalloc/remove_faulty_aligned_alloc_test.patch
new file mode 100644
index 0000000..dc7f7c4
--- /dev/null
+++ b/src/allocators/SuperMalloc/remove_faulty_aligned_alloc_test.patch
@@ -0,0 +1,13 @@
+diff --git a/Makefile.include b/Makefile.include
+index bb3cef3..09ee7eb 100644
+--- a/Makefile.include
++++ b/Makefile.include
+@@ -37,7 +37,7 @@ default: tests
+ #lib: $(LIB)/libsupermalloc.so
+ #.PHONY: lib
+
+-TESTS = aligned_alloc calloc posix_memalign $(UNITTESTS) test-malloc_test new-malloc-test malloc-test-fixed-work test22 cache-index madvise-small test38 test-no-overlaps #unit-timing
++TESTS = calloc posix_memalign $(UNITTESTS) test-malloc_test new-malloc-test malloc-test-fixed-work test22 cache-index madvise-small test38 test-no-overlaps #unit-timing
+ TESTS_IN_DIR = $(patsubst %, $(BLD)/%, $(TESTS))
+
+ LDFLAGS += -ldl
diff --git a/src/allocators/supermalloc.py b/src/allocators/supermalloc.py
index 0c4040b..b895983 100644
--- a/src/allocators/supermalloc.py
+++ b/src/allocators/supermalloc.py
@@ -36,6 +36,7 @@ class SuperMalloc(Allocator):
kwargs["LD_PRELOAD"] = "{srcdir}/release/lib/libsupermalloc.so"
kwargs["build_cmds"] = ["cd {srcdir}/release; make",
"mkdir -p {dir}"]
+ kwargs["patches"] = ["{patchdir}/remove_faulty_aligned_alloc_test.patch"]
super().__init__(name, **kwargs)