diff options
author | Eric Wong <e@80x24.org> | 2014-04-09 20:00:32 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-04-09 21:55:30 +0000 |
commit | d7949151d9e576869bffa6683bee55a9ea538a29 (patch) | |
tree | 3e4d9afa1b945e38f33b021408ecec5bcf7ce08d /test | |
parent | 6243d74cc8296d40a66969594e42963c896968ee (diff) | |
download | kgio-d7949151d9e576869bffa6683bee55a9ea538a29.tar.gz |
penultimate return value may be a subarray for writev-related routines, not a string. Caught by a pre-upload check by Christian Hofstaedtler on the debian-ruby list for kgio 2.9.1 Tested-by: Christian Hofstaedtler <zeha@debian.org> Cc: Hleb Valoshka <375gnu@gmail.com> Cc: <debian-ruby@lists.debian.org> Cc: Yura Sokolov <funny.falcon@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/lib_read_write.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/lib_read_write.rb b/test/lib_read_write.rb index cac87b7..26e7aef 100644 --- a/test/lib_read_write.rb +++ b/test/lib_read_write.rb @@ -292,7 +292,8 @@ module LibReadWriteTest assert_equal :wait_writable, tmp.pop assert tmp.size > 0 penultimate = tmp.pop - assert(penultimate == "I" || penultimate == nil) + assert(penultimate == ["I"] || penultimate == nil, + "penultimate is #{penultimate.inspect}") assert tmp.size > 0 tmp.each { |count| assert_equal nil, count } end |