Kouhei Sutou
null+****@clear*****
Wed Feb 10 14:27:38 JST 2016
Kouhei Sutou 2016-02-10 14:27:38 +0900 (Wed, 10 Feb 2016) New Revision: 2b0f12c1a771122b1ff7ac2200aefcddab45aefb https://github.com/groonga/groonga/commit/2b0f12c1a771122b1ff7ac2200aefcddab45aefb Message: object_remove test: add a test case for failing object_remove It's header is too small case. Added files: test/command/fixture/object_remove/too_small test/command/suite/object_remove/broken/too_small.expected test/command/suite/object_remove/broken/too_small.test Added: test/command/fixture/object_remove/too_small (+1 -0) 100644 =================================================================== --- /dev/null +++ test/command/fixture/object_remove/too_small 2016-02-10 14:27:38 +0900 (e4234d4) @@ -0,0 +1 @@ +GROONGA Added: test/command/suite/object_remove/broken/too_small.expected (+20 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/object_remove/broken/too_small.expected 2016-02-10 14:27:38 +0900 (0fffb64) @@ -0,0 +1,20 @@ +table_create Users TABLE_HASH_KEY ShortText +[[0,0.0,0.0],true] +database_unmap +[[0,0.0,0.0],true] +object_remove Users +[ + [ + [ + -22, + 0.0, + 0.0 + ], + "[object][remove] failed to open the target object: <Users>" + ], + false +] +#|e| [io][open] file size is too small: <8>(required: >= 64): <db/db.0000100> +#|e| [object][remove] failed to open the target object: <Users> +object_exist Users +[[0,0.0,0.0],true] Added: test/command/suite/object_remove/broken/too_small.test (+10 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/object_remove/broken/too_small.test 2016-02-10 14:27:38 +0900 (9db6896) @@ -0,0 +1,10 @@ +table_create Users TABLE_HASH_KEY ShortText + +#@disable-logging +thread_limit 1 +#@enable-logging +database_unmap +#@copy-path fixture/object_remove/too_small #{db_path}.0000100 + +object_remove Users +object_exist Users -------------- next part -------------- HTML����������������������������...Download