aboutsummaryrefslogtreecommitdiffstats
path: root/test/rinda
Commit message (Collapse)AuthorAgeFilesLines
* Sat Mar 5 09:17:54 2016 Rei Odaira <Rei.Odaira@gmail.com>odaira2016-03-051-8/+27
| | | | | | | | | | | | | | * test/rinda/test_rinda.rb (test_make_socket_ipv4_multicast): The fifth argument to getsockopt(2) should be modified to indicate the actual size of the value on return, but not in AIX. This is a know bug. Skip related tests. * test/rinda/test_rinda.rb (test_ring_server_ipv4_multicast): ditto. * test/rinda/test_rinda.rb (test_make_socket_unicast): ditto. * test/socket/test_basicsocket.rb (test_getsockopt): ditto. * test/socket/test_sockopt.rb (test_bool): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add frozen_string_literal: false for all filesnaruse2015-12-162-0/+2
| | | | | | When you change this to true, you may need to add more tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/drb/test_drb.rb: Run Rinda/DRb tests on localhost. [Fix GH-1027]seki2015-09-211-4/+4
| | | | | | | | | | patch by voxik. * test/rinda/test_rinda.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rinda/test_rinda.rb (RingIPv6#prepare_ipv6): prevent to usengoto2015-07-241-3/+3
| | | | | | | | | | | | | | | | | IPv6 loopback interface for Rinda::TestRingFinger#test_make_socket_ipv6_multicast and Rinda::TestRingFinger#test_make_socket_ipv6_multicast_hops. The tests are skipped if there are no IPv6 devices other than the loopback device. [Bug #11394] [ruby-dev:49199] * test/rinda/test_rinda.rb (test_make_socket_ipv6_multicast): ditto for Rinda::TestRingServer#test_make_socket_ipv6_multicast. * test/rinda/test_rinda.rb (test_ring_server_ipv6_multicast): ditto for Rinda::TestRingServer#test_ring_server_ipv6_multicast. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/lib/envutil.rb: Moved from test/ruby/.akr2014-11-131-1/+0
| | | | | | | | | | | | | | * test/lib/find_executable.rb: Ditto. * test/lib/memory_status.rb: Ditto. * test/lib/test/unit.rb: require envutil. * test/: Don't require envutil in test files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rinda/test_rinda.rb: removed useless assignment variables.hsbt2014-08-291-1/+0
| | | | | | | * test/rss/rss-assertions.rb: ditto. * test/rss/test_maker_itunes.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Stop DRb service.akr2014-06-011-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Finish threads.akr2014-06-011-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Close FDs.akr2014-06-011-0/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_rinda.rb: revert stop_servicenobu2014-05-261-1/+0
| | | | | | | | * test/rinda/test_rinda.rb (test_take_bug_8215): revert `stop_service` for the time being. need to reset `current_server` to let test/drb work, probably. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_rinda.rb: fix leaked threadsnobu2014-05-261-4/+24
| | | | | | * test/rinda/test_rinda.rb: join work threads not to leak threads. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_rinda.rb: hungup investigationnobu2014-01-181-34/+49
| | | | | | | * test/rinda/test_rinda.rb (with_timeout, wait_for): extract to investigate test_do_reply_local too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_rinda.rb: hungup investigationnobu2014-01-181-0/+3
| | | | | | | * test/rinda/test_rinda.rb (test_do_reply): abort on exception to investigate sporadic hungups on rubyci. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_rinda.rb: timeout all threadnobu2014-01-161-5/+22
| | | | | | | * test/rinda/test_rinda.rb (test_do_reply): stop all threads and show backtraces. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_rinda.rb: timeoutnobu2014-01-151-0/+7
| | | | | | | * test/rinda/test_rinda.rb (test_do_reply): stop if blocking including TupleSpace#write and RingServer#do_reply. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_rinda.rb: sleep to timeoutnobu2014-01-151-1/+1
| | | | | | * test/rinda/test_rinda.rb (test_do_reply): sleep instead of busy loop. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add timeout to test_do_replynaruse2014-01-151-2/+8
| | | | | | http://fb64b.rubyci.org/~chkbuild/ruby-trunk/log/20140115T073301Z.log.html.gz git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rinda/ring.rb: Announce RingServer for the same process.drbrain2013-11-271-0/+34
| | | | | | | | [ruby-trunk - Bug #9163] * test/rinda/test_rinda.rb: Tests for the above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix missing assignment in r42174naruse2013-07-261-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Somehow Debian 6.0.7 needs ifname for IPv6 multicast connectnaruse2013-07-251-4/+14
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_rinda.rb: fix for unimplemented ifindex()shirosaki2013-06-241-6/+12
| | | | | | | | * test/rinda/test_rinda.rb (RingIPv6#prepare_ipv6): ifindex() function may not be implemented on Windows. We use another check for the case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_rinda.rb: no forknobu2013-06-191-7/+0
| | | | | | * test/rinda/test_rinda.rb (have_fork?): no longer used already. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_rinda.rb: reap zombienobu2013-06-191-0/+2
| | | | | | * test/rinda/test_rinda.rb (test_take_bug_8215): reap zombie. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rinda/test_rinda.rb: rename functions introduced in r41009.ayumin2013-06-021-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use custom methods for values whose type is different on platformsnaruse2013-05-311-3/+3
| | | | | | | | Use Socket::Option#ip_multicast_loop and Socket::Option#ip_multicast_ttl instead of Socket::Option#int because NetBSD's size is byte though others' is int. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rinda/test_rinda.rb: Socket.getifaddrs may returns an interfaceakr2013-05-111-3/+1
| | | | | | | | which #addr method returns nil for venet0 in OpenVZ. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add debug print to investigate a failure on Travis-CI.akr2013-05-111-0/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Simplify test with Socket.getifaddrsnaruse2013-05-111-8/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ring.rb: specify multicast interfaceshirosaki2013-04-251-3/+39
| | | | | | | | | | | | | | | | | | | | | | * lib/rinda/ring.rb (Rinda::RingServer#initialize): accept array arguments of address to specify multicast interface. * lib/rinda/ring.rb (Rinda::RingServer#make_socket): add optional arguments for multicast interface. * test/rinda/test_rinda.rb (TestRingFinger#test_ring_server_ipv4_multicast, TestRingFinger#test_ring_server_ipv6_multicast): add tests for above change. * test/rinda/test_rinda.rb (TestRingServer#test_make_socket_ipv4_multicast, TestRingServer#test_make_socket_ipv6_multicast): change bound interface address because multicast address is not allowed on Linux or Windows. [ruby-core:53692] [Bug #8159] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_rinda.rb: Use KILL on Windowsshirosaki2013-04-251-2/+3
| | | | | | | | * test/rinda/test_rinda.rb (TupleSpaceProxyTest#test_take_bug_8215): use KILL on Windows since TERM doen't work and ruby process remains after test-all on Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_rinda.rb: use spawnnobu2013-04-181-5/+9
| | | | | | | * test/rinda/test_rinda.rb (TupleSpaceProxyTest#test_take_bug_8215): use more portable spawn instead of fork. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use more general approach to get scope_id see #8159naruse2013-03-251-22/+22
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Suppress warningsnaruse2013-03-251-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rinda/test_rinda.rb: Skip IPv6 tests if no IPv6 addressesdrbrain2013-03-241-0/+16
| | | | | | | | exist. Skip fork-dependent test if fork is not available. [ruby-trunk - Bug #8159] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Try interface indexes which can use for IPv6 multicastnaruse2013-03-241-1/+13
| | | | | | a fix for r39896 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rinda/test_rinda.rb: Restore tests commented out while fixingdrbrain2013-03-231-577/+577
| | | | | | | test slowdown bug before r39895. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rinda/ring.rb: Add multicast support to Rinda::RingFinger anddrbrain2013-03-231-498/+599
| | | | | | | | | | Rinda::RingServer. [ruby-trunk - Bug #8073] * test/rinda/test_rinda.rb: Test for the above. * NEWS: Update with Rinda multicast support git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rinda/test_rinda.rb: Fixed test failures in r39890 and r39890drbrain2013-03-231-4/+0
| | | | | | | due to stopping DRb service. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Commit missdrbrain2013-03-231-0/+40
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rinda/test_rinda.rb: remove unused variables.ayumin2013-03-191-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rinda/test_rinda.rb: fix sticks on some testsf problem seki2012-04-211-1/+1
| | | | | | | | [Bug #6272] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rinda/test_rinda.rb (test_core_03_notify): Fixed test failuresseki2011-09-051-55/+20
| | | | | | | | [ruby-dev:44430] [Ruby 1.9 - Bug #372] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* the code that depends on timing. [Bug #372] [Bug #4160]seki2011-07-281-62/+24
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rinda/test_rinda.rb (test_remote_array_and_hash):nagachika2011-07-271-2/+6
| | | | | | | add local variables to protect objects from GC. [ruby-dev:44253] [Bug #5104] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rinda/test_rinda.rb (class TupleSpaceTest): kill a used threadtarui2010-05-261-0/+8
| | | | | | | | at teardown. [ruby-dev:41397] * test/rinda/test_rinda.rb (class TupleSpaceProxyTest): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {ext,lib,test}/**/*.rb: removed trailing spaces.nobu2009-03-062-12/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fixed fails occasionally [ruby-dev:37119]. thanks, shinichiro.h.seki2008-11-181-10/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fixed test failures [ruby-dev:36837].seki2008-10-211-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test: assert_raises has been deprecated since a long time ago.nobu2008-09-241-9/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix failures [ruby-dev:35937].seki2008-08-301-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e