malloc: Turn on DEBUG when enabling unit tests
PATCH 1/1 malloc: Turn on DEBUG when enabling unit tests
Unit tests require mallinfo which in turn requires DEBUG on dlmalloc to be enabled.
The dependancy on CONFIG_SANDBOX is wrong.
Signed-off-by Pantelis Antoniou <[email protected]>
--- common/dlmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
common/dlmalloc.c +1 -1
@@ -1,6 +1,6 @@#include <common.h> -#ifdef CONFIG_SANDBOX +#if defined(CONFIG_UNIT_TEST )#define DEBUG #endif
Signature · 1 line
2.1.4
PATCH 1/1 malloc: Turn on DEBUG when enabling unit tests
Quoted 6 lines · Pantelis Antoniou
Unit tests require mallinfo which in turn requires DEBUG on dlmalloc to be enabled.
The dependancy on
CONFIG_SANDBOXis wrong.Signed-off-by Pantelis Antoniou <[email protected]>
Reviewed-by Tom Rini <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170525/04055f45/attachment.sig>
PATCH 1/1 malloc: Turn on DEBUG when enabling unit tests
In reply to Pantelis AntoniouQuoted 9 lines · Pantelis Antoniou
Unit tests require mallinfo which in turn requires DEBUG on dlmalloc to be enabled.
The dependancy on
CONFIG_SANDBOXis wrong.Signed-off-by Pantelis Antoniou <[email protected]>--- common/dlmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Simon Glass <[email protected]>
Quoted 8 lines · Pantelis Antoniou
Unit tests require mallinfo which in turn requires DEBUG on dlmalloc to be enabled.
The dependancy on
CONFIG_SANDBOXis wrong.Signed-off-by Pantelis Antoniou <[email protected]>Reviewed-by Tom Rini <[email protected]>Reviewed-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170605/a32b333e/attachment.sig>