This file contains 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 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 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 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 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 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 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) | |
A Java primitive Array of type Class ref should be possible to create primitive array from Ruby array' FAILED | |
expected: class java.lang.String, | |
got: Java::JavaLang::String (using ==)←[0m | |
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/matchers/operator_matcher.rb:39:in `fail_with_message' | |
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/matchers/operator_matcher.rb:61:in `__delegate_operator' | |
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/matchers/operator_matcher.rb:51:in `eval_match' | |
D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/matchers/operator_matcher.rb:29:in `==' | |
./spec/java_integration/types/array_spec.rb:745: |
This file contains 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
Changes in JRuby Native Launcher since JRuby 1.4.0: | |
bc8a1a2 Fixed a crash with empty args. | |
b774fec JRUBY-4611: Stop scanning for options on first bare arg that does not start with '-' | |
9099209 unixlauncher.cpp: stdlib.h needed for ubuntu linux | |
3d55608 Good idea on robust specs. I like clearing env ahead of time even better. | |
5c75f2f Make specs a bit more robust. | |
73fc430 JRUBY-4603: heed -Xjdkhome on command line over JAVA_HOME | |
ded0069 Fix argparser regression on windows | |
020022e Fix new JAVA_HOME spec failure on Windows. |
This file contains 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
commit 7050bc18a592b779d8fb102ef7ce583902763e3a | |
Author: Vladimir Sizikov <vsizikov@gmail.com> | |
Date: Sat Mar 6 13:04:33 2010 +0100 | |
JRUBY-4623: Tempfile does not clean up on GC run | |
Added unit test as well, but didn't wire it to the index, | |
since these GC-related issues are not 100% reliably reproducible. | |
diff --git a/src/org/jruby/RubyTempfile.java b/src/org/jruby/RubyTempfile.java |
This file contains 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 -v -rtempfile -e "100_000.times{Tempfile.new('foo')}" | |
jruby 1.5.0.dev (ruby 1.8.7 patchlevel 174) (2010-03-05 f25167a) (Java HotSpot(TM) Client VM 1.6.0_18) [x86-java] | |
DeleteOnExitHook.java:34:in `add': java.lang.NullPointerException | |
from File.java:939:in `deleteOnExit' | |
from RubyTempfile.java:118:in `initialize' | |
from org/jruby/RubyTempfile$i_method_0_1$RUBYFRAMEDINVOKER$initialize.gen:-1:in `call' | |
from CachingCallSite.java:75:in `callBlock' | |
from CachingCallSite.java:82:in `call' | |
from RubyClass.java:726:in `newInstance' | |
from RubyIO.java:865:in `newInstance' |