Skip to content

Commit 76bcc13

Browse files
committed
Add tags for new failing specs
1 parent f82ea20 commit 76bcc13

File tree

12 files changed

+29
-0
lines changed

12 files changed

+29
-0
lines changed

spec/tags/core/file/new_tags.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fails:File.new does not use the given block and warns to use File::open

spec/tags/core/io/gets_tags.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
fails:IO#gets transcodes to internal encoding if the IO object's external encoding is BINARY
2+
fails:IO#gets sets $_ to nil after the last line has been read

spec/tags/core/io/pread_tags.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,17 @@ fails:IO#pread does not advance the file pointer
44
fails:IO#pread raises EOFError if end-of-file is reached
55
fails:IO#pread raises IOError when file is not open in read mode
66
fails:IO#pread raises IOError when file is closed
7+
fails:IO#pread shrinks the buffer in case of less bytes read
8+
fails:IO#pread grows the buffer in case of more bytes read
9+
fails:IO#pread ignores the current offset
10+
fails:IO#pread returns an empty string for maxlen = 0
11+
fails:IO#pread ignores the offset for maxlen = 0, even if it is out of file bounds
12+
fails:IO#pread does not reset the buffer when reading with maxlen = 0
13+
fails:IO#pread converts maxlen to Integer using #to_int
14+
fails:IO#pread converts offset to Integer using #to_int
15+
fails:IO#pread converts a buffer to String using to_str
16+
fails:IO#pread raises TypeError if maxlen is not an Integer and cannot be coerced into Integer
17+
fails:IO#pread raises TypeError if offset is not an Integer and cannot be coerced into Integer
18+
fails:IO#pread raises ArgumentError for negative values of maxlen
19+
fails:IO#pread raised Errno::EINVAL for negative values of offset
20+
fails:IO#pread raises TypeError if the buffer is not a String and cannot be coerced into String

spec/tags/core/io/pwrite_tags.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ fails:IO#pwrite accepts a string and an offset
33
fails:IO#pwrite does not advance the pointer in the file
44
fails:IO#pwrite raises IOError when file is not open in write mode
55
fails:IO#pwrite raises IOError when file is closed
6+
fails:IO#pwrite calls #to_s on the object to be written
7+
fails:IO#pwrite calls #to_int on the offset
8+
fails:IO#pwrite raises a NoMethodError if object does not respond to #to_s
9+
fails:IO#pwrite raises a TypeError if the offset cannot be converted to an Integer

spec/tags/core/signal/trap_tags.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ slow:Signal.trap allows to register a handler for all known signals, except rese
44
slow:Signal.trap returns 'DEFAULT' for the initial SIGINT handler
55
slow:Signal.trap accepts 'SYSTEM_DEFAULT' and uses the OS handler for SIGPIPE
66
slow:Signal.trap the special EXIT signal code can unset the handler
7+
fails:Signal.trap calls #to_str on an object to convert to a String
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
fails:CGI.escapeURIComponent raises a TypeError with nil
2+
fails:CGI.escapeURIComponent uses implicit type conversion to String
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
fails:TCPServer.new raises a SocketError when the host is unknown
2+
fails:TCPServer.new does not use the given block and warns to use TCPServer::open
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
fails:TCPSocket#initialize raises Errno::ETIMEDOUT with :connect_timeout when no server is listening on the given address
22
fails:TCPSocket#initialize with a running server connects to a server when passed connect_timeout argument
33
fails:TCPSocket#initialize raises IO::TimeoutError with :connect_timeout when no server is listening on the given address
4+
fails:TCPSocket#initialize with a running server does not use the given block and warns to use TCPSocket::open
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fails:UDPSocket.new does not use the given block and warns to use UDPSocket::open
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fails:UNIXServer.new does not use the given block and warns to use UNIXServer::open

0 commit comments

Comments
 (0)