Use mrb_funcall instead of mrb_load_string in test driver.

Related to #2760.
This commit is contained in:
take_cheeze
2015-05-15 16:06:03 +09:00
parent bc8308ba8d
commit ab565f16bc
+1 -3
View File
@@ -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);