From c84d0e1ec11e808b7d5400fda83c21f2fbb5f61f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 25 Jun 2015 10:44:31 +0200 Subject: [PATCH] Use LD_LIBRARY_PATH to run test with SHARED=1 In my tests on Linux, LD_PRELOAD does not seem to work, but LD_LIBRARY_PATH does. --- tests/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index ccaacfc8ff..319ca54f10 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -14,10 +14,8 @@ LOCAL_LDFLAGS = -L../library \ ifndef SHARED DEP=../library/libmbedcrypto.a ../library/libmbedx509.a ../library/libmbedtls.a -CHECK_PRELOAD= else DEP=../library/libmbedcrypto.$(DLEXT) ../library/libmbedx509.$(DLEXT) ../library/libmbedtls.$(DLEXT) -CHECK_PRELOAD= LD_PRELOAD=$(DEP) endif ifdef DEBUG @@ -438,7 +436,7 @@ check: $(APPS) for i in $(APPS); \ do \ echo " - $${i}"; \ - RESULT=`$(CHECK_PRELOAD) ./$${i} | grep -v 'PASS$$' | grep -v -- '----' | grep -v '^$$'`; \ + RESULT=`LD_LIBRARY_PATH=../library ./$${i} | grep -v 'PASS$$' | grep -v -- '----' | grep -v '^$$'`; \ PASSED=`echo $$RESULT |grep PASSED`; \ echo " $$RESULT"; \ if [ "x$$PASSED" = "x" ]; \