[Groonga-commit] groonga/groonga [master] use different path for each hash related test.

Back to archive index

null+****@clear***** null+****@clear*****
2010年 11月 21日 (日) 13:43:00 JST


Kouhei Sutou	2010-11-21 04:43:00 +0000 (Sun, 21 Nov 2010)

  New Revision: 6ae94ed07ae06cdab9662a933e9693b77aa95b8a

  Log:
    use different path for each hash related test.

  Modified files:
    test/unit/core/test-hash-sort.c
    test/unit/core/test-hash.h
    test/unit/core/test-table-patricia-trie-cursor.c

  Modified: test/unit/core/test-hash-sort.c (+1 -1)
===================================================================
--- test/unit/core/test-hash-sort.c    2010-11-21 04:25:50 +0000 (737a1fa)
+++ test/unit/core/test-hash-sort.c    2010-11-21 04:43:00 +0000 (922459b)
@@ -47,7 +47,7 @@ cut_shutdown(void)
 void
 cut_setup(void)
 {
-  setup_hash_common("hash");
+  setup_hash_common("hash-sort");
   keys = NULL;
   values = NULL;
   sort_result = NULL;

  Modified: test/unit/core/test-hash.h (+1 -1)
===================================================================
--- test/unit/core/test-hash.h    2010-11-21 04:25:50 +0000 (5ad16b3)
+++ test/unit/core/test-hash.h    2010-11-21 04:43:00 +0000 (f9a31d8)
@@ -86,7 +86,7 @@ setup_hash_common(const gchar *default_path_component)
   sample_id = GRN_ID_NIL;
 
   base_dir = grn_test_get_tmp_dir();
-  default_path = g_build_filename(base_dir, "hash", NULL);
+  default_path = g_build_filename(base_dir, default_path_component, NULL);
   grn_test_hash_factory_set_path(factory, default_path);
   g_free(default_path);
 

  Modified: test/unit/core/test-table-patricia-trie-cursor.c (+1 -0)
===================================================================
--- test/unit/core/test-table-patricia-trie-cursor.c    2010-11-21 04:25:50 +0000 (9751fce)
+++ test/unit/core/test-table-patricia-trie-cursor.c    2010-11-21 04:43:00 +0000 (bb5eef8)
@@ -73,6 +73,7 @@ void
 cut_shutdown(void)
 {
   g_free(tmp_directory);
+  cut_remove_path(grn_test_get_tmp_dir(), NULL);
 }
 
 static void




Groonga-commit メーリングリストの案内
Back to archive index