Below is the list of changes that have just been committed into a local
5.0 repository of ram. When ram does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet
1.1914 05/07/13 11:49:54 ramil@stripped +1 -0
a fix (bug #11808: Test case 'mysql_client_test' fails in assert 'double_data ==
o_double_data')
tests/mysql_client_test.c
1.133 05/07/13 11:49:45 ramil@stripped +14 -4
a fix (bug #11808: Test case 'mysql_client_test' fails in assert 'double_data ==
o_double_data')
cmp_double() introduced in order to avoid using long double registers
(for local double vars).
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: ramil
# Host: gw.mysql.r18.ru
# Root: /usr/home/ram/work/mysql-5.0
--- 1.132/tests/mysql_client_test.c 2005-07-12 13:58:14 +05:00
+++ 1.133/tests/mysql_client_test.c 2005-07-13 11:49:45 +05:00
@@ -173,6 +173,14 @@
#define mytest_r(x) if (x) {myerror(NULL);DIE_UNLESS(FALSE);}
+/* A workaround for Sun Forte 5.6 on Solaris x86 */
+
+static int cmp_double(double *a, double *b)
+{
+ return *a == *b;
+}
+
+
/* Print the error message */
static void print_error(const char *msg)
@@ -1645,7 +1653,7 @@
DIE_UNLESS(real_data == o_real_data);
DIE_UNLESS(length[5] == 4);
- DIE_UNLESS(double_data == o_double_data);
+ DIE_UNLESS(cmp_double(&double_data, &o_double_data));
DIE_UNLESS(length[6] == 8);
DIE_UNLESS(strcmp(data, str_data) == 0);
@@ -9858,7 +9866,7 @@
uint32 uint32_val;
longlong int64_val;
ulonglong uint64_val;
- double double_val, udouble_val;
+ double double_val, udouble_val, double_tmp;
char longlong_as_string[22], ulonglong_as_string[22];
/* mins and maxes */
@@ -10005,7 +10013,8 @@
DIE_UNLESS(int64_val == int64_min);
DIE_UNLESS(uint64_val == uint64_min);
DIE_UNLESS(double_val == (longlong) uint64_min);
- DIE_UNLESS(udouble_val == ulonglong2double(uint64_val));
+ double_tmp= ulonglong2double(uint64_val);
+ DIE_UNLESS(cmp_double(&udouble_val, &double_tmp));
DIE_UNLESS(!strcmp(longlong_as_string, "0"));
DIE_UNLESS(!strcmp(ulonglong_as_string, "0"));
@@ -10029,7 +10038,8 @@
DIE_UNLESS(int64_val == int64_max);
DIE_UNLESS(uint64_val == uint64_max);
DIE_UNLESS(double_val == (longlong) uint64_val);
- DIE_UNLESS(udouble_val == ulonglong2double(uint64_val));
+ double_tmp= ulonglong2double(uint64_val);
+ DIE_UNLESS(cmp_double(&udouble_val, &double_tmp));
DIE_UNLESS(!strcmp(longlong_as_string, "-1"));
DIE_UNLESS(!strcmp(ulonglong_as_string, "18446744073709551615"));
| Thread |
|---|
| • bk commit into 5.0 tree (ramil:1.1914) BUG#11808 | ramil | 13 Jul |