diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-08-20 23:38:49 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-08-20 23:38:49 +0900 |
| commit | e73a0913430fbffcf5ec741055dfdc6146fa743c (patch) | |
| tree | 672bd9cb5d67c17023e39bdab72f625760cba24b /test | |
| parent | c7fda2232b690f5e68a5d1f72e9dc8cd21682703 (diff) | |
| parent | 05ede52239fce58b6a8be4b72d51db10ae1c2632 (diff) | |
| download | mruby-e73a0913430fbffcf5ec741055dfdc6146fa743c.tar.gz mruby-e73a0913430fbffcf5ec741055dfdc6146fa743c.zip | |
Merge branch 'cubicdaiya-issues/scope_new_error_handlings'
Diffstat (limited to 'test')
| -rw-r--r-- | test/init_mrbtest.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/init_mrbtest.c b/test/init_mrbtest.c index 2a32f4930..1e2ba92bd 100644 --- a/test/init_mrbtest.c +++ b/test/init_mrbtest.c @@ -18,6 +18,10 @@ mrb_init_mrbtest(mrb_state *mrb) mrb_load_irep(mrb, mrbtest_assert_irep); core_test = mrb_open_core(mrb_default_allocf, NULL); + if (core_test == NULL) { + fprintf(stderr, "Invalid mrb_state, exiting %s", __FUNCTION__); + exit(EXIT_FAILURE); + } mrb_init_test_driver(core_test, mrb_test(mrb_gv_get(mrb, mrb_intern_lit(mrb, "$mrbtest_verbose")))); mrb_load_irep(core_test, mrbtest_assert_irep); mrb_load_irep(core_test, mrbtest_irep); |
