From 94f29a11c53b6f8fdf6a97ba2ff661699d88e2f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Tue, 20 Mar 2018 13:05:16 +0200 Subject: [PATCH] MXS-1724: Reimplement core dump detection Reimplemented the core dump detection for 2.2. --- maxscale-system-test/testconnections.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/maxscale-system-test/testconnections.cpp b/maxscale-system-test/testconnections.cpp index 33520e869..1b437907e 100644 --- a/maxscale-system-test/testconnections.cpp +++ b/maxscale-system-test/testconnections.cpp @@ -766,6 +766,10 @@ int TestConnections::copy_maxscale_logs(double timestamp) maxscales->ssh_node_f(i, true, "cp %s %s/", maxscales->maxscale_cnf[i], log_dir_i); maxscales->ssh_node_f(i, true, "chmod a+r -R %s", log_dir_i); } + + const char* command = "for i in `find /tmp/ -name 'core*'`; do test -e $i && exit 1; done"; + int rc = maxscales->ssh_node_f(i, true, command); + assert(rc == 0, "Test should not generate core files"); } return 0; }