diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-14 15:52:14 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-14 15:52:14 +0900 |
| commit | 5b40bb8d159c1432bb87973b2b5f42473dd0c623 (patch) | |
| tree | 7d845bda931b2842c21ed5e6113243d067103fc4 /mrbgems/mruby-test/driver.c | |
| parent | 82046ff26ec9ae93d6d0cb5132a1dfd9651b5c3f (diff) | |
| download | mruby-5b40bb8d159c1432bb87973b2b5f42473dd0c623.tar.gz mruby-5b40bb8d159c1432bb87973b2b5f42473dd0c623.zip | |
Avoid using C struct dump for test Ruby code.
Files under `test/t` and `mrbgem/*/test` are for tests, not for actual
execution. So symbols in those files need not to be pre-allocated. This
change slightly reduce the memory consumption.
Diffstat (limited to 'mrbgems/mruby-test/driver.c')
| -rw-r--r-- | mrbgems/mruby-test/driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-test/driver.c b/mrbgems/mruby-test/driver.c index 3bd52e175..f780e7e57 100644 --- a/mrbgems/mruby-test/driver.c +++ b/mrbgems/mruby-test/driver.c @@ -18,7 +18,7 @@ #include <mruby/variable.h> #include <mruby/array.h> -extern const struct RProc mrbtest_assert_proc[]; +extern const uint8_t mrbtest_assert_irep[]; void mrbgemtest_init(mrb_state* mrb); void mrb_init_test_vformat(mrb_state* mrb); @@ -300,7 +300,7 @@ main(int argc, char **argv) } mrb_init_test_driver(mrb, verbose); - mrb_load_proc(mrb, mrbtest_assert_proc); + mrb_load_irep(mrb, mrbtest_assert_irep); mrbgemtest_init(mrb); ret = eval_test(mrb); mrb_close(mrb); |
