From d2d8cc9c1b65bedeafaa3a06ed53cbc8511be9a3 Mon Sep 17 00:00:00 2001
From: Rainer Gerhards <rgerhards@adiscon.com>
Date: Thu, 9 Apr 2009 14:45:23 +0200
Subject: fixed testbench compilation problem on Solaris

Solaris network libraries needed to be specified
in linker options
---
 tests/Makefile.am | 4 +++-
 tests/manytcp.sh  | 1 +
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/Makefile.am b/tests/Makefile.am
index 6d3c8725..87dca985 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -33,9 +33,11 @@ EXTRA_DIST= 1.rstest 2.rstest 3.rstest err1.rstest \
 	   cfg.sh
 
 ourtail_SOURCES = ourtail.c
-tcpflood_SOURCES = tcpflood.c
 chkseq_SOURCES = chkseq.c
 
+tcpflood_SOURCES = tcpflood.c
+tcpflood_LDADD = $(SOL_LIBS)
+
 nettester_SOURCES = nettester.c getline.c
 nettester_LDADD = $(SOL_LIBS)
 
diff --git a/tests/manytcp.sh b/tests/manytcp.sh
index b38245df..f0a3eb96 100755
--- a/tests/manytcp.sh
+++ b/tests/manytcp.sh
@@ -1,5 +1,6 @@
 rm -f rsyslog.out.log # work file
 ../tools/rsyslogd -c4 -u2 -n -irsyslog.pid -M../runtime/.libs:../.libs -f$srcdir/testsuites/manytcp.conf &
+sleep 1
 echo "rsyslogd started with pid " `cat rsyslog.pid`
 ./tcpflood 127.0.0.1 13514 1000 20000
 sleep 1
-- 
cgit