diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2018-04-02 19:20:11 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2018-04-02 19:20:11 +0300 |
commit | 151160c1103166810daddf1e9cc7135cb6ccc321 (patch) | |
tree | d3f30502076f82237bc9d335a7408c7b88d121a5 /test/test_perl_application.py | |
parent | 1583d659ab55bab88df0c69d29165e89a9612455 (diff) | |
download | unit-151160c1103166810daddf1e9cc7135cb6ccc321.tar.gz unit-151160c1103166810daddf1e9cc7135cb6ccc321.tar.bz2 |
Tests: Perl script with syntax error.
Diffstat (limited to 'test/test_perl_application.py')
-rw-r--r-- | test/test_perl_application.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test_perl_application.py b/test/test_perl_application.py index 3d42f829..884c6dfb 100644 --- a/test/test_perl_application.py +++ b/test/test_perl_application.py @@ -135,6 +135,16 @@ class TestUnitPerlApplication(unit.TestUnitApplicationPerl): self.assertEqual(self.get()['body'], 'body\n', 'body io file') + @unittest.expectedFailure + def test_perl_application_syntax_error(self): + self.skip_alerts.extend([ + r'PSGI: Failed to parse script', + r'process \d+ exited on signal' + ]) + self.load('syntax_error') + + self.assertEqual(self.get()['status'], 500, 'syntax error') + def test_perl_keepalive_body(self): self.load('variables') |