Skip to contentSkip to conversation

libtracefs: Suppress library warnings during unit test

PATCH New Tzvetomir Stoyanov (VMware) 1 participant 1 message Apr 8, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libtracefs: Suppress library warnings during unit test

Implemented dummy tep_vwarning() function to suppress warnings from the trace libraries during the unit test.

---
 utest/trace-utest.c | 5 +++++
 1 file changed, 5 insertions(+)
utest/trace-utest.c +5 -0
index 58d4d4e..ee11826 100644
@@ -19,6 +19,11 @@ enum unit_tests {
 	RUN_ALL		= 0xFFFF
 };
 
+int tep_vwarning(const char *name, const char *fmt, va_list ap)
+{
+	return 0;
+}
+
 static void print_help(char **argv)
 {
 	printf("Usage: %s [OPTIONS]\n", basename(argv[0]));
Signature · 1 line
2.30.2