Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ac21b12f1e96
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c12e61448300
Choose a head ref
  • 2 commits
  • 38 files changed
  • 1 contributor

Commits on Aug 19, 2016

  1. [Truffle] Add Addrinfo tags.

    eregon committed Aug 19, 2016
    Copy the full SHA
    e0a4074 View commit details
  2. [Truffle] Tags for new specs.

    eregon committed Aug 19, 2016
    Copy the full SHA
    c12e614 View commit details
Showing with 150 additions and 0 deletions.
  1. +1 −0 spec/truffle/tags/core/kernel/public_send_tags.txt
  2. +1 −0 spec/truffle/tags/core/numeric/step_tags.txt
  3. +1 −0 spec/truffle/tags/core/thread/name_tags.txt
  4. +3 −0 spec/truffle/tags/library/socket/addrinfo/afamily_tags.txt
  5. +2 −0 spec/truffle/tags/library/socket/addrinfo/bind_tags.txt
  6. +1 −0 spec/truffle/tags/library/socket/addrinfo/canonname_tags.txt
  7. +48 −0 spec/truffle/tags/library/socket/addrinfo/initialize_tags.txt
  8. +3 −0 spec/truffle/tags/library/socket/addrinfo/ip_address_tags.txt
  9. +3 −0 spec/truffle/tags/library/socket/addrinfo/ip_port_tags.txt
  10. +3 −0 spec/truffle/tags/library/socket/addrinfo/ip_tags.txt
  11. +3 −0 spec/truffle/tags/library/socket/addrinfo/ip_unpack_tags.txt
  12. +5 −0 spec/truffle/tags/library/socket/addrinfo/ipv4_loopback_tags.txt
  13. +5 −0 spec/truffle/tags/library/socket/addrinfo/ipv4_multicast_tags.txt
  14. +4 −0 spec/truffle/tags/library/socket/addrinfo/ipv4_private_tags.txt
  15. +3 −0 spec/truffle/tags/library/socket/addrinfo/ipv4_tags.txt
  16. +5 −0 spec/truffle/tags/library/socket/addrinfo/ipv6_loopback_tags.txt
  17. +5 −0 spec/truffle/tags/library/socket/addrinfo/ipv6_multicast_tags.txt
  18. +3 −0 spec/truffle/tags/library/socket/addrinfo/ipv6_tags.txt
  19. +3 −0 spec/truffle/tags/library/socket/addrinfo/pfamily_tags.txt
  20. +3 −0 spec/truffle/tags/library/socket/addrinfo/protocol_tags.txt
  21. +3 −0 spec/truffle/tags/library/socket/addrinfo/socktype_tags.txt
  22. +1 −0 spec/truffle/tags/library/socket/addrinfo/tcp_tags.txt
  23. +3 −0 spec/truffle/tags/library/socket/addrinfo/to_s_tags.txt
  24. +3 −0 spec/truffle/tags/library/socket/addrinfo/to_sockaddr_tags.txt
  25. +1 −0 spec/truffle/tags/library/socket/addrinfo/udp_tags.txt
  26. +3 −0 spec/truffle/tags/library/socket/addrinfo/unix_path_tags.txt
  27. +4 −0 spec/truffle/tags/library/socket/addrinfo/unix_tags.txt
  28. +2 −0 spec/truffle/tags/library/socket/option/bool_tags.txt
  29. +1 −0 spec/truffle/tags/library/socket/option/inspect_tags.txt
  30. +2 −0 spec/truffle/tags/library/socket/option/int_tags.txt
  31. +3 −0 spec/truffle/tags/library/socket/option/linger_tags.txt
  32. +1 −0 spec/truffle/tags/library/socket/option/new_tags.txt
  33. +1 −0 spec/truffle/tags/library/socket/socket/connect_nonblock_tags.txt
  34. +2 −0 spec/truffle/tags/library/socket/tcpserver/accept_nonblock_tags.txt
  35. +2 −0 spec/truffle/tags/library/socket/tcpserver/sysaccept_tags.txt
  36. +5 −0 spec/truffle/tags/library/socket/tcpsocket/setsockopt_tags.txt
  37. +7 −0 spec/truffle/tags/library/stringio/getch_tags.txt
  38. +1 −0 spec/truffle/tags/library/stringio/sysread_tags.txt
1 change: 1 addition & 0 deletions spec/truffle/tags/core/kernel/public_send_tags.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
fails:Kernel#public_send has an arity of -1
fails:Kernel#public_send raises a NoMethodError if the method is protected
fails:Kernel#public_send raises a NoMethodError if the named method is an alias of a protected method
fails:Kernel#public_send called from own public method raises a NoMethodError if the method is protected
1 change: 1 addition & 0 deletions spec/truffle/tags/core/numeric/step_tags.txt
Original file line number Diff line number Diff line change
@@ -8,3 +8,4 @@ fails:Numeric#step with mixed arguments doesn't raise an error when step is 0.0
fails:Numeric#step with mixed arguments should loop over self when step is 0 or 0.0
fails:Numeric#step with mixed arguments when no block is given returned Enumerator size should return infinity_value when step is 0
fails:Numeric#step with mixed arguments when no block is given returned Enumerator size should return infinity_value when step is 0.0
fails:Numeric#step with keyword arguments when no block is given returned Enumerator size should return infinity_value when the limit is Float::INFINITY
1 change: 1 addition & 0 deletions spec/truffle/tags/core/thread/name_tags.txt
Original file line number Diff line number Diff line change
@@ -3,3 +3,4 @@ fails:Thread#name returns the thread name
fails:Thread#name= can be set to a String
fails:Thread#name= raises an ArgumentError if the name includes a null byte
fails:Thread#name= can be reset to nil
fails:Thread#name= calls #to_str to convert name to String
3 changes: 3 additions & 0 deletions spec/truffle/tags/library/socket/addrinfo/afamily_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fails:Addrinfo#afamily for an ipv4 socket returns Socket::AF_INET
fails:Addrinfo#afamily for an ipv6 socket returns Socket::AF_INET6
fails:Addrinfo#afamily for a unix socket returns Socket::AF_UNIX
2 changes: 2 additions & 0 deletions spec/truffle/tags/library/socket/addrinfo/bind_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fails:Addrinfo#bind returns a bound socket when no block is given
fails:Addrinfo#bind yields the socket if a block is given
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:Addrinfo#canonname returns the canonical name for a host
48 changes: 48 additions & 0 deletions spec/truffle/tags/library/socket/addrinfo/initialize_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
fails:Addrinfo#initialize with a sockaddr string without a family stores the ip address from the sockaddr
fails:Addrinfo#initialize with a sockaddr string without a family stores the port number from the sockaddr
fails:Addrinfo#initialize with a sockaddr string without a family returns the Socket::UNSPEC pfamily
fails:Addrinfo#initialize with a sockaddr string without a family returns the INET6 afamily
fails:Addrinfo#initialize with a sockaddr string without a family returns the 0 socket type
fails:Addrinfo#initialize with a sockaddr string without a family returns the 0 protocol
fails:Addrinfo#initialize with a sockaddr string with a family given stores the ip address from the sockaddr
fails:Addrinfo#initialize with a sockaddr string with a family given stores the port number from the sockaddr
fails:Addrinfo#initialize with a sockaddr string with a family given returns the Socket::UNSPEC pfamily
fails:Addrinfo#initialize with a sockaddr string with a family given returns the INET6 afamily
fails:Addrinfo#initialize with a sockaddr string with a family given returns the 0 socket type
fails:Addrinfo#initialize with a sockaddr string with a family given returns the 0 protocol
fails:Addrinfo#initialize with a sockaddr string with a family and socket type stores the ip address from the sockaddr
fails:Addrinfo#initialize with a sockaddr string with a family and socket type stores the port number from the sockaddr
fails:Addrinfo#initialize with a sockaddr string with a family and socket type returns the Socket::UNSPEC pfamily
fails:Addrinfo#initialize with a sockaddr string with a family and socket type returns the INET6 afamily
fails:Addrinfo#initialize with a sockaddr string with a family and socket type returns the 0 socket type
fails:Addrinfo#initialize with a sockaddr string with a family and socket type returns the 0 protocol
fails:Addrinfo#initialize with a sockaddr string with a family, socket type and protocol stores the ip address from the sockaddr
fails:Addrinfo#initialize with a sockaddr string with a family, socket type and protocol stores the port number from the sockaddr
fails:Addrinfo#initialize with a sockaddr string with a family, socket type and protocol returns the Socket::UNSPEC pfamily
fails:Addrinfo#initialize with a sockaddr string with a family, socket type and protocol returns the INET6 afamily
fails:Addrinfo#initialize with a sockaddr string with a family, socket type and protocol returns the specified socket type
fails:Addrinfo#initialize with a sockaddr string with a family, socket type and protocol returns the specified protocol
fails:Addrinfo#initialize with a sockaddr array without a family stores the ip address from the sockaddr
fails:Addrinfo#initialize with a sockaddr array without a family stores the port number from the sockaddr
fails:Addrinfo#initialize with a sockaddr array without a family returns the Socket::UNSPEC pfamily
fails:Addrinfo#initialize with a sockaddr array without a family returns the INET6 afamily
fails:Addrinfo#initialize with a sockaddr array without a family returns the 0 socket type
fails:Addrinfo#initialize with a sockaddr array without a family returns the 0 protocol
fails:Addrinfo#initialize with a sockaddr array with a family given stores the ip address from the sockaddr
fails:Addrinfo#initialize with a sockaddr array with a family given stores the port number from the sockaddr
fails:Addrinfo#initialize with a sockaddr array with a family given returns the Socket::UNSPEC pfamily
fails:Addrinfo#initialize with a sockaddr array with a family given returns the INET6 afamily
fails:Addrinfo#initialize with a sockaddr array with a family given returns the 0 socket type
fails:Addrinfo#initialize with a sockaddr array with a family given returns the 0 protocol
fails:Addrinfo#initialize with a sockaddr array with a family and socket type stores the ip address from the sockaddr
fails:Addrinfo#initialize with a sockaddr array with a family and socket type stores the port number from the sockaddr
fails:Addrinfo#initialize with a sockaddr array with a family and socket type returns the Socket::UNSPEC pfamily
fails:Addrinfo#initialize with a sockaddr array with a family and socket type returns the INET6 afamily
fails:Addrinfo#initialize with a sockaddr array with a family and socket type returns the 0 socket type
fails:Addrinfo#initialize with a sockaddr array with a family and socket type returns the 0 protocol
fails:Addrinfo#initialize with a sockaddr array with a family, socket type and protocol stores the ip address from the sockaddr
fails:Addrinfo#initialize with a sockaddr array with a family, socket type and protocol stores the port number from the sockaddr
fails:Addrinfo#initialize with a sockaddr array with a family, socket type and protocol returns the Socket::UNSPEC pfamily
fails:Addrinfo#initialize with a sockaddr array with a family, socket type and protocol returns the INET6 afamily
fails:Addrinfo#initialize with a sockaddr array with a family, socket type and protocol returns the 0 socket type
fails:Addrinfo#initialize with a sockaddr array with a family, socket type and protocol returns the specified protocol
3 changes: 3 additions & 0 deletions spec/truffle/tags/library/socket/addrinfo/ip_address_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fails:Addrinfo#ip_address for an ipv4 socket returns the ip address
fails:Addrinfo#ip_address for an ipv6 socket returns the ip address
fails:Addrinfo#ip_address for a unix socket raises an exception
3 changes: 3 additions & 0 deletions spec/truffle/tags/library/socket/addrinfo/ip_port_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fails:Addrinfo#ip_port for an ipv4 socket returns the port
fails:Addrinfo#ip_port for an ipv6 socket returns the port
fails:Addrinfo#ip_port for a unix socket raises an exception
3 changes: 3 additions & 0 deletions spec/truffle/tags/library/socket/addrinfo/ip_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fails:Addrinfo#ip? for an ipv4 socket returns true
fails:Addrinfo#ip? for an ipv6 socket returns true
fails:Addrinfo#ip? for a unix socket returns Socket::AF_INET6
3 changes: 3 additions & 0 deletions spec/truffle/tags/library/socket/addrinfo/ip_unpack_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fails:Addrinfo#ip_unpack for an ipv4 socket returns the ip address and port pair
fails:Addrinfo#ip_unpack for an ipv6 socket returns the ip address and port pair
fails:Addrinfo#ip_unpack for a unix socket raises an exception
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fails:Addrinfo#ipv4_loopback? for an ipv4 socket returns true for the loopback address
fails:Addrinfo#ipv4_loopback? for an ipv4 socket returns false for another address
fails:Addrinfo#ipv4_loopback? for an ipv6 socket returns false for the loopback address
fails:Addrinfo#ipv4_loopback? for an ipv6 socket returns false for another address
fails:Addrinfo#ipv4_loopback? for a unix socket returns false
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fails:Addrinfo#ipv4_multicast? for an ipv4 socket returns true for the loopback address
fails:Addrinfo#ipv4_multicast? for an ipv4 socket returns false for another address
fails:Addrinfo#ipv4_multicast? for an ipv6 socket returns false for the loopback address
fails:Addrinfo#ipv4_multicast? for an ipv6 socket returns false for another address
fails:Addrinfo#ipv4_multicast? for a unix socket returns false
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
fails:Addrinfo#ipv4_private? for an ipv4 socket returns true for a private address
fails:Addrinfo#ipv4_private? for an ipv4 socket returns false for a public address
fails:Addrinfo#ipv4_private? for an ipv6 socket returns false
fails:Addrinfo#ipv4_private? for a unix socket returns false
3 changes: 3 additions & 0 deletions spec/truffle/tags/library/socket/addrinfo/ipv4_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fails:Addrinfo#ipv4? for an ipv4 socket returns true
fails:Addrinfo#ipv4? for an ipv6 socket returns false
fails:Addrinfo#ipv4? for a unix socket returns false
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fails:Addrinfo#ipv6_loopback? for an ipv4 socket returns true for the loopback address
fails:Addrinfo#ipv6_loopback? for an ipv4 socket returns false for another address
fails:Addrinfo#ipv6_loopback? for an ipv6 socket returns false for the loopback address
fails:Addrinfo#ipv6_loopback? for an ipv6 socket returns false for another address
fails:Addrinfo#ipv6_loopback? for a unix socket returns false
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fails:Addrinfo#ipv6_multicast? for an ipv4 socket returns true for the loopback address
fails:Addrinfo#ipv6_multicast? for an ipv4 socket returns false for another address
fails:Addrinfo#ipv6_multicast? for an ipv6 socket returns false for the loopback address
fails:Addrinfo#ipv6_multicast? for an ipv6 socket returns false for another address
fails:Addrinfo#ipv6_multicast? for a unix socket returns false
3 changes: 3 additions & 0 deletions spec/truffle/tags/library/socket/addrinfo/ipv6_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fails:Addrinfo#ipv6? for an ipv4 socket returns true
fails:Addrinfo#ipv6? for an ipv6 socket returns false
fails:Addrinfo#ipv6? for a unix socket returns false
3 changes: 3 additions & 0 deletions spec/truffle/tags/library/socket/addrinfo/pfamily_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fails:Addrinfo#pfamily for an ipv4 socket returns Socket::PF_INET
fails:Addrinfo#pfamily for an ipv6 socket returns Socket::PF_INET6
fails:Addrinfo#pfamily for a unix socket returns Socket::PF_UNIX
3 changes: 3 additions & 0 deletions spec/truffle/tags/library/socket/addrinfo/protocol_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fails:Addrinfo#protocol for an ipv4 socket returns Socket::IPPROTO_TCP
fails:Addrinfo#protocol for an ipv6 socket returns Socket::IPPROTO_TCP
fails:Addrinfo#protocol for a unix socket returns 0
3 changes: 3 additions & 0 deletions spec/truffle/tags/library/socket/addrinfo/socktype_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fails:Addrinfo#socktype for an ipv4 socket returns Socket::SOCK_STREAM
fails:Addrinfo#socktype for an ipv6 socket returns Socket::SOCK_STREAM
fails:Addrinfo#socktype for a unix socket returns Socket::SOCK_STREAM
1 change: 1 addition & 0 deletions spec/truffle/tags/library/socket/addrinfo/tcp_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:Addrinfo.tcp creates a addrinfo for a tcp socket
3 changes: 3 additions & 0 deletions spec/truffle/tags/library/socket/addrinfo/to_s_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fails:Addrinfo#to_s for an ipv4 socket returns a sockaddr packed structure
fails:Addrinfo#to_s for an ipv6 socket returns a sockaddr packed structure
fails:Addrinfo#to_s for a unix socket returns a sockaddr packed structure
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fails:Addrinfo#to_sockaddr for an ipv4 socket returns a sockaddr packed structure
fails:Addrinfo#to_sockaddr for an ipv6 socket returns a sockaddr packed structure
fails:Addrinfo#to_sockaddr for a unix socket returns a sockaddr packed structure
1 change: 1 addition & 0 deletions spec/truffle/tags/library/socket/addrinfo/udp_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:Addrinfo.udp creates a addrinfo for a tcp socket
3 changes: 3 additions & 0 deletions spec/truffle/tags/library/socket/addrinfo/unix_path_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fails:Addrinfo#unix_path for an ipv4 socket raises an exception
fails:Addrinfo#unix_path for an ipv6 socket raises an exception
fails:Addrinfo#unix_path for a unix socket returns the socket path
4 changes: 4 additions & 0 deletions spec/truffle/tags/library/socket/addrinfo/unix_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
fails:Addrinfo.unix creates a addrinfo for a unix socket
fails:Addrinfo#unix? for an ipv4 socket returns false
fails:Addrinfo#unix? for an ipv6 socket returns false
fails:Addrinfo#unix? for a unix socket returns true
2 changes: 2 additions & 0 deletions spec/truffle/tags/library/socket/option/bool_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fails:Socket::Option#bool returns boolean value
fails:Socket::Option#bool raises TypeError if option has not good size
1 change: 1 addition & 0 deletions spec/truffle/tags/library/socket/option/inspect_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:Socket::Option#inspect correctly returns SO_LINGER value
2 changes: 2 additions & 0 deletions spec/truffle/tags/library/socket/option/int_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fails:Socket::Option#int returns int value
fails:Socket::Option#int raises TypeError if option has not good size
3 changes: 3 additions & 0 deletions spec/truffle/tags/library/socket/option/linger_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fails:Socket::Option.linger creates a new Socket::Option for SO_LINGER
fails:Socket::Option.linger accepts boolean as onoff argument
fails:Socket::Option#linger returns linger option
1 change: 1 addition & 0 deletions spec/truffle/tags/library/socket/option/new_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:Socket::Option.new should raise error on unknown level
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
fails:Socket#connect_nonblock connects the socket to the remote side
fails:Socket#connect_nonblock raises Errno::EINPROGRESS when the connect would block
fails:Socket#connect_nonblock raises Errno::EINPROGRESS with IO::WaitWritable mixed in when the connect would block
fails:Socket#connect_nonblock returns :wait_writable in exceptionless mode when the connect would block
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
fails:Socket::TCPServer.accept_nonblock accepts non blocking connections
fails:Socket::TCPServer.accept_nonblock raises an IOError if the socket is closed
fails:Socket::TCPServer.accept_nonblock without a connected client raises error
fails:Socket::TCPServer.accept_nonblock without a connected client returns :wait_readable in exceptionless mode
2 changes: 2 additions & 0 deletions spec/truffle/tags/library/socket/tcpserver/sysaccept_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fails:TCPServer#sysaccept blocks if no connections
fails:TCPServer#sysaccept returns file descriptor of an accepted connection
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fails:TCPSocket#setsockopt using constants sets the TCP nodelay to 1
fails:TCPSocket#setsockopt using symbols sets the TCP nodelay to 1
fails:TCPSocket#setsockopt using symbols without prefix sets the TCP nodelay to 1
fails:TCPSocket#setsockopt using strings sets the TCP nodelay to 1
fails:TCPSocket#setsockopt using strings without prefix sets the TCP nodelay to 1
7 changes: 7 additions & 0 deletions spec/truffle/tags/library/stringio/getch_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
fails:StringIO#getch increases self's position by one
fails:StringIO#getch returns nil when called at the end of self
fails:StringIO#getch does not increase self's position when called at the end of file
fails:StringIO#getch returns the charactor at the current position
fails:StringIO#getch increments #pos by the byte size of the character in multibyte strings
fails:StringIO#getch returns nil at the end of the string
fails:StringIO#getch StringIO#getch when self is not readable raises an IOError
1 change: 1 addition & 0 deletions spec/truffle/tags/library/stringio/sysread_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:StringIO#sysread when passed nil returns an empty String if at EOF