[Groonga-commit] groonga/groonga at daee2bb [master] test: fix style

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Mon Nov 2 18:42:14 JST 2015


Kouhei Sutou	2015-11-02 18:42:14 +0900 (Mon, 02 Nov 2015)

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

  Message:
    test: fix style
    
    We should reuse ctx instead of resetting rc.

  Modified files:
    test/unit/core/dat/test-dat-pat.cpp

  Modified: test/unit/core/dat/test-dat-pat.cpp (+4 -0)
===================================================================
--- test/unit/core/dat/test-dat-pat.cpp    2015-11-02 18:25:47 +0900 (2471fdd)
+++ test/unit/core/dat/test-dat-pat.cpp    2015-11-02 18:42:14 +0900 (3cc385b)
@@ -263,8 +263,10 @@ namespace test_dat_pat
 
     grn_test_assert_equal_rc(GRN_INVALID_ARGUMENT,
                              grn_pat_delete_by_id(&ctx, NULL, 1, NULL));
+    ctx.rc = GRN_SUCCESS; // TODO: We should use different ctx instead of reset
     grn_test_assert_equal_rc(GRN_INVALID_ARGUMENT,
                              grn_dat_delete_by_id(&ctx, NULL, 1, NULL));
+    ctx.rc = GRN_SUCCESS; // TODO: We should use different ctx instead of reset
 
     std::vector<std::string> keys;
     create_keys(&keys, 1000, 3, 5);
@@ -308,8 +310,10 @@ namespace test_dat_pat
 
     grn_test_assert_equal_rc(GRN_INVALID_ARGUMENT,
                              grn_pat_delete(&ctx, NULL, "XYZ", 3, NULL));
+    ctx.rc = GRN_SUCCESS; // TODO: We should use different ctx instead of reset
     grn_test_assert_equal_rc(GRN_INVALID_ARGUMENT,
                              grn_dat_delete(&ctx, NULL, "XYZ", 3, NULL));
+    ctx.rc = GRN_SUCCESS; // TODO: We should use different ctx instead of reset
 
     std::vector<std::string> keys;
     create_keys(&keys, 1000, 3, 5);
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index