diff mbox series

[1/4] trace-cmd: Make the unit test depend on the static library

Message ID 20221115205355.2580214-2-rostedt@goodmis.org (mailing list archive)
State Accepted
Commit d4189ca382d2f5e20573e7f1dbc968070aa4e7d7
Headers show
Series trace-cmd utest: Add test for max buffer (record -m) | expand

Commit Message

Steven Rostedt Nov. 15, 2022, 8:53 p.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

Several times I've been confused that the unit test was not working after
I had fixed some of the library code. The reason is that the unit test
binary does not have a dependency on the static library. Even though the
library is updated, the unit test will not reflect the changes because it
was not rebuilt against the updated static library.

Add a dependency to the static library to the unit test binary.

Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
---
 utest/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/utest/Makefile b/utest/Makefile
index d475bad5a0f9..337db9bf24a1 100644
--- a/utest/Makefile
+++ b/utest/Makefile
@@ -23,7 +23,7 @@  $(bdir):
 $(OBJS): | $(bdir)
 $(DEPS): | $(bdir)
 
-$(bdir)/trace-utest: $(OBJS)
+$(bdir)/trace-utest: $(OBJS) $(LIBTRACECMD_STATIC)
 	$(Q)$(do_app_build)
 
 $(bdir)/%.o: %.c