1 |
commit: bb11ef195710b977eb2165bd8600a83c4cc88e7d |
2 |
Author: Brian Evans <grknight <AT> lavabit <DOT> com> |
3 |
AuthorDate: Thu Aug 2 19:13:06 2012 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 2 19:13:06 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mysql-extras.git;a=commit;h=bb11ef19 |
7 |
|
8 |
Patch to fix unit tests that randomly fail on ma_test2 binary. Bugs #41001 #423467 |
9 |
|
10 |
--- |
11 |
00000_index.txt | 5 +++++ |
12 |
20000_all_mariadb_fix_tests.patch | 20 ++++++++++++++++++++ |
13 |
2 files changed, 25 insertions(+), 0 deletions(-) |
14 |
|
15 |
diff --git a/00000_index.txt b/00000_index.txt |
16 |
index ad79cd7..59e6c46 100644 |
17 |
--- a/00000_index.txt |
18 |
+++ b/00000_index.txt |
19 |
@@ -1410,3 +1410,8 @@ |
20 |
@ver 5.02.07.00 to 5.03.99.99 |
21 |
@pn mariadb |
22 |
@@ Fix duplicate entries for files on support-files/Makefile.am |
23 |
+ |
24 |
+@patch 20000_all_mariadb_fix_tests.patch |
25 |
+@ver 5.01.00.00 to 5.03.99.99 |
26 |
+@pn mariadb |
27 |
+@@ Fix bad index in the ma_test2 unit test binary |
28 |
|
29 |
diff --git a/20000_all_mariadb_fix_tests.patch b/20000_all_mariadb_fix_tests.patch |
30 |
new file mode 100644 |
31 |
index 0000000..e5959c0 |
32 |
--- /dev/null |
33 |
+++ b/20000_all_mariadb_fix_tests.patch |
34 |
@@ -0,0 +1,20 @@ |
35 |
+--- mysql/storage/maria/ma_test2.c 2012-04-05 06:48:45.000000000 -0400 |
36 |
++++ mysql.new/storage/maria/ma_test2.c 2012-04-25 10:08:30.768603663 -0400 |
37 |
+@@ -259,7 +259,7 @@ |
38 |
+ for (i=0 ; i < recant ; i++) |
39 |
+ { |
40 |
+ ulong blob_length; |
41 |
+- n1=rnd(1000); n2=rnd(100); n3=rnd(5000); |
42 |
++ n1=rnd(1000); n2=rnd(100); n3=rnd(4999); |
43 |
+ sprintf((char*) record,"%6d:%4d:%8d:Pos: %4d ",n1,n2,n3,write_count); |
44 |
+ int4store(record+STANDARD_LENGTH-4,(long) i); |
45 |
+ fix_length(record,(uint) STANDARD_LENGTH+rnd(60)); |
46 |
+@@ -374,7 +374,7 @@ |
47 |
+ |
48 |
+ for (i=0 ; i < update_count ; i++) |
49 |
+ { |
50 |
+- n1=rnd(1000); n2=rnd(100); n3=rnd(5000); |
51 |
++ n1=rnd(1000); n2=rnd(100); n3=rnd(4999); |
52 |
+ sprintf((char*) record2,"%6d:%4d:%8d:XXX: %4d ",n1,n2,n3,update); |
53 |
+ int4store(record2+STANDARD_LENGTH-4,(long) i); |
54 |
+ fix_length(record2,(uint) STANDARD_LENGTH+rnd(60)); |