test/-ext-/exception/test_data_error.rb
raw| 1 | # frozen_string_literal: false |
| 2 | require 'test/unit' |
| 3 | |
| 4 | module Bug |
| 5 | class Test_ExceptionDE < Test::Unit::TestCase |
| 6 | def test_cleanup_data_error |
| 7 | bug9167 = '[ruby-core:58643] [Bug #9167]' |
| 8 | assert_normal_exit(<<-'end;', bug9167) # do |
| 9 | require '-test-/exception' |
| 10 | raise Bug::Exception::DataError, "Error" |
| 11 | end; |
| 12 | end |
| 13 | end |
| 14 | end |