summaryrefslogtreecommitdiffstats
path: root/tests/parsertest.sh
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-03-16 18:54:42 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-03-16 18:54:42 +0100
commit51e690f720b4a53a431e7a536b2fe8c25e866f7d (patch)
tree6722e6b94d03063db7e0705538976c266c7c934b /tests/parsertest.sh
parent8f8e2cd66bd7f1e35f7bf0678e25bbdb99d67093 (diff)
downloadrsyslog-51e690f720b4a53a431e7a536b2fe8c25e866f7d.tar.gz
rsyslog-51e690f720b4a53a431e7a536b2fe8c25e866f7d.tar.xz
rsyslog-51e690f720b4a53a431e7a536b2fe8c25e866f7d.zip
fixed some portability issues
first noticed on FreeBSD Also, some cosmetic improvements.
Diffstat (limited to 'tests/parsertest.sh')
-rwxr-xr-xtests/parsertest.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/parsertest.sh b/tests/parsertest.sh
index fabe7e8d..a6b7d45c 100755
--- a/tests/parsertest.sh
+++ b/tests/parsertest.sh
@@ -1,5 +1,11 @@
-#!/bin/bash -e
echo test parsertest via udp
./nettester parse1 udp
+if [ "$?" -ne "0" ]; then
+ exit 1
+fi
+
echo test parsertest via tcp
./nettester parse1 tcp
+if [ "$?" -ne "0" ]; then
+ exit 1
+fi