null+****@clear*****
null+****@clear*****
2010年 6月 10日 (木) 23:57:11 JST
Daijiro MORI 2010-06-10 14:57:11 +0000 (Thu, 10 Jun 2010) New Revision: 8bbc63f343efb502f94b08ab12deb874d49ecfb4 Log: Avoid segv in test-expr. Modified files: test/unit/core/test-expr.c Modified: test/unit/core/test-expr.c (+2 -4) =================================================================== --- test/unit/core/test-expr.c 2010-06-10 14:25:09 +0000 (3922487) +++ test/unit/core/test-expr.c 2010-06-10 14:57:11 +0000 (beccba3) @@ -203,8 +203,7 @@ test_expr(void) gettimeofday(&tvb, NULL); while ((id = grn_table_cursor_next(context, tc))) { GRN_RECORD_SET(context, v, id); - grn_expr_exec(context, expr, 0); - r = grn_ctx_pop(context); + r = grn_expr_exec(context, expr, 0); if (GRN_RECORD_VALUE(r) != id) { nerr++; } } gettimeofday(&tve, NULL); @@ -296,8 +295,7 @@ test_persistent_expr(void) gettimeofday(&tvb, NULL); while ((id = grn_table_cursor_next(context, tc))) { GRN_RECORD_SET(context, v, id); - grn_expr_exec(context, expr, 0); - r = grn_ctx_pop(context); + r = grn_expr_exec(context, expr, 0); if (GRN_RECORD_VALUE(r) != id) { nerr++; } } gettimeofday(&tve, NULL);