summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authortake_cheeze <[email protected]>2015-05-15 16:06:03 +0900
committertake_cheeze <[email protected]>2015-05-15 16:06:03 +0900
commitab565f16bc8a63f48157af740a18cb7e97a75020 (patch)
treef7f52693dc93c274132056c7ed6e09b13d538221 /test
parentbc8308ba8d04f9038df032fd95e4b359f75106e0 (diff)
downloadmruby-ab565f16bc8a63f48157af740a18cb7e97a75020.tar.gz
mruby-ab565f16bc8a63f48157af740a18cb7e97a75020.zip
Use `mrb_funcall` instead of `mrb_load_string` in test driver.
Related to #2760.
Diffstat (limited to 'test')
-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);