summaryrefslogtreecommitdiffhomepage
path: root/test/driver.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-07-09 13:34:38 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-07-09 13:34:38 +0900
commit42d4eb9fe4fb46a4f3c33ab3f9fe954babd2638b (patch)
tree6a9c8601542c4d221fd65a80d1a23cebda1100f0 /test/driver.c
parent506cda5a28b56750cb70b7b2a80317da524928c4 (diff)
parentab779b7ad8988f090e36e57eaa6774e54b24f679 (diff)
downloadmruby-42d4eb9fe4fb46a4f3c33ab3f9fe954babd2638b.tar.gz
mruby-42d4eb9fe4fb46a4f3c33ab3f9fe954babd2638b.zip
Merge pull request #2452 from take-cheeze/test_exc
Use `mrb_print_error` in test error handling.
Diffstat (limited to 'test/driver.c')
-rw-r--r--test/driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/driver.c b/test/driver.c
index f605d7517..d4c29b532 100644
--- a/test/driver.c
+++ b/test/driver.c
@@ -48,7 +48,7 @@ eval_test(mrb_state *mrb)
return_value = mrb_load_string(mrb, prog);
/* did an exception occur? */
if (mrb->exc) {
- mrb_p(mrb, return_value);
+ mrb_print_error(mrb);
mrb->exc = 0;
return EXIT_FAILURE;
}