mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #2789 from take-cheeze/PR2760_piece
Use `mrb_funcall` instead of `mrb_load_string` in test driver.
This commit is contained in:
+1
-3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user