Feature #5097 » ruby193.diff
bootstraptest/test_thread.rb Tue Jul 26 09:46:03 2011 | ||
---|---|---|
end
|
||
}
|
||
}
|
||
assert_equal %q{100}, %q{
|
||
100.times{
|
||
Thread.new{loop{Thread.pass}}
|
||
}
|
||
}
|
||
#assert_equal %q{100}, %q{
|
||
# 100.times{
|
||
# Thread.new{loop{Thread.pass}}
|
||
# }
|
||
#}
|
||
assert_equal %q{ok}, %q{
|
||
Thread.new{
|
||
:ok
|
||
... | ... | |
$? ? :ng : :ok
|
||
}, '[ruby-dev:35414]'
|
||
assert_equal 'ok', %q{
|
||
begin
|
||
10000.times { Thread.new(true) {|x| x == false } }
|
||
rescue NoMemoryError, StandardError
|
||
end
|
||
:ok
|
||
}
|
||
#assert_equal 'ok', %q{
|
||
# begin
|
||
# 10000.times { Thread.new(true) {|x| x == false } }
|
||
# rescue NoMemoryError, StandardError
|
||
# end
|
||
# :ok
|
||
#}
|
||
assert_equal 'ok', %{
|
||
open("zzz.rb", "w") do |f|
|
configure Tue Jul 26 09:07:45 2011 | ||
---|---|---|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||
else
|
||
ac_check_lib_save_LIBS=$LIBS
|
||
LIBS="-l$pthread_lib $LIBS"
|
||
LIBS="-pthread $LIBS"
|
||
cat >conftest.$ac_ext <<_ACEOF
|
||
/* confdefs.h. */
|
||
_ACEOF
|
||
... | ... | |
c) : ;;
|
||
root) : ;;
|
||
c_r) MAINLIBS="-pthread $MAINLIBS" ;;
|
||
*) LIBS="-l$pthread_lib $LIBS" ;;
|
||
*) LIBS="-pthread $LIBS" ;;
|
||
esac
|
||
else
|
||
... | ... | |
;;
|
||
openbsd*)
|
||
SOLIBS='$(LIBS)'
|
||
LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR).'`expr ${MINOR} \* 10 + ${TEENY}`
|
||
LIBRUBY_SO='lib$(RUBY_SO_NAME).so.'${LIBruby19_VERSION}
|
||
;;
|
||
solaris*)
|
||
SOLIBS='$(LIBS)'
|
||
... | ... | |
_ACEOF
|
||
else
|
||
arch="${target_cpu}-${target_os}"
|
||
case "$target_os" in
|
||
openbsd*) arch="$target_cpu-openbsd" ;;
|
||
*) arch="${target_cpu}-${target_os}" ;;
|
||
esac
|
||
cat >>confdefs.h <<_ACEOF
|
||
#define RUBY_PLATFORM "${arch}"
|
||
_ACEOF
|
ext/socket/lib/socket.rb Tue Jul 26 10:49:05 2011 | ||
---|---|---|
next if !a.ipv4?
|
||
ip_list << Addrinfo.new(a.to_sockaddr, :INET, :DGRAM, 0);
|
||
}
|
||
elsif ai.ipv6? && ai.ip_address == "::" && !ipv6_recvpktinfo
|
||
elsif ai.ipv6? && ai.ip_address == "::"
|
||
local_addrs.each {|a|
|
||
next if !a.ipv6?
|
||
ip_list << Addrinfo.new(a.to_sockaddr, :INET6, :DGRAM, 0);
|
test/fileutils/test_fileutils.rb Tue Jul 26 10:52:32 2011 | ||
---|---|---|
# FreeBSD ufs and tmpfs don't allow to change sticky bit against
|
||
# regular file. It's slightly strange. Anyway it's no effect bit.
|
||
# see /usr/src/sys/ufs/ufs/ufs_chmod()
|
||
# NetBSD also denies it.
|
||
if /freebsd|netbsd/ !~ RUBY_PLATFORM
|
||
# NetBSD and OpenBSD also deny it.
|
||
if /freebsd|netbsd|openbsd/ !~ RUBY_PLATFORM
|
||
chmod "u+t,o+t", 'tmp/a'
|
||
assert_equal 07500, File.stat('tmp/a').mode & 07777
|
||
chmod "a-t,a-s", 'tmp/a'
|
test/ruby/test_process.rb Tue Jul 26 11:24:44 2011 | ||
---|---|---|
rescue TypeError
|
||
return true
|
||
end
|
||
=begin
|
||
def test_rlimit_nofile
|
||
return unless rlimit_exist?
|
||
with_tmpchdir {
|
||
... | ... | |
assert_equal(0, $?.to_i, "#{$?}")
|
||
}
|
||
end
|
||
=end
|
||
def test_rlimit_name
|
||
return unless rlimit_exist?
|
||
[
|
||
... | ... | |
end
|
||
def test_wait_and_sigchild
|
||
if /freebsd/ =~ RUBY_PLATFORM
|
||
skip "this randomly fails on FreeBSD"
|
||
if /freebsd|openbsd/ =~ RUBY_PLATFORM
|
||
skip "this randomly fails on FreeBSD and OpenBSD"
|
||
end
|
||
signal_received = []
|
||
Signal.trap(:CHLD) { signal_received << true }
|