aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMikhail Galanin <mgalanin@mimecast.com>2018-09-06 17:43:59 +0100
committerMikhail Galanin <mgalanin@mimecast.com>2018-09-06 17:43:59 +0100
commit4e96718ad3e4040ab8899c092aede3c22073cfb0 (patch)
treef144e8f68c7a9e023f985f73637312285aa09ae6 /test
parent1619963b3e2f597fdd68f747b1623ac361541dd3 (diff)
downloadrspamd-4e96718ad3e4040ab8899c092aede3c22073cfb0.tar.gz
rspamd-4e96718ad3e4040ab8899c092aede3c22073cfb0.zip
[Test] Added check if there was no segfault during the test run
Diffstat (limited to 'test')
-rw-r--r--test/functional/lib/rspamd.robot5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/lib/rspamd.robot b/test/functional/lib/rspamd.robot
index 35d91beb7..27cdf97fb 100644
--- a/test/functional/lib/rspamd.robot
+++ b/test/functional/lib/rspamd.robot
@@ -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}