Created
July 31, 2020 15:07
-
-
Save bjfish/425321b23ba04729bf9ae2807fa576e1 to your computer and use it in GitHub Desktop.
test-unit failures
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| % rake | |
| /Users/bfish/Documents/truffleruby-ws/truffleruby/mxbuild/truffleruby-native/jre/languages/ruby/bin/truffleruby test/run-test.rb | |
| Loaded suite test | |
| Started | |
| ..................................................................................................................E | |
| ============================================================================================================================================================================================================ | |
| <internal:core> core/throw_catch.rb:36:in `catch' | |
| <internal:core> core/throw_catch.rb:36:in `catch' | |
| 647: def test_assert_raise_jruby | |
| 648: omit("For JRuby") unless Object.const_defined?(:Java) | |
| 649: | |
| => 650: exception = Java::JavaLang::StringIndexOutOfBoundsException | |
| 651: | |
| 652: return_value = nil | |
| 653: check_nothing_fails(true) do | |
| /Users/bfish/Documents/projects/test-unit/test/test-assertions.rb:650:in `test_assert_raise_jruby' | |
| /Users/bfish/Documents/projects/test-unit/test/test-assertions.rb:650:in `const_missing' | |
| Error: test_assert_raise_jruby(Test::Unit::TestAssertions): NameError: uninitialized constant Java::JavaLang::StringIndexOutOfBoundsException | |
| ============================================================================================================================================================================================================ | |
| ..........................................F | |
| ============================================================================================================================================================================================================ | |
| <internal:core> core/throw_catch.rb:36:in `catch' | |
| <internal:core> core/throw_catch.rb:36:in `catch' | |
| 196: location << "#{__FILE__}:0:in `/'" if cruby? | |
| 197: location << "#{__FILE__}:0:in `test_error'" | |
| 198: location << "#{__FILE__}:0:in `#{__method__}'" | |
| => 199: assert_equal([ | |
| 200: { | |
| 201: :class => Error, | |
| 202: :message => "ZeroDivisionError: divided by 0", | |
| /Users/bfish/Documents/projects/test-unit/test/test-test-case.rb:199:in `test_add_error' | |
| <[{:class=>Test::Unit::Error, | |
| :location=> | |
| ["/Users/bfish/Documents/projects/test-unit/test/test-test-case.rb:0:in `/'", | |
| "/Users/bfish/Documents/projects/test-unit/test/test-test-case.rb:0:in `test_error'", | |
| "/Users/bfish/Documents/projects/test-unit/test/test-test-case.rb:0:in `test_add_error'"], | |
| :message=>"ZeroDivisionError: divided by 0", | |
| :test_name=>"test_error(TC_FailureError)"}]> expected but was | |
| <[{:class=>Test::Unit::Error, | |
| :location=> | |
| ["/Users/bfish/Documents/projects/test-unit/test/test-test-case.rb:0:in `/'", | |
| "/Users/bfish/Documents/projects/test-unit/test/test-test-case.rb:0:in `test_error'", | |
| "<internal:core> core/throw_catch.rb:0:in `catch'", | |
| "/Users/bfish/Documents/projects/test-unit/test/test-test-case.rb:0:in `test_add_error'", | |
| "<internal:core> core/throw_catch.rb:0:in `catch'", | |
| "<internal:core> core/throw_catch.rb:0:in `catch'"], | |
| :message=>"ZeroDivisionError: divided by 0", | |
| :test_name=>"test_error(TC_FailureError)"}]> | |
| diff: | |
| [{:class=>Test::Unit::Error, | |
| :location=> | |
| ["/Users/bfish/Documents/projects/test-unit/test/test-test-case.rb:0:in `/'", | |
| "/Users/bfish/Documents/projects/test-unit/test/test-test-case.rb:0:in `test_error'", | |
| + "<internal:core> core/throw_catch.rb:0:in `catch'", | |
| ? "/Users/bfish/Documents/projects/test-unit/test/test-test-case.rb:0:in `test_add_error'"], | |
| + "<internal:core> core/throw_catch.rb:0:in `catch'", | |
| + "<internal:core> core/throw_catch.rb:0:in `catch'"], | |
| :message=>"ZeroDivisionError: divided by 0", | |
| :test_name=>"test_error(TC_FailureError)"}] | |
| Failure: test_add_error(Test::Unit::TestTestCase) | |
| ============================================================================================================================================================================================================ | |
| ......F | |
| ============================================================================================================================================================================================================ | |
| <internal:core> core/throw_catch.rb:36:in `catch' | |
| <internal:core> core/throw_catch.rb:36:in `catch' | |
| 140: :location => normalize_location(fault.location), | |
| 141: } | |
| 142: end | |
| => 143: assert_equal([ | |
| 144: { | |
| 145: :class => Failure, | |
| 146: :message => "nested", | |
| /Users/bfish/Documents/projects/test-unit/test/test-test-case.rb:143:in `test_add_failure_nested' | |
| <[{:class=>Test::Unit::Failure, | |
| :location=> | |
| ["/Users/bfish/Documents/projects/test-unit/test/test-test-case.rb:0:in `nested'", | |
| "/Users/bfish/Documents/projects/test-unit/test/test-test-case.rb:0:in `test_nested_failure'", | |
| "/Users/bfish/Documents/projects/test-unit/test/test-test-case.rb:0:in `test_add_failure_nested'"], | |
| :message=>"nested", | |
| :test_name=>"test_nested_failure(TC_FailureError)"}]> expected but was | |
| <[{:class=>Test::Unit::Failure, | |
| :location=> | |
| ["/Users/bfish/Documents/projects/test-unit/test/test-test-case.rb:0:in `nested'", | |
| "/Users/bfish/Documents/projects/test-unit/test/test-test-case.rb:0:in `test_nested_failure'", | |
| "<internal:core> core/throw_catch.rb:0:in `catch'", | |
| "/Users/bfish/Documents/projects/test-unit/test/test-test-case.rb:0:in `test_add_failure_nested'", | |
| "<internal:core> core/throw_catch.rb:0:in `catch'", | |
| "<internal:core> core/throw_catch.rb:0:in `catch'"], | |
| :message=>"nested", | |
| :test_name=>"test_nested_failure(TC_FailureError)"}]> | |
| diff: | |
| [{:class=>Test::Unit::Failure, | |
| :location=> | |
| ["/Users/bfish/Documents/projects/test-unit/test/test-test-case.rb:0:in `nested'", | |
| "/Users/bfish/Documents/projects/test-unit/test/test-test-case.rb:0:in `test_nested_failure'", | |
| + "<internal:core> core/throw_catch.rb:0:in `catch'", | |
| ? "/Users/bfish/Documents/projects/test-unit/test/test-test-case.rb:0:in `test_add_failure_nested'"], | |
| + "<internal:core> core/throw_catch.rb:0:in `catch'", | |
| + "<internal:core> core/throw_catch.rb:0:in `catch'"], | |
| :message=>"nested", | |
| :test_name=>"test_nested_failure(TC_FailureError)"}] | |
| Failure: test_add_failure_nested(Test::Unit::TestTestCase) | |
| ============================================================================================================================================================================================================ | |
| .....F | |
| ============================================================================================================================================================================================================ | |
| <internal:core> core/throw_catch.rb:36:in `catch' | |
| <internal:core> core/throw_catch.rb:36:in `catch' | |
| 94: :location => normalize_location(fault.location), | |
| 95: } | |
| 96: end | |
| => 97: assert_equal([ | |
| 98: { | |
| 99: :class => Failure, | |
| 100: :message => "failure", | |
| /Users/bfish/Documents/projects/test-unit/test/test-test-case.rb:97:in `test_add_failed_assertion' | |
| <[{:class=>Test::Unit::Failure, | |
| :location=> | |
| ["/Users/bfish/Documents/projects/test-unit/test/test-test-case.rb:0:in `test_failure'", | |
| "/Users/bfish/Documents/projects/test-unit/test/test-test-case.rb:0:in `test_add_failed_assertion'"], | |
| :message=>"failure", | |
| :test_name=>"test_failure(TC_FailureError)"}]> expected but was | |
| <[{:class=>Test::Unit::Failure, | |
| :location=> | |
| ["/Users/bfish/Documents/projects/test-unit/test/test-test-case.rb:0:in `test_failure'", | |
| "<internal:core> core/throw_catch.rb:0:in `catch'", | |
| "/Users/bfish/Documents/projects/test-unit/test/test-test-case.rb:0:in `test_add_failed_assertion'", | |
| "<internal:core> core/throw_catch.rb:0:in `catch'", | |
| "<internal:core> core/throw_catch.rb:0:in `catch'"], | |
| :message=>"failure", | |
| :test_name=>"test_failure(TC_FailureError)"}]> | |
| diff: | |
| [{:class=>Test::Unit::Failure, | |
| :location=> | |
| ["/Users/bfish/Documents/projects/test-unit/test/test-test-case.rb:0:in `test_failure'", | |
| + "<internal:core> core/throw_catch.rb:0:in `catch'", | |
| ? "/Users/bfish/Documents/projects/test-unit/test/test-test-case.rb:0:in `test_add_failed_assertion'"], | |
| + "<internal:core> core/throw_catch.rb:0:in `catch'", | |
| + "<internal:core> core/throw_catch.rb:0:in `catch'"], | |
| :message=>"failure", | |
| :test_name=>"test_failure(TC_FailureError)"}] | |
| Failure: test_add_failed_assertion(Test::Unit::TestTestCase) | |
| ============================================================================================================================================================================================================ | |
| ...................F | |
| ============================================================================================================================================================================================================ | |
| <internal:core> core/throw_catch.rb:36:in `catch' | |
| <internal:core> core/throw_catch.rb:36:in `catch' | |
| 845: :line => line_after_def, | |
| 846: :method_name => "test_before", | |
| 847: } | |
| => 848: assert_false(test_case.test_defined?(query)) | |
| 849: end | |
| 850: end | |
| 851: | |
| /Users/bfish/Documents/projects/test-unit/test/test-test-case.rb:848:in `test_line_after_def' | |
| Failure: test_line_after_def(Test::Unit::TestTestCase::TestTestDefined::TestCombine::TestDefStyle): | |
| <false> expected but was | |
| <true> | |
| ============================================================================================================================================================================================================ | |
| ...F | |
| ============================================================================================================================================================================================================ | |
| <internal:core> core/throw_catch.rb:36:in `catch' | |
| <internal:core> core/throw_catch.rb:36:in `catch' | |
| 656: def test_nothing | |
| 657: end | |
| 658: end | |
| => 659: assert_false(test_case.test_defined?(:line => line_before)) | |
| 660: end | |
| 661: | |
| 662: def test_def | |
| /Users/bfish/Documents/projects/test-unit/test/test-test-case.rb:659:in `test_before' | |
| Failure: test_before(Test::Unit::TestTestCase::TestTestDefined::TestLine::TestDefStyle): | |
| <false> expected but was | |
| <true> | |
| ============================================================================================================================================================================================================ | |
| ......................................O | |
| ============================================================================================================================================================================================================ | |
| /Users/bfish/Documents/projects/test-unit/test/testunit-test-util.rb:13:in `jruby_only_test' | |
| Omission: test for JRuby [test_error_inside_jruby(TestCodeSnippet::TestJRuby)] | |
| ============================================================================================================================================================================================================ | |
| .................................................................................................................................................................O | |
| ============================================================================================================================================================================================================ | |
| /Users/bfish/Documents/projects/test-unit/test/util/test_backtracefilter.rb:42:in `test_power_assert_backtrace' | |
| Omission: test for power_assert [test_power_assert_backtrace(Test::Unit::Util::TestBacktraceFilter)] | |
| ============================================================================================================================================================================================================ | |
| .. | |
| Finished in 10.47 seconds. | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 398 tests, 1414 assertions, 5 failures, 1 errors, 0 pendings, 2 omissions, 0 notifications | |
| 98.4848% passed | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 38.01 tests/s, 135.05 assertions/s | |
| rake aborted! | |
| Command failed with status (1): [/Users/bfish/Documents/truffleruby-ws/truf...] | |
| /Users/bfish/Documents/projects/test-unit/rakefile:81:in `block in <top (required)>' | |
| <internal:core> core/kernel.rb:395:in `load' | |
| <internal:core> core/kernel.rb:395:in `load' | |
| Tasks: TOP => default => test | |
| (See full trace by running task with --trace) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment