summaryrefslogtreecommitdiffhomepage
path: root/test/init_mrbtest.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-05-18 14:29:36 +0900
committerYukihiro Matsumoto <[email protected]>2012-05-18 14:29:36 +0900
commit8846f75ecccf701009fb191207b64ef996544ad8 (patch)
tree28caa59ac672f4161d95c93dfc2d82f6751dbffd /test/init_mrbtest.c
parent332565e3ba7fb06e1747ed3a7b7a77c9d0b2018b (diff)
downloadmruby-8846f75ecccf701009fb191207b64ef996544ad8.tar.gz
mruby-8846f75ecccf701009fb191207b64ef996544ad8.zip
refactor test driver
Diffstat (limited to 'test/init_mrbtest.c')
-rw-r--r--test/init_mrbtest.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/init_mrbtest.c b/test/init_mrbtest.c
index 5d977da34..b9f09dd2f 100644
--- a/test/init_mrbtest.c
+++ b/test/init_mrbtest.c
@@ -12,5 +12,9 @@ mrb_init_mrbtest(mrb_state *mrb)
int n = mrb_read_irep(mrb, mrbtest_irep);
mrb_run(mrb, mrb_proc_new(mrb, mrb->irep[n]), mrb_top_self(mrb));
+ if (mrb->exc) {
+ mrb_p(mrb, mrb_obj_value(mrb->exc));
+ exit(0);
+ }
}