From: Alex Rousskov Date: Fri, 9 Jun 2017 06:03:47 +0000 (-0600) Subject: Attempting to fix Jenkins "make test" (with clang?) after r15183. X-Git-Tag: M-staged-PR71~132 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=540240e52db949f02464c2f68c80d334addbe331;p=thirdparty%2Fsquid.git 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. --- 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]")