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
class Errno::EAGAIN_WAIT_READABLE < Errno::EAGAIN | |
include IO::WaitReadable | |
end | |
class Errno::EAGAIN_WAIT_WRITABLE < Errno::EAGAIN | |
include IO::WaitWritable | |
end | |
class Errno::EWOULDBLOCK_WAIT_READABLE < Errno::EWOULDBLOCK | |
include IO::WaitReadable |
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/test/ruby/test_io.rb b/test/ruby/test_io.rb | |
index fba0800..4521a90 100644 | |
--- a/test/ruby/test_io.rb | |
+++ b/test/ruby/test_io.rb | |
@@ -621,9 +621,10 @@ class TestIO < Test::Unit::TestCase | |
nr.times do | |
assert_equal megacontent.bytesize, IO.copy_stream("megasrc", s1 | |
) | |
end | |
+ sleep 0.5 |
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
a = [] | |
trap(:INT) { a.push(1) } | |
trap(:TERM) { a.push(2) } | |
pid = $$ | |
fork do | |
sleep 0.5 | |
puts "send start" | |
Process.kill(:INT, pid) | |
Process.kill(:TERM, pid) |
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
F | |
Failures: | |
1) ApplicationController foo adds | |
Failure/Error: Unable to find matching line from backtrace | |
NameError: | |
uninitialized constant ActiveRecord::Base::TinyTds | |
# -e:1:in `<main>' |
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
require "dl/func" | |
include DL | |
GC.stress = true | |
Function.new(CFunc.new(0, TYPE_INT, 'name'), | |
[TYPE_VOIDP, TYPE_VOIDP]){|x,y| | |
x.inspect | |
0 | |
}.call(0, 0) |
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/ext/fiddle/closure.c b/ext/fiddle/closure.c | |
index 157b97c..73ad053 100644 | |
--- a/ext/fiddle/closure.c | |
+++ b/ext/fiddle/closure.c | |
@@ -56,7 +56,7 @@ callback(ffi_cif *cif, void *resp, void **args, void *ctx) | |
VALUE rbargs = rb_iv_get(self, "@args"); | |
VALUE ctype = rb_iv_get(self, "@ctype"); | |
int argc = RARRAY_LENINT(rbargs); | |
- VALUE *params = xcalloc(argc, sizeof(VALUE *)); | |
+ volatile VALUE params_ary = rb_ary_new2(argc); |
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/common.mk b/common.mk | |
index ea244cc..1edb412 100644 | |
--- a/common.mk | |
+++ b/common.mk | |
@@ -931,6 +931,9 @@ change: PHONY | |
love: sudo-precheck up all test install test-all | |
@echo love is all you need | |
+money: | |
+ @echo "OK. Please lend me some money at first. I'll return a 10-fold." |
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/ext/date/date_parse.c b/ext/date/date_parse.c | |
index 1214f39..d7d22fa 100644 | |
--- a/ext/date/date_parse.c | |
+++ b/ext/date/date_parse.c | |
@@ -441,8 +441,10 @@ date_zone_to_diff(VALUE str) | |
char *s, *p; | |
VALUE sign; | |
VALUE hour = Qnil, min = Qnil, sec = Qnil; | |
+ volatile VALUE str_orig; | |
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
#!/bin/env ruby | |
require "optparse" | |
cmdline = ["addr2line"] | |
baseaddr = 0 | |
OptionParser.new do |opt| | |
opt.on("-a", "--addresses") do | |
cmdline << "--addresses" | |
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
diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb | |
index de9055f..4a8451a 100644 | |
--- a/test/ruby/envutil.rb | |
+++ b/test/ruby/envutil.rb | |
@@ -122,7 +122,13 @@ module Test | |
module Assertions | |
public | |
def assert_normal_exit(testsrc, message = '', opt = {}) | |
- out, _, status = EnvUtil.invoke_ruby(%W'-W0', testsrc, true, :merge_to_stdout, opt) | |
+ if opt.include?(:child_env) |