1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

eval.c: move running

* eval.c (ruby_setup): set running state in the normal case before
  popping a tag.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-06-16 09:31:50 +00:00
parent c1740d890a
commit 07784c78b9
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Sat Jun 16 18:31:46 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (ruby_setup): set running state in the normal case before
popping a tag.
Sat Jun 16 07:46:03 2012 Nobuyoshi Nakada <nobu@ruby-lang.org> Sat Jun 16 07:46:03 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/test/unit.rb (Test::Unit::Runner#_run_parallel): format workers * lib/test/unit.rb (Test::Unit::Runner#_run_parallel): format workers

2
eval.c
View file

@ -53,10 +53,10 @@ ruby_setup(void)
if ((state = EXEC_TAG()) == 0) { if ((state = EXEC_TAG()) == 0) {
rb_call_inits(); rb_call_inits();
ruby_prog_init(); ruby_prog_init();
GET_VM()->running = 1;
} }
POP_TAG(); POP_TAG();
if (!state) GET_VM()->running = 1;
return state; return state;
} }