[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] add debug log to test codes.

Back to archive index

Tetsuro IKEDA null+****@clear*****
Thu Oct 4 10:29:27 JST 2012


Tetsuro IKEDA	2009-06-30 13:49:00 +0900 (Tue, 30 Jun 2009)

  New Revision: 4501bb44ef75627b92afdf2aee0c841b67fdfa0f
  https://github.com/mroonga/mroonga/commit/4501bb44ef75627b92afdf2aee0c841b67fdfa0f

  Log:
    add debug log to test codes.

  Modified files:
    test/unit/test-driver.c

  Modified: test/unit/test-driver.c (+10 -0)
===================================================================
--- test/unit/test-driver.c    2009-06-30 13:39:48 +0900 (6453a25)
+++ test/unit/test-driver.c    2009-06-30 13:49:00 +0900 (6a4731a)
@@ -3,6 +3,9 @@
 #include <glib/gstdio.h>
 #include "driver.h"
 
+#define TEST_ENTER do { GRN_LOG(ctx, GRN_LOG_DEBUG,             \
+                                "%s", __FUNCTION__);} while(0)
+
 static gchar *base_directory;
 static gchar *tmp_directory;
 static grn_ctx *ctx;
@@ -39,11 +42,13 @@ void cut_teardown()
 
 void test_mrn_flush_logs()
 {
+  TEST_ENTER;
   cut_assert_equal_int(0, mrn_flush_logs(ctx));
 }
 
 void test_mrn_hash_put()
 {
+  TEST_ENTER;
   const char *key1 = "aa";
   const char *key2 = "bbb";
   const char *key3 = "cccc";
@@ -64,6 +69,7 @@ void test_mrn_hash_put()
 
 void test_mrn_hash_get()
 {
+  TEST_ENTER;
   const char *key1 = "aa";
   const char *key2 = "bbb";
   const char *key3 = "cccc";
@@ -96,6 +102,7 @@ void test_mrn_hash_get()
 
 void test_mrn_hash_remove()
 {
+  TEST_ENTER;
   const char *key1 = "aa";
   const char *key2 = "bbb";
   const char *key3 = "cccc";
@@ -125,6 +132,7 @@ void test_mrn_hash_remove()
 
 void test_mrn_init_create_info()
 {
+  TEST_ENTER;
   uint n_columns = 8, i;
   mrn_create_info *info;
   info = mrn_init_create_info(ctx, n_columns);
@@ -145,6 +153,7 @@ void test_mrn_init_create_info()
 
 void test_mrn_deinit_create_info()
 {
+  TEST_ENTER;
   mrn_create_info *info = mrn_init_create_info(ctx, 8);
   cut_assert_not_null(info);
   cut_assert_equal_int(0, mrn_deinit_create_info(ctx, info));
@@ -152,6 +161,7 @@ void test_mrn_deinit_create_info()
 
 void test_mrn_create()
 {
+  TEST_ENTER;
   grn_obj *obj,*obj2;
 
   mrn_create_info *info = mrn_init_create_info(ctx, 2);
-------------- next part --------------
HTML����������������������������...
Download 



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