This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/org/jruby/util/ReferenceReaper.java b/src/org/jruby/util/ReferenceReaper.java | |
| index 78e3e54..2092d47 100644 | |
| --- a/src/org/jruby/util/ReferenceReaper.java | |
| +++ b/src/org/jruby/util/ReferenceReaper.java | |
| @@ -48,8 +48,12 @@ public final class ReferenceReaper { | |
| for ( ; ; ) { | |
| try { | |
| Reference r = referenceQueue.remove(); | |
| - if (r instanceof Runnable) { | |
| - ((Runnable) r).run(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'Ant should have a valid location' FAILED | |
| expected exist?("./spec/java_integration/ant/ant_spec.rb:36") to return true, got false | |
| D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/expectations/fail_with.rb:41:in `fail_with' | |
| D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/expectations/handler.rb:21:in `handle_matcher' | |
| D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/expectations/extensions/kernel.rb:27:in `should' | |
| ./spec/java_integration/ant/ant_spec.rb:37: | |
| D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/example/example_methods.rb:40:in `instance_eval' | |
| D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/example/example_methods.rb:40:in `execute' | |
| D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/example/example_methods.rb:37:in `execute' | |
| D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/example/example_group_methods.rb:214:in `run_examples' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| spec spec | |
| You must 'gem install win32console' to use colour on Windows | |
| loadpath=D:/work/jruby-dev/repos/ffi.git/spec/ffi/../../lib:D:/work/jruby-dev/repos/ffi.git/spec/ffi/../../build/ffi_c/1.8.7:D:/work/jruby-dev/repos/ffi.git/lib:D:/work/jruby-dev/repos/ffi.git/spec:D:/re/ruby/lib/ruby/gems/1.8/gems/rspec-1.2.9/bin:D:/re/ruby/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib:D:/re/ruby/lib/ruby/site_ruby/1.8:D:/re/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt:D:/re/ruby/lib/ruby/site_ruby:D:/re/ruby/lib/ruby/vendor_ruby/1.8:D:/re/ruby/lib/ruby/vendor_ruby/1.8/i386-msvcrt:D:/re/ruby/lib/ruby/vendor_ruby:D:/re/ruby/lib/ruby/1.8:D:/re/ruby/lib/ruby/1.8/i386-mswin32:. | |
| D:/work/jruby-dev/repos/ffi.git/spec/ffi/../../lib/ffi/library.rb:113:in `attach_function': Function 'gettimeofday' not found in [msvcrt] (FFI::NotFoundError) | |
| from D:/work/jruby-dev/repos/ffi.git/spec/ffi/rbx/attach_function_spec.rb:11 | |
| from D:/re/ruby/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:15:in `load' | |
| fr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # All elements (including nested elements) are registered so we can access them easily. | |
| def acquire_element(name, clazz) | |
| element = @elements[name + clazz.to_s] | |
| return element if element | |
| # ****** HERE ***** This block of code is EVIL!!!! <--------------------- | |
| # Not registered in ant's type registry for this project (nested el?) | |
| unless @helper.get_definition(name) | |
| @project.log "Adding #{name} -> #{clazz.inspect}", 5 | |
| @helper.add_data_type_definition(name, clazz) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| it "raises an Errno::EINVAL if the new mode is not compatible with the descriptor's current mode" do | |
| # if the next line *succeeds* in creating an IO for some reason (bug or behavior change in 1.9) | |
| # all the rest of the specs will fail! | |
| lambda { IO.send(@method, @fd, "r") }.should raise_error(Errno::EINVAL) | |
| IO.new(@fd, "w").close | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mspec -t r core\io\open_spec.rb core\io\new_spec.rb -fs | |
| ruby 1.9.2dev (2010-03-05 trunk 26821) [i386-mingw32] | |
| IO.open | |
| - creates an IO instance from a Fixnum argument | |
| - calls #to_int on an object to convert to a Fixnum | |
| - raises an Errno::EINVAL if the new mode is not compatible with the descriptor's current mode (FAILED - 1) | |
| - raises an Errno::EINVAL if the new mode is not compatible with the descriptor's current mode (ERROR - 2) | |
| - uses the external encoding specified in the mode argument (ERROR - 3) | |
| - uses the external and the internal encoding specified in the mode argument (ERROR - 4) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mspec -t j library\delegate\ | |
| jruby 1.5.0.dev (ruby 1.8.7 patchlevel 174) (2010-03-21 646afea) (Java HotSpot(TM) Client VM 1.6.0_18) [x86-java] | |
| ..FE..........E | |
| 1) | |
| SimpleDelegator when frozen is not writeable FAILED | |
| Expected RuntimeError but no exception was raised | |
| D:/work/jruby-dev/rubyspec.git/library/delegate/frozen_spec.rb:22 | |
| D:/work/jruby-dev/rubyspec.git/library/delegate/frozen_spec.rb:4 | |
| D:/work/jruby-dev/rubyspec.git/library/delegate/frozen_spec.rb:56:in `load' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Thrower { | |
| public static void throwError() { | |
| System.err.println("About to throw Error"); | |
| throw new UnknownError("Unknown Error"); | |
| } | |
| public static void throwOutOfMemoryError () { | |
| System.err.println("About to throw OutOfMemoryError "); | |
| throw new OutOfMemoryError ("No Memory Error"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jruby --profile -e "p ARGV" | |
| Running with instrumented profiler | |
| profiler: on | |
| remote: off | |
| port: 15599 | |
| thread-depth: -1 | |
| thread.compact.threshold.ms: 10 | |
| max-method-count: 50 | |
| method.compact.threshold.ms: 10 | |
| file: ./profile.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1) Error: | |
| test_ruby_with_a_single_string_argument(TestFileUtils): | |
| RuntimeError: Command failed with status (1): [D:/work/jruby-dev/jruby/bin/jruby.exe test/check_expansion.rb %RAKE_TEST_SH% someval] | |
| D:/work/jruby-dev/repos/rake/lib/rake/file_utils.rb:53:in `create_shell_runner' | |
| D:/work/jruby-dev/repos/rake/lib/rake/file_utils.rb:45:in `call' | |
| D:/work/jruby-dev/repos/rake/lib/rake/file_utils.rb:45:in `sh' | |
| D:/work/jruby-dev/repos/rake/lib/rake/file_utils_ext.rb:39:in `sh' | |
| D:/work/jruby-dev/repos/rake/lib/rake/file_utils.rb:80:in `ruby' | |
| D:/work/jruby-dev/repos/rake/lib/rake/file_utils_ext.rb:39:in `ruby' | |
| ./test/lib/fileutils_test.rb:216:in `test_ruby_with_a_single_string_argument' |