From 540240e52db949f02464c2f68c80d334addbe331 Mon Sep 17 00:00:00 2001 From: Alex Rousskov Date: Fri, 9 Jun 2017 00:03:47 -0600 Subject: [PATCH] Attempting to fix Jenkins "make test" (with clang?) after r15183. undefined reference: operator<<(std::ostream&, Comm::Connection const&) make[5]: *** [tests/testACLMaxUserIP] Error 1 My test-builds.sh passed before (and still passes after) this change, so I am just guessing that I picked the wrong stub_*comm.cc file in r15183. --- src/tests/stub_comm.cc | 2 -- src/tests/stub_libcomm.cc | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tests/stub_comm.cc b/src/tests/stub_comm.cc index 1f7f215656..2d465bbf9a 100644 --- a/src/tests/stub_comm.cc +++ b/src/tests/stub_comm.cc @@ -70,5 +70,3 @@ bool comm_has_incomplete_write(int) STUB_RETVAL(false) void commStartHalfClosedMonitor(int fd) STUB bool commHasHalfClosedMonitor(int fd) STUB_RETVAL(false) int CommSelectEngine::checkEvents(int timeout) STUB_RETVAL(0) - -std::ostream &operator << (std::ostream &os, const Comm::Connection &conn) STUB_RETVAL(os << "[Connection object]") diff --git a/src/tests/stub_libcomm.cc b/src/tests/stub_libcomm.cc index 4f8ab714f2..ac65389694 100644 --- a/src/tests/stub_libcomm.cc +++ b/src/tests/stub_libcomm.cc @@ -79,3 +79,4 @@ void Comm::Write(const Comm::ConnectionPointer &conn, MemBuf *mb, AsyncCall::Poi void Comm::WriteCancel(const Comm::ConnectionPointer &conn, const char *reason) STUB /*PF*/ void Comm::HandleWrite(int, void*) STUB +std::ostream &operator << (std::ostream &os, const Comm::Connection &conn) STUB_RETVAL(os << "[Connection object]") -- 2.47.3