aboutsummaryrefslogtreecommitdiff
path: root/databases/mysql57-server/files/rapid_plugin-patch-_x_mysqlxtest__src_mysqlxtest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'databases/mysql57-server/files/rapid_plugin-patch-_x_mysqlxtest__src_mysqlxtest.cc')
-rw-r--r--databases/mysql57-server/files/rapid_plugin-patch-_x_mysqlxtest__src_mysqlxtest.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/databases/mysql57-server/files/rapid_plugin-patch-_x_mysqlxtest__src_mysqlxtest.cc b/databases/mysql57-server/files/rapid_plugin-patch-_x_mysqlxtest__src_mysqlxtest.cc
new file mode 100644
index 000000000000..078f3106848b
--- /dev/null
+++ b/databases/mysql57-server/files/rapid_plugin-patch-_x_mysqlxtest__src_mysqlxtest.cc
@@ -0,0 +1,12 @@
+--- rapid/plugin/x/mysqlxtest_src/mysqlxtest.cc.orig 2016-03-28 18:06:12 UTC
++++ rapid/plugin/x/mysqlxtest_src/mysqlxtest.cc
+@@ -1661,7 +1661,8 @@ private:
+ if (2 == argl.size())
+ tolerance = atoi(argl[1].c_str());
+
+- if (abs(expected_msec - msec) > tolerance)
++#define my_abs_64(x) ((x) < 0 ? (-x) : (x))
++ if (my_abs_64((expected_msec - msec)) > tolerance)
+ {
+ std::cerr << "Timeout should occur after " << expected_msec << "ms, but it was " << msec <<"ms. \n";
+ return Stop_with_failure;