diff mbox series

[v2] libtracefs: Force unit test to use local library

Message ID 20201221074047.213787-1-tz.stoyanov@gmail.com (mailing list archive)
State Accepted
Commit 7f2eeac3ba72b25a0f517ed0f3b5d59f0e5a7190
Headers show
Series [v2] libtracefs: Force unit test to use local library | expand

Commit Message

Tzvetomir Stoyanov (VMware) Dec. 21, 2020, 7:40 a.m. UTC
Unit test must test the library located in the sorce tree, instead the
one installed in the system.

Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
---
v2 changes:
 - Fixed broken commit description.

 utest/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/utest/Makefile b/utest/Makefile
index 6505a3e..403540a 100644
--- a/utest/Makefile
+++ b/utest/Makefile
@@ -12,7 +12,7 @@  OBJS += tracefs-utest.o
 
 LIBS += -lcunit				\
 	-ldl				\
-	-L$(bdir) -ltracefs
+	-L$(obj)/lib/tracefs -ltracefs
 
 OBJS := $(OBJS:%.o=$(bdir)/%.o)
 DEPS := $(OBJS:$(bdir)/%.o=$(bdir)/.%.d)