[ruby-cvs:68376] eregon:r61195 (trunk): Capture the values of globals in EnvUtil to restore to the original

eregon at ruby-lang.org eregon at ruby-lang.org
Wed Dec 13 08:41:50 JST 2017


eregon	2017-12-13 08:41:50 +0900 (Wed, 13 Dec 2017)

  New Revision: 61195

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61195

  Log:
    Capture the values of globals in EnvUtil to restore to the original
    
    * Avoids the thread-safety issues mentioned in r61192,
      when thread concurrently modify default Encodings or $VERBOSE.
      Their state will always be the original one once the test finishes.

  Modified files:
    trunk/test/lib/envutil.rb
    trunk/test/lib/test/unit/assertions.rb


More information about the ruby-cvs mailing list