diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-11-24 18:13:13 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-11-24 18:17:55 +0100 |
commit | 0248e97a5ec34b5a73cb4af73d97cf7baa29ad64 (patch) | |
tree | ed112e37cd26fcac66a691cafa8e26a617cd7c19 | |
parent | 8201173c6c2efd7a042361d9ef945ae94523e26b (diff) | |
download | rsyslog-0248e97a5ec34b5a73cb4af73d97cf7baa29ad64.tar.gz rsyslog-0248e97a5ec34b5a73cb4af73d97cf7baa29ad64.tar.bz2 rsyslog-0248e97a5ec34b5a73cb4af73d97cf7baa29ad64.zip |
testbench: stop-localvar did actually test msg vars - now fixed
-rw-r--r-- | tests/testsuites/stop-localvar.conf | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/testsuites/stop-localvar.conf b/tests/testsuites/stop-localvar.conf index 020ebd87..63df6509 100644 --- a/tests/testsuites/stop-localvar.conf +++ b/tests/testsuites/stop-localvar.conf @@ -5,17 +5,17 @@ * rgerhards, 2013-11-19 */ $IncludeConfig diag-common.conf -template(name="outfmt" type="string" string="%$!nbr%\n") +template(name="outfmt" type="string" string="%$.nbr%\n") module(load="../plugins/imtcp/.libs/imtcp") input(type="imtcp" port="13514") if $msg contains "msgnum:" then { - set $!nbr = field($msg, 58, 2); - if cnum($!nbr) < 100 then + set $.nbr = field($msg, 58, 2); + if cnum($.nbr) < 100 then stop /* check is intentionally more complex than needed! */ - else if not (cnum($!nbr) > 999) then { + else if not (cnum($.nbr) > 999) then { action(type="omfile" file="rsyslog.out.log" template="outfmt") } } |