From 34a63b097335d3411080b5b6e5b164ab36563847 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Sun, 1 Jan 2017 09:27:03 +0100 Subject: malloc: Run tunables tests only if tunables are enabled Otherwise, the environment variable will not have any effect and the test will fail. --- malloc/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'malloc/Makefile') diff --git a/malloc/Makefile b/malloc/Makefile index bbe5083..e93b83b 100644 --- a/malloc/Makefile +++ b/malloc/Makefile @@ -33,13 +33,16 @@ tests := mallocbug tst-malloc tst-valloc tst-calloc tst-obstack \ tst-mallocfork2 \ tst-interpose-nothread \ tst-interpose-thread \ - tst-malloc-usable-tunables tests-static := \ tst-interpose-static-nothread \ tst-interpose-static-thread \ tst-malloc-usable-static \ - tst-malloc-usable-static-tunables + +ifneq (no,$(have-tunables)) +tests += tst-malloc-usable-tunables +tests-static += tst-malloc-usable-static-tunables +endif tests += $(tests-static) test-srcs = tst-mtrace -- cgit v1.1