*** empty log message ***
authorMichal Voců <michal@ruk.cuni.cz>
Tue, 31 Aug 2004 13:52:52 +0000 (13:52 +0000)
committerMichal Voců <michal@ruk.cuni.cz>
Tue, 31 Aug 2004 13:52:52 +0000 (13:52 +0000)
org.glite.lb.logger/Makefile
org.glite.lb.logger/test/ll_test.cpp

index 742bd8b..f1e9732 100644 (file)
@@ -87,7 +87,7 @@ stage: compile
 
 check: check.ll
 
-check.ll: logd_proto_test.o ll_test.cpp
+check.ll: logd_proto_test.o ll_test.o
        ${LINKXX} -o $@ ${COMMON_LIB}_${nothrflavour} ${EXT_LIBS} ${GLOBUS_LIBS} ${TEST_LIBS} $<
        ./check.ll
 
@@ -118,4 +118,7 @@ ${LOGD_OBJS}: %.o: %.c
        ${CC} ${CFLAGS} ${GLOBUSINC} -c $< -o $@
 
 logd_proto_test.o: %.o: %.c
-       ${CC} ${CFLAGS} ${GLOBUSINC} -c $< -o $@
\ No newline at end of file
+       ${CC} ${CFLAGS} ${GLOBUSINC} -c $< -o $@
+
+ll_test.o: ll_test.cpp
+       ${CXX} ${CFLAGS} -c $< -0 $@
\ No newline at end of file
index 438c088..13855c1 100644 (file)
@@ -5,6 +5,10 @@
 #include <cppunit/extensions/TestFactoryRegistry.h>
 #include <cppunit/ui/text/TestRunner.h>
 
+extern "C" {
+#define DEFAULT_SOCKET "/tmp/interlogger.sock"
+char *socket_path = DEFAULT_SOCKET;
+}
 
 class LLTest: public  CppUnit::TestFixture
 {
@@ -15,20 +19,26 @@ class LLTest: public  CppUnit::TestFixture
 public:
 
   void setUp() {
+    pipe(pd);
   }
 
   void tearDown() {
+    close(pd[0]);
+    close(pd[1]);
   }
 
   void testProtoServer() {
   }
 
+private:
+  int  pd[2];
 };
 
 
 CPPUNIT_TEST_SUITE_REGISTRATION( LLTest );
 
-int main (int ac,const char *av[])
+int 
+main (int ac,const char *av[])
 {
        CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();
        CppUnit::TextUi::TestRunner runner;