Unverified Commit 72290427 authored by IKEDA Soji's avatar IKEDA Soji Committed by GitHub
Browse files

Merge pull request #1309 from ikedas/warn_in_tests by ikedas

Suppress non-fatal warnings in the tests
parents a6b8d99b 12b5f1f1
......@@ -38,8 +38,9 @@ is(($scenario->authz('smtp', {}) || {})->{action}, 'reject');
# ToDo: compile()
my $fh;
# GH issue #860: Crash by bad syntax of regexp
open my $fh, '>', $Conf::Conf{'etc'} . '/scenari/send.bad_regexp';
open $fh, '>', $Conf::Conf{'etc'} . '/scenari/send.bad_regexp';
print $fh <<'EOF';
match([sender],/[custom_vars->sender_whitelist]/) smtp,dkim,md5,smime -> do_it
EOF
......@@ -48,7 +49,7 @@ $scenario = Sympa::Scenario->new($list, 'send', name => 'bad_regexp');
is(($scenario->authz('smtp', {}) || {})->{action},
'reject', 'bad regexp syntax');
# ... and legitimate case
open my $fh, '>', $Conf::Conf{'etc'} . '/scenari/send.good_regexp';
open $fh, '>', $Conf::Conf{'etc'} . '/scenari/send.good_regexp';
print $fh <<'EOF';
match([sender],/[domain]/) smtp,dkim,md5,smime -> do_it
EOF
......
......@@ -23,6 +23,7 @@ my $params = {
date_from_formated => 0,
date_to_formated => 0,
total_results => 2,
to => 'mbox@dom.ain',
};
my @def_tt2 = _templates('default', '*.tt2 sympa.wsdl');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment