Skip to content

Commit

Permalink
return stackoverflow_test
Browse files Browse the repository at this point in the history
  • Loading branch information
andarut committed Jul 21, 2023
1 parent 823ffdb commit 37378d0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/python/tests/job_workers/test_job_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 * [
Expand Down

0 comments on commit 37378d0

Please sign in to comment.