diff options
Diffstat (limited to 'lib/test/unit.rb')
-rw-r--r-- | lib/test/unit.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/test/unit.rb b/lib/test/unit.rb index 5114e401d9..a69c039cc3 100644 --- a/lib/test/unit.rb +++ b/lib/test/unit.rb @@ -274,7 +274,8 @@ module Test end def read - ((@status == :quit) ? @io.read : @io.gets).chomp + res = (@status == :quit) ? @io.read : @io.gets + res && res.chomp end def close |