summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/fileutils/test_fileutils.rb17
-rw-r--r--version.h2
2 files changed, 16 insertions, 3 deletions
diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb
index 2640eb2094..82380d434c 100644
--- a/test/fileutils/test_fileutils.rb
+++ b/test/fileutils/test_fileutils.rb
@@ -18,8 +18,11 @@ class TestFileUtils < Test::Unit::TestCase
fu.instance_variable_set(:@fileutils_output, write)
th = Thread.new { read.read }
th2 = Thread.new {
- yield
- write.close
+ begin
+ yield
+ ensure
+ write.close
+ end
}
th_value, _ = assert_join_threads([th, th2])
lines = th_value.lines.map {|l| l.chomp }
@@ -216,6 +219,16 @@ class TestFileUtils < Test::Unit::TestCase
# Test Cases
#
+ def test_assert_output_lines
+ assert_raise(MiniTest::Assertion) {
+ Timeout.timeout(0.1) {
+ assert_output_lines([]) {
+ raise "ok"
+ }
+ }
+ }
+ end
+
def test_pwd
check_singleton :pwd
diff --git a/version.h b/version.h
index 21185764b6..65472f1b4a 100644
--- a/version.h
+++ b/version.h
@@ -1,6 +1,6 @@
#define RUBY_VERSION "2.3.3"
#define RUBY_RELEASE_DATE "2017-02-08"
-#define RUBY_PATCHLEVEL 238
+#define RUBY_PATCHLEVEL 239
#define RUBY_RELEASE_YEAR 2017
#define RUBY_RELEASE_MONTH 2