From ca5e1f6d959ed8f027734d85b622a543db5c0418 Mon Sep 17 00:00:00 2001 From: "sasha@mysql.sashanet.com" <> Date: Tue, 12 Dec 2000 08:24:50 -0700 Subject: [PATCH] test case for a coredump on merge tables. Sergei or Monty, can you fix this? --- mysql-test/mysql-test-run | 16 +++++++++------- mysql-test/r/mrg000002.result | 0 mysql-test/std_data/m.MRG | 0 mysql-test/std_data/m.frm | Bin 0 -> 8548 bytes mysql-test/t/mrg000002.test | 2 ++ 5 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 mysql-test/r/mrg000002.result create mode 100644 mysql-test/std_data/m.MRG create mode 100644 mysql-test/std_data/m.frm create mode 100644 mysql-test/t/mrg000002.test diff --git a/mysql-test/mysql-test-run b/mysql-test/mysql-test-run index 111dd0b41cc..2cece3f3312 100755 --- a/mysql-test/mysql-test-run +++ b/mysql-test/mysql-test-run @@ -43,6 +43,7 @@ cd .. BASEDIR=`pwd` cd $CWD MYSQL_TEST_DIR=$BASEDIR/mysql-test +STD_DATA=$MYSQL_TEST_DIR/std_data TESTDIR="$MYSQL_TEST_DIR/t/" TESTSUFFIX=test @@ -127,6 +128,7 @@ else INSTALL_DB="../scripts/install_test_db -bin" fi + SLAVE_MYSQLD=$MYSQLD #this will be changed later if we are doing gcov @@ -394,8 +396,8 @@ mysql_restart () { } mysql_loadstd () { - - #sleep 2 + + cp $STD_DATA/*.frm $STD_DATA/*.MRG $MASTER_MYDDIR/test return 1 } @@ -506,11 +508,11 @@ then [ $res = 1 ] && echo_ok fi -#$SETCOLOR_NORMAL && $ECHO -n "Loading Standard Test Database" -#mysql_loadstd -#res=$? -#[ $res != 1 ] && echo_notok && error "Loading STD" -#[ $res = 1 ] && echo_ok +$SETCOLOR_NORMAL && $ECHO -n "Loading Standard Test Database" +mysql_loadstd +res=$? +[ x$res != x1 ] && echo_notok && error "Loading STD" +[ x$res = x1 ] && echo_ok $SETCOLOR_NORMAL && $ECHO -n "Starting Tests for MySQL $TESTVER Series" $SETCOLOR_SUCCESS && echo_ok diff --git a/mysql-test/r/mrg000002.result b/mysql-test/r/mrg000002.result new file mode 100644 index 00000000000..e69de29bb2d diff --git a/mysql-test/std_data/m.MRG b/mysql-test/std_data/m.MRG new file mode 100644 index 00000000000..e69de29bb2d diff --git a/mysql-test/std_data/m.frm b/mysql-test/std_data/m.frm new file mode 100644 index 0000000000000000000000000000000000000000..fc684891d9e8936767bb8f52836d4c6ace7b1244 GIT binary patch literal 8548 zcmeI%F%E+;429um7quuX45%|}C%SNt-T@B6$qDY_4RvkR|1EJGC5pZ=+3i*?Qg6~T z26f7Kt2QTR#WYFd*&=-e5I_I{1Q0*~0R#|0009IL_!5DuTs7}f$4vGp5I_I{1Q0*~ z0R#|0009ILK;X9pR*O&nKaR;XtAs$OCLLb7NB^B!ZazHnQRG7rXZWJVOL1w7{dK82 E07cOcPXGV_ literal 0 HcmV?d00001 diff --git a/mysql-test/t/mrg000002.test b/mysql-test/t/mrg000002.test new file mode 100644 index 00000000000..88da6311cc1 --- /dev/null +++ b/mysql-test/t/mrg000002.test @@ -0,0 +1,2 @@ +use test; +@r/mrg000002.result select * from m;