Kouhei Sutou
kou****@cozmi*****
2008年 9月 12日 (金) 11:58:07 JST
須藤です。
けっこう自信がないのですが、sen_ii_update()の動作がおかしそうなところを
見つけました。原因までは追っていません。ごめんなさい。
test/unit/test-inverted-index.c:test_crud_may_be_bug()を見てほしいのですが、
テストに関係のないはずのレコードID 4のための行を削除したりすると動きが
変わります。手元だと、そのまま動かすとテストが失敗します。
1) Failure: test_crud_may_be_bug
<NULL == retrieve_record_ids("検索")>
expected: <()>
but was: <("3")>
./test-inverted-index.c:464: test_crud_may_be_bug()
しかし、
add_data(4, 1, "INSTALL.JA"); /* this test will be passed if this line
is removed */
という行を削除するとテストがパスするようになります。
またテストの方が悪いのかどうかはわからないのですがとりあえず
報告しておきます。
ところで、test/unit/stress/test-stress-inverted-index.cも必要ですか?