[Groonga-mysql-commit] mroonga/mroonga [master] test: use check_version.inc

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Nov 19 22:11:17 JST 2012


Kouhei Sutou	2012-11-19 22:11:17 +0900 (Mon, 19 Nov 2012)

  New Revision: a585cb641fd48ebf53700103f56229560ace1074
  https://github.com/mroonga/mroonga/commit/a585cb641fd48ebf53700103f56229560ace1074

  Log:
    test: use check_version.inc

  Modified files:
    test/sql/include/have_fulltext_index_comment.inc

  Modified: test/sql/include/have_fulltext_index_comment.inc (+23 -5)
===================================================================
--- test/sql/include/have_fulltext_index_comment.inc    2012-11-19 22:10:28 +0900 (2dedd63)
+++ test/sql/include/have_fulltext_index_comment.inc    2012-11-19 22:11:17 +0900 (7454d21)
@@ -1,7 +1,25 @@
---disable_query_log
-let $fulltext_index_comment = `SELECT @@global.version >= '5.5'`;
---enable_query_log
-if (!$fulltext_index_comment)
-{
+# Copyright(C) 2012 Kouhei Sutou <kou �� clear-code.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+--source include/check_version.inc
+
+if ($version_55_or_later) {
+  let $fulltext_index_comment = `SELECT @@global.version >= '5.5'`;
+}
+
+if (!$fulltext_index_comment) {
   skip Fulltext index comment is available in version 5.5 or later;
 }
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index