summaryrefslogtreecommitdiffhomepage
path: root/test/init_mrbtest.c
diff options
context:
space:
mode:
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 2bc2f2e4b..ce9dd4cdd 100644
--- a/test/init_mrbtest.c
+++ b/test/init_mrbtest.c
@@ -11,10 +11,14 @@ void
mrb_init_mrbtest(mrb_state *mrb)
{
int n = mrb_read_irep(mrb, mrbtest_irep);
+#ifdef ENABLE_GEMS
int m = mrb_read_irep(mrb, mrbgemtest_irep);
+#endif
mrb_run(mrb, mrb_proc_new(mrb, mrb->irep[n]), mrb_top_self(mrb));
+#ifdef ENABLE_GEMS
mrb_run(mrb, mrb_proc_new(mrb, mrb->irep[m]), mrb_top_self(mrb));
+#endif
if (mrb->exc) {
mrb_p(mrb, mrb_obj_value(mrb->exc));
exit(0);