[Groonga-commit] groonga/groonga at e99717d [master] test: remove needless test

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Dec 30 12:30:52 JST 2014


Kouhei Sutou	2014-12-30 12:30:52 +0900 (Tue, 30 Dec 2014)

  New Revision: e99717daa7a6961a0d88d111ad853b39f9aad657
  https://github.com/groonga/groonga/commit/e99717daa7a6961a0d88d111ad853b39f9aad657

  Message:
    test: remove needless test

  Removed files:
    test/unit/core/test-command-select-filter-invalid.c
  Modified files:
    test/unit/core/Makefile.am

  Modified: test/unit/core/Makefile.am (+0 -2)
===================================================================
--- test/unit/core/Makefile.am    2014-12-30 12:28:03 +0900 (1bd6e09)
+++ test/unit/core/Makefile.am    2014-12-30 12:30:52 +0900 (224a3fe)
@@ -47,7 +47,6 @@ noinst_LTLIBRARIES =				\
 	test-command-select.la			\
 	test-command-select-sort.la		\
 	test-command-select-prefix-search.la	\
-	test-command-select-filter-invalid.la	\
 	test-command-select-query.la		\
 	test-command-select-filter.la		\
 	test-command-select-geo.la		\
@@ -135,7 +134,6 @@ test_command_column_rename_la_SOURCES	= test-command-column-rename.c
 test_command_select_la_SOURCES		= test-command-select.c
 test_command_select_sort_la_SOURCES	= test-command-select-sort.c
 test_command_select_prefix_search_la_SOURCES	= test-command-select-prefix-search.c
-test_command_select_filter_invalid_la_SOURCES	= test-command-select-filter-invalid.c
 test_command_select_query_la_SOURCES	= test-command-select-query.c
 test_command_select_filter_la_SOURCES	= test-command-select-filter.c
 test_command_select_geo_la_SOURCES	= test-command-select-geo.c

  Deleted: test/unit/core/test-command-select-filter-invalid.c (+0 -103) 100644
===================================================================
--- test/unit/core/test-command-select-filter-invalid.c    2014-12-30 12:28:03 +0900 (054f6a6)
+++ /dev/null
@@ -1,103 +0,0 @@
-/* -*- c-basic-offset: 2; coding: utf-8 -*- */
-/*
-  Copyright(C) 2010-2011 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 version 2.1 as published by the Free Software Foundation.
-
-  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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-#include "grn_str.h"
-#include <stdio.h>
-
-#include <gcutter.h>
-
-#include "../lib/grn-assertions.h"
-
-void test_no_operator_and_parentheses_column(void);
-
-static gchar *tmp_directory;
-
-static grn_ctx *context;
-static grn_obj *database;
-
-void
-cut_startup(void)
-{
-  tmp_directory = g_build_filename(grn_test_get_tmp_dir(),
-                                   "command-select-filter-invalid",
-                                   NULL);
-}
-
-void
-cut_shutdown(void)
-{
-  g_free(tmp_directory);
-}
-
-static void
-remove_tmp_directory(void)
-{
-  cut_remove_path(tmp_directory, NULL);
-}
-
-static void
-setup_data(void)
-{
-  assert_send_commands("table_create Sites TABLE_HASH_KEY ShortText\n"
-                       "column_create Sites uri COLUMN_SCALAR ShortText\n"
-                       "load --table Sites\n"
-                       "[\n"
-                       "[\"_key\",\"uri\"],\n"
-                       "[\"groonga\",\"http://groonga.org/\"],\n"
-                       "[\"razil\",\"http://razil.jp/\"]\n"
-                       "]");
-}
-
-void
-cut_setup(void)
-{
-  const gchar *database_path;
-
-  remove_tmp_directory();
-  g_mkdir_with_parents(tmp_directory, 0700);
-
-  context = g_new0(grn_ctx, 1);
-  grn_ctx_init(context, 0);
-
-  database_path = cut_build_path(tmp_directory, "database.groonga", NULL);
-  database = grn_db_create(context, database_path, NULL);
-
-  setup_data();
-}
-
-void
-cut_teardown(void)
-{
-  if (context) {
-    grn_obj_unlink(context, database);
-    grn_ctx_fin(context);
-    g_free(context);
-  }
-
-  remove_tmp_directory();
-}
-
-void
-test_no_operator_and_parentheses_column(void)
-{
-  grn_test_assert_send_command_error(
-    context,
-    GRN_INVALID_ARGUMENT,
-    "invalid function: <\"groonga\">",
-    "select Sites --filter \"_key != \\\"groonga\\\" ()\"");
-}
-------------- next part --------------
HTML����������������������������...
下载 



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