1# Test that regline, getfields and countlinesmatching do not loop endlessly if 2# supplied with a directory (Redmine #2453) 3 4body common control 5{ 6 inputs => { "../../default.cf.sub" }; 7 bundlesequence => { default("$(this.promise_filename)") }; 8} 9 10bundle common init 11{ 12} 13 14bundle agent test 15{ 16 classes: 17 "foo" expression => regline("foo", "/"); 18 19 vars: 20 "bar" int => getfields(".*", "/", ":", "foo"); 21 "baz" int => countlinesmatching(".*", "/"); 22} 23 24bundle agent check 25{ 26 reports: 27 "$(this.promise_filename) Pass"; 28} 29