Blame tests/runaway_rule_v1.sh

Packit 1422b7
# added 2015-05-05 by Rainer Gerhards
Packit 1422b7
# This file is part of the liblognorm project, released under ASL 2.0
Packit 1422b7
# Note that this test produces an error message, as it encouters the
Packit 1422b7
# runaway rule. This is OK and actually must happen. The prime point
Packit 1422b7
# of the test is that it correctly loads the second rule, which
Packit 1422b7
# would otherwise be consumed by the runaway rule.
Packit 1422b7
. $srcdir/exec.sh
Packit 1422b7
Packit 1422b7
test_def $0 "runaway rule (unmatched percent signs) v1 version"
Packit 1422b7
Packit 1422b7
reset_rules
Packit 1422b7
add_rule 'rule=:test %f1:word unmatched percent'
Packit 1422b7
add_rule 'rule=:%field:word%'
Packit 1422b7
Packit 1422b7
execute 'data'
Packit 1422b7
assert_output_json_eq '{"field": "data"}'
Packit 1422b7
Packit 1422b7
cleanup_tmp_files