Commit ab565f16 authored by take_cheeze's avatar take_cheeze

Use `mrb_funcall` instead of `mrb_load_string` in test driver.

Related to #2760.
parent bc8308ba
......@@ -42,10 +42,8 @@ check_error(mrb_state *mrb)
static int
eval_test(mrb_state *mrb)
{
const char *prog = "report()";
/* evaluate the test */
mrb_load_string(mrb, prog);
mrb_funcall(mrb, mrb_top_self(mrb), "report", 0);
/* did an exception occur? */
if (mrb->exc) {
mrb_print_error(mrb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment