trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpe...@apache.org
Subject [trafficserver] 01/02: Move header_rewrite_test into the automake tests.
Date Fri, 08 Jul 2016 18:29:40 GMT
This is an automated email from the ASF dual-hosted git repository.

jpeach pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

commit 8d6c0aad278d7138b8e1dee3f6955b906d932280
Author: James Peach <jpeach@apache.org>
AuthorDate: Fri Jul 8 10:32:33 2016 -0700

    Move header_rewrite_test into the automake tests.
---
 plugins/header_rewrite/Makefile.am            | 4 +++-
 plugins/header_rewrite/header_rewrite_test.cc | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/plugins/header_rewrite/Makefile.am b/plugins/header_rewrite/Makefile.am
index b0a2f63..d8e730a 100644
--- a/plugins/header_rewrite/Makefile.am
+++ b/plugins/header_rewrite/Makefile.am
@@ -35,10 +35,12 @@ header_rewrite_la_SOURCES = \
 header_rewrite_la_LDFLAGS = $(TS_PLUGIN_LDFLAGS)
 header_rewrite_la_LIBADD = $(GEO_LIBS)
 
-bin_PROGRAMS = header_rewrite_test
+check_PROGRAMS = header_rewrite_test
 header_rewrite_test_SOURCES = parser.cc header_rewrite_test.cc
 header_rewrite_test_CXXFLAGS = $(AM_CXXFLAGS)
 
+TESTS = $(check_PROGRAMS)
+
 include $(top_srcdir)/build/tidy.mk
 
 tidy-local: $(DIST_SOURCES)
diff --git a/plugins/header_rewrite/header_rewrite_test.cc b/plugins/header_rewrite/header_rewrite_test.cc
index f2a8487..73a3c6a 100644
--- a/plugins/header_rewrite/header_rewrite_test.cc
+++ b/plugins/header_rewrite/header_rewrite_test.cc
@@ -48,7 +48,7 @@ TSDebug(const char *tag, const char *fmt, ...)
   va_list args;
   va_start(args, fmt);
   if ((bytes = vsnprintf(buf, sizeof(buf), fmt, args)) > 0) {
-    fprintf(stdout, "TSDebug: %s: %.*s", PLUGIN_NAME, bytes, buf);
+    fprintf(stdout, "TSDebug: %s: %.*s\n", PLUGIN_NAME, bytes, buf);
   }
   va_end(args);
 }

-- 
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>.

Mime
View raw message