Kouhei Sutou
null+****@clear*****
Wed Aug 31 16:16:26 JST 2016
Kouhei Sutou 2016-08-31 16:16:26 +0900 (Wed, 31 Aug 2016) New Revision: c70a3476b297d216c5edd19180385af4d164bce2 https://github.com/groonga/groonga/commit/c70a3476b297d216c5edd19180385af4d164bce2 Message: test: not use NULL for key length location Modified files: test/unit/core/dat/test-dat.cpp Modified: test/unit/core/dat/test-dat.cpp (+3 -1) =================================================================== --- test/unit/core/dat/test-dat.cpp 2016-08-31 15:52:33 +0900 (1423d5f) +++ test/unit/core/dat/test-dat.cpp 2016-08-31 16:16:26 +0900 (2a8dde7) @@ -696,7 +696,9 @@ namespace test_dat cppcut_assert_equal(length, key_length); cppcut_assert_equal(keys[i], std::string(key_ptr, key_length)); } - cppcut_assert_null(_grn_dat_key(&ctx, dat, GRN_ID_NIL, NULL)); + uint32_t key_length; + cppcut_assert_null(_grn_dat_key(&ctx, dat, GRN_ID_NIL, &key_length)); + cppcut_assert_equal(static_cast<uint32_t>(0), key_length); grn_test_assert_equal_rc(GRN_SUCCESS, grn_dat_close(&ctx, dat)); } -------------- next part -------------- HTML����������������������������... 다운로드