summaryrefslogtreecommitdiffhomepage
path: root/test/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/driver.c')
-rw-r--r--test/driver.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/driver.c b/test/driver.c
index 66d64d3de..7f0633723 100644
--- a/test/driver.c
+++ b/test/driver.c
@@ -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);