From: Florian Weimer Date: Sun, 1 Jan 2017 08:27:03 +0000 (+0100) Subject: malloc: Run tunables tests only if tunables are enabled X-Git-Tag: glibc-2.25~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34a63b097335d3411080b5b6e5b164ab36563847;p=thirdparty%2Fglibc.git malloc: Run tunables tests only if tunables are enabled Otherwise, the environment variable will not have any effect and the test will fail. --- diff --git a/ChangeLog b/ChangeLog index 814b05c7077..7259267d18c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2017-01-01 Florian Weimer + + * malloc/Makefile (tests): Add tst-malloc-usable-tunables for + have-tunables only. + (tests-static): Add tst-malloc-usable-static-tunables for + have-tunables only. + 2017-01-01 Joseph Myers * scripts/config.guess: Update to version 2017-01-01. diff --git a/malloc/Makefile b/malloc/Makefile index bbe5083d59e..e93b83b57d9 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