diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-05-17 20:43:32 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-05-17 20:43:32 +0900 |
| commit | 5fa01f4ca30da39cedbe4d64ccca9912f2b9a5a1 (patch) | |
| tree | bee8fc94cc4437d0d2f70520d9af79362ced0662 | |
| parent | cf070b64f16d95dcd058a3a9c368cc1a31d2e14a (diff) | |
| parent | ab565f16bc8a63f48157af740a18cb7e97a75020 (diff) | |
| download | mruby-5fa01f4ca30da39cedbe4d64ccca9912f2b9a5a1.tar.gz mruby-5fa01f4ca30da39cedbe4d64ccca9912f2b9a5a1.zip | |
Merge pull request #2789 from take-cheeze/PR2760_piece
Use `mrb_funcall` instead of `mrb_load_string` in test driver.
| -rw-r--r-- | test/driver.c | 4 |
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); |
