From 37378d0e22e1c178f59aea62c0a8abcc03362f2e Mon Sep 17 00:00:00 2001 From: Andrey Arutiunian Date: Fri, 21 Jul 2023 14:15:22 +0300 Subject: [PATCH] return stackoverflow_test --- tests/python/tests/job_workers/test_job_errors.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/python/tests/job_workers/test_job_errors.py b/tests/python/tests/job_workers/test_job_errors.py index e2a59dc079..c60e4abf6e 100644 --- a/tests/python/tests/job_workers/test_job_errors.py +++ b/tests/python/tests/job_workers/test_job_errors.py @@ -75,6 +75,13 @@ def test_job_exception_error(self): "Error 0: Test exception" ]) + def test_job_stack_overflow_error(self): + self.job_error_test_impl("stack_overflow", self.JOB_STACK_OVERFLOW_ERROR, data=[[1, 2, 3, 4, 5]], buffers=2) + self.kphp_server.assert_log([ + "Critical error during script execution: sigsegv\\(stack overflow\\)", + "Error -1: Callstack overflow" + ]) + def test_job_php_assert_error(self): self.job_error_test_impl("php_assert", self.JOB_PHP_ASSERT_ERROR) self.kphp_server.assert_log(2 * [