tests/testBoilerplate.cc \
tests/testMain.cc \
tests/testBoilerplate.h \
+ tests/stub_debug.cc \
tests/stub_time.cc
nodist_tests_testBoilerplate_SOURCES = \
$(TESTSOURCES)
tests_testBoilerplate_LDADD= \
$(SQUID_CPPUNIT_LIBS) \
$(SSLLIB) \
+ base/libbase.la \
$(COMPAT_LIB) \
$(XTRA_LIBS)
tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
static int
fdIsTcpListen(int fd)
{
- for (const AnyP::PortCfgPointer s = HttpPortList; s != NULL; s = s->next) {
+ for (AnyP::PortCfgPointer s = HttpPortList; s != NULL; s = s->next) {
if (s->listenConn != NULL && s->listenConn->fd == fd)
return 1;
}
static int
fdIsTcpListener(int fd)
{
- for (const AnyP::PortCfgPointer s = HttpPortList; s != NULL; s = s->next) {
+ for (AnyP::PortCfgPointer s = HttpPortList; s != NULL; s = s->next) {
if (s->listenConn != NULL && s->listenConn->fd == fd)
return 1;
}
// XXX: only poll sockets that won't be deferred. But how do we identify them?
- for (const AnyP::PortCfgPointer s = HttpPortList; s != NULL; s = s->next) {
+ for (AnyP::PortCfgPointer s = HttpPortList; s != NULL; s = s->next) {
if (Comm::IsConnOpen(s->listenConn)) {
fds[nfds] = s->listenConn->fd;
++nfds;
static int
fdIsTcpListener(int fd)
{
- for (const AnyP::PortCfgPointer s = HttpPortList; s != NULL; s = s->next) {
+ for (AnyP::PortCfgPointer s = HttpPortList; s != NULL; s = s->next) {
if (s->listenConn != NULL && s->listenConn->fd == fd)
return 1;
}
// XXX: only poll sockets that won't be deferred. But how do we identify them?
- for (const AnyP::PortCfgPointer s = HttpPortList; s != NULL; s = s->next) {
+ for (AnyP::PortCfgPointer s = HttpPortList; s != NULL; s = s->next) {
if (Comm::IsConnOpen(s->listenConn)) {
fds[nfds] = s->listenConn->fd;
++nfds;
$(SQUID_CPPUNIT_LA) \
libicmp-core.la \
../ip/libip.la \
+ ../base/libbase.la \
$(COMPAT_LIB) \
$(XTRA_LIBS)
testIcmp_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
$(top_srcdir)/src/tests/testMain.cc
testIpAddress_LDADD= \
libip.la \
+ ../base/libbase.la \
$(XTRA_LIBS) \
$(COMPAT_LIB) \
$(SQUID_CPPUNIT_LA) \
static bool
isSslServer()
{
- if (HttpsPortList.valid())
+ if (HttpsPortList != NULL)
return true;
for (AnyP::PortCfgPointer s = HttpPortList; s != NULL; s = s->next) {
INCLUDES += -I$(srcdir)
LDADD = \
+ $(top_builddir)/src/base/libbase.la \
$(top_builddir)/src/globals.o \
$(top_builddir)/src/time.o \
$(top_builddir)/lib/libmiscutil.la \
ESIExpressions_LDADD = $(top_builddir)/src/esi/Expression.o \
$(LDADD)
-mem_node_test_SOURCES = mem_node_test.cc
+mem_node_test_SOURCES = mem_node_test.cc $(DEBUG_SOURCE)
mem_node_test_LDADD = $(top_builddir)/src/mem_node.o $(LDADD)
mem_hdr_test_SOURCES = mem_hdr_test.cc $(DEBUG_SOURCE)
$(top_builddir)/src/mem_node.o \
$(LDADD)
-MemPoolTest_SOURCES = MemPoolTest.cc
+MemPoolTest_SOURCES = MemPoolTest.cc $(DEBUG_SOURCE)
-splay_SOURCES = splay.cc
+splay_SOURCES = splay.cc $(DEBUG_SOURCE)
syntheticoperators_SOURCES = syntheticoperators.cc $(DEBUG_SOURCE)
#include <iostream>
+#if 0
/* TODO: put this in a libTest */
void
xassert(const char *msg, const char *file, int line)
std::cout << "Assertion failed: (" << msg << ") at " << file << ":" << line << std::endl;
exit (1);
}
+#endif
int
main(int argc, char **argv)