From 25d134df9c50a797636f16ade652173fda8ba7c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Mon, 1 Jul 2019 17:18:22 +0300 Subject: [PATCH] Too slow a system isn't a test failure If testing cannot be reliably performed, the test should be skipped to minimize unnecessary work that non-deterministic failures cause. --- maxscale-system-test/mxs173_throttle_filter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maxscale-system-test/mxs173_throttle_filter.cpp b/maxscale-system-test/mxs173_throttle_filter.cpp index 871c2c716..1ce5dfd1b 100644 --- a/maxscale-system-test/mxs173_throttle_filter.cpp +++ b/maxscale-system-test/mxs173_throttle_filter.cpp @@ -132,7 +132,7 @@ void gauge_raw_speed(TestConnections& test) std::ostringstream os; os << "The raw speed is too slow, " << rs.qps << "qps, compared to max_qps = " << max_qps << "qps for accurate testing."; - test.add_result(1, "%s", os.str().c_str()); + exit(0); } }