Better fix of make dependencies, forgotten initialization.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Thu, 23 Oct 2008 14:11:35 +0000 (14:11 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Thu, 23 Oct 2008 14:11:35 +0000 (14:11 +0000)
org.glite.lb.common/Makefile
org.glite.lb.common/test/test_main.cpp

index d55c727..ea74ab3 100644 (file)
@@ -233,7 +233,7 @@ clean:
 %.o: %.c
        ${COMPILE} ${CFLAGS} -c $<
 
-il_int_test.o il_string_test.o il_test.o il_msg_test.o parse.o: %.o: %.cpp
+il_int_test.o il_string_test.o il_test.o il_msg_test.o parse.o: %.o: %.cpp test_main.cpp
        ${CXX} -c ${CFLAGS} ${TEST_INC} $<
 
 %.thr.o: %.c
index 43ebc57..1caa44e 100644 (file)
@@ -12,6 +12,8 @@
 
 int main (int argc,const char *argv[])
 {
+       edg_wll_initConnections();
+
        CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();
 
        assert(argc == 2);
@@ -30,6 +32,7 @@ int main (int argc,const char *argv[])
        xout.write();
        tout.write();
 
+       // for leak hunting
        edg_wll_poolFree();
 
        return result.wasSuccessful() ? 0 : 1 ;