From d7949151d9e576869bffa6683bee55a9ea538a29 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 9 Apr 2014 20:00:32 +0000 Subject: test/lib_read_write: fix trywritev blocking test 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 Cc: Hleb Valoshka <375gnu@gmail.com> Cc: Cc: Yura Sokolov --- test/lib_read_write.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-24-ge0c7