/spec/tags/core/io/select_tags.txt

http://github.com/MagLev/maglev · Plain Text · 15 lines · 15 code · 0 blank · 0 comment · 0 complexity · d64a248ec83bfb28af0176ec74e41342 MD5 · raw file

  1. fails:IO.select blocks for duration of timeout if there are no objects ready for I/O
  2. fails:IO.select returns immediately all objects that are ready for I/O when timeout is 0
  3. fails:IO.select returns nil after timeout if there are no objects ready for I/O
  4. fails:IO.select returns supplied objects when they are ready for I/O
  5. fails:IO.select leaves out IO objects for which there is no I/O ready
  6. fails:IO.select returns supplied objects correctly even when monitoring the same object in different arrays
  7. fails:IO.select invokes to_io on supplied objects that are not IO
  8. fails:IO.select raises TypeError if supplied objects are not IO
  9. fails:IO.select raises TypeError if the specified timeout value is not Numeric
  10. fails:IO.select raises TypeError if the first three arguments are not Arrays
  11. fails:IO.select does not raise errors if the first three arguments are nil
  12. fails:IO.select does not accept negative timeouts
  13. fails:IO.select raises a TypeError if the specified timeout value is not Numeric
  14. fails:IO.select sleeps the specified timeout if all streams are nil
  15. fails:IO.select raises an ArgumentError when passed a negative timeout