summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@lavabit.com>2012-08-02 15:13:06 -0400
committerBrian Evans <grknight@lavabit.com>2012-08-02 15:13:06 -0400
commitbb11ef195710b977eb2165bd8600a83c4cc88e7d (patch)
tree6aa12e2bb48b9a0f62812e08c689dc4cbe6509ca /20000_all_mariadb_fix_tests.patch
parentMerge branch 'master' of git+ssh://git.overlays.gentoo.org/proj/mysql-extras (diff)
downloadmysql-extras-bb11ef195710b977eb2165bd8600a83c4cc88e7d.tar.gz
mysql-extras-bb11ef195710b977eb2165bd8600a83c4cc88e7d.tar.bz2
mysql-extras-bb11ef195710b977eb2165bd8600a83c4cc88e7d.zip
Patch to fix unit tests that randomly fail on ma_test2 binary. Bugs #41001 #423467
Diffstat (limited to '20000_all_mariadb_fix_tests.patch')
-rw-r--r--20000_all_mariadb_fix_tests.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/20000_all_mariadb_fix_tests.patch b/20000_all_mariadb_fix_tests.patch
new file mode 100644
index 0000000..e5959c0
--- /dev/null
+++ b/20000_all_mariadb_fix_tests.patch
@@ -0,0 +1,20 @@
+--- mysql/storage/maria/ma_test2.c 2012-04-05 06:48:45.000000000 -0400
++++ mysql.new/storage/maria/ma_test2.c 2012-04-25 10:08:30.768603663 -0400
+@@ -259,7 +259,7 @@
+ for (i=0 ; i < recant ; i++)
+ {
+ ulong blob_length;
+- n1=rnd(1000); n2=rnd(100); n3=rnd(5000);
++ n1=rnd(1000); n2=rnd(100); n3=rnd(4999);
+ sprintf((char*) record,"%6d:%4d:%8d:Pos: %4d ",n1,n2,n3,write_count);
+ int4store(record+STANDARD_LENGTH-4,(long) i);
+ fix_length(record,(uint) STANDARD_LENGTH+rnd(60));
+@@ -374,7 +374,7 @@
+
+ for (i=0 ; i < update_count ; i++)
+ {
+- n1=rnd(1000); n2=rnd(100); n3=rnd(5000);
++ n1=rnd(1000); n2=rnd(100); n3=rnd(4999);
+ sprintf((char*) record2,"%6d:%4d:%8d:XXX: %4d ",n1,n2,n3,update);
+ int4store(record2+STANDARD_LENGTH-4,(long) i);
+ fix_length(record2,(uint) STANDARD_LENGTH+rnd(60));