]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Test] Added check if there was no segfault during the test run 2466/head
authorMikhail Galanin <mgalanin@mimecast.com>
Thu, 6 Sep 2018 16:43:59 +0000 (17:43 +0100)
committerMikhail Galanin <mgalanin@mimecast.com>
Thu, 6 Sep 2018 16:43:59 +0000 (17:43 +0100)
test/functional/lib/rspamd.robot

index 35d91beb7afd04df81c8acadacca75131ab3e4b6..27cdf97fbd99e6f378b93d54402b4dc395573a80 100644 (file)
@@ -70,9 +70,14 @@ Generic Teardown
   [Arguments]  @{ports}
   Run Keyword If  '${CONTROLLER_ERRORS}' == 'True'  Check Controller Errors
   Shutdown Process With Children  ${RSPAMD_PID}
+  Log do not contain segfault record
   Save Run Results  ${TMPDIR}  rspamd.log redis.log rspamd.conf clickhouse-server.log clickhouse-server.err.log clickhouse-config.xml
   Cleanup Temporary Directory  ${TMPDIR}
 
+Log do not contain segfault record
+  ${log} =  Get File  ${TMPDIR}/rspamd.log
+  Should not contain  ${log}  Segmentation fault:  msg=Segmentation fault detected
+
 Log Logs
   [Arguments]  ${logfile}  ${position}
   ${the_log}  ${position} =  Read Log From Position  ${logfile}  ${position}