diff options
author | Eric Wong <e@yhbt.net> | 2011-02-02 21:33:28 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-02-02 13:42:33 -0800 |
commit | 17abe6ce8f01810022b948c71de0026b4ac89597 (patch) | |
tree | ca4cee3b39ecba1fcf0a51336f2399717c96750b /test/lib_read_write.rb | |
parent | 879f2f0ee9133f34ec3e24141bdb4936e3408d3a (diff) | |
download | kgio-17abe6ce8f01810022b948c71de0026b4ac89597.tar.gz |
No extra #ifdefs, we just won't support old systems without getaddrinfo() and friends anymore. I doubt anybody still has them...
Diffstat (limited to 'test/lib_read_write.rb')
-rw-r--r-- | test/lib_read_write.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lib_read_write.rb b/test/lib_read_write.rb index b3c6f17..593a9e9 100644 --- a/test/lib_read_write.rb +++ b/test/lib_read_write.rb @@ -10,8 +10,8 @@ module LibReadWriteTest def teardown assert_nothing_raised do - @rd.close unless @rd.closed? - @wr.close unless @wr.closed? + @rd.close if defined?(@rd) && ! @rd.closed? + @wr.close if defined?(@wr) && ! @wr.closed? end end |