#1244: Assertion fails in pop_current_exception when raise SyntaxError/rescue in rescue ------------------------------+--------------------------------------------- Reporter: kouji@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.11 Component: MacRuby | Keywords: ------------------------------+--------------------------------------------- Comment(by watson1978@…): From Kouji's commit, it seems that some spec fails with "rake spec:ci". {{{ $ rake spec:ci (in /Users/watson/src/macruby-trunk) rm -rf rubyspec_temp ./mspec/bin/mspec ci -B ./spec/macruby.mspec :full MacRuby 0.11 (ruby 1.9.2) [universal-darwin10.3, x86_64] .........*** Dispatch block exited prematurely because of an uncaught exception: /Users/watson/src/macruby- trunk/mspec/lib/mspec/expectations/expectations.rb:15:in `fail_with:': Expected true to equal false (SpecExpectationNotMetError) from /Users/watson/src/macruby- trunk/mspec/lib/mspec/matchers/base.rb:9:in `==:' from /Users/watson/src/macruby- trunk/spec/macruby/core/gcd/semaphore_spec.rb:62:in `block' ................could not lookup DNS configuration info service: Permission denied could not lookup DNS configuration info service: Permission denied could not lookup DNS configuration info service: Permission denied .....................................F..................F.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................F.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. ................................................................................................................................................................................................F............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ ......................................................................................................................................................................................................................................................................................................................... 1) An ensure block inside a begin block is executed even when a symbol is thrown in it's corresponding begin block FAILED Expected [:begin, :rescue, :ensure] to equal [:begin, :ensure] /Users/watson/src/macruby-trunk/spec/frozen/language/ensure_spec.rb:52:in `block' /Users/watson/src/macruby-trunk/spec/frozen/language/ensure_spec.rb:4:in `<main>' 2) Predefined global $! remains nil after a failed core class "checked" coercion against a class that defines method_missing FAILED Expected #<RuntimeError: An Exception (eval):1: Can't assign to __FILE__ __FILE__ = 1 ^ (eval):1: Can't assign to __LINE__ __LINE__ = 1 ^ (eval):1: both block arg and actual block given (eval):1: no .<digit> floating literal anymore; put 0 before dot (eval):1: syntax error, unexpected '.' (eval):1: no .<digit> floating literal anymore; put 0 before dot (eval):1: syntax error, unexpected '.' (eval):1: void value expression break true or false ^ (eval):1: void value expression next true or false ^ (eval):1: void value expression return true or false ^ (eval):1: syntax error, unexpected tCMP 1 <=> 2 <=> 3 ^ (eval):1: syntax error, unexpected tEQ 1 == 2 == 3 ^ (eval):1: syntax error, unexpected tEQQ 1 === 2 === 3 ^ (eval):1: syntax error, unexpected tNEQ 1 != 2 != 3 ^ (eval):1: syntax error, unexpected tMATCH 1 =~ 2 =~ 3 ^ (eval):1: syntax error, unexpected tNMATCH 1 !~ 2 !~ 3 ^ (eval):1: syntax error, unexpected tDOT2 1..2..3 ^ (eval):1: syntax error, unexpected tDOT3 1...2...3 ^> to equal nil /Users/watson/src/macruby- trunk/spec/frozen/language/predefined_spec.rb:194:in `block' /Users/watson/src/macruby- trunk/spec/frozen/language/predefined_spec.rb:188:in `<main>' 3) Exception#backtrace includes the filename of the location where self raised in the first element FAILED Expected "/Users/watson/src/macruby- trunk/spec/frozen/language/fixtures/ensure.rb:18:in `raise_and_rescue_in_method_with_ensure'" to match /common\.rb/ /Users/watson/src/macruby- trunk/spec/frozen/core/exception/backtrace_spec.rb:22:in `block' /Users/watson/src/macruby- trunk/spec/frozen/core/exception/backtrace_spec.rb:4:in `<main>' 4) Exception#backtrace includes the line number of the location where self raised in the first element FAILED Expected "/Users/watson/src/macruby- trunk/spec/frozen/language/fixtures/ensure.rb:18:in `raise_and_rescue_in_method_with_ensure'" to match /:22:in / /Users/watson/src/macruby- trunk/spec/frozen/core/exception/backtrace_spec.rb:26:in `block' /Users/watson/src/macruby- trunk/spec/frozen/core/exception/backtrace_spec.rb:4:in `<main>' 5) Exception#backtrace includes the name of the method from where self raised in the first element FAILED Expected "/Users/watson/src/macruby- trunk/spec/frozen/language/fixtures/ensure.rb:18:in `raise_and_rescue_in_method_with_ensure'" to match /in `backtrace'/ /Users/watson/src/macruby- trunk/spec/frozen/core/exception/backtrace_spec.rb:30:in `block' /Users/watson/src/macruby- trunk/spec/frozen/core/exception/backtrace_spec.rb:4:in `<main>' 6) Exception#backtrace includes the filename of the location immediately prior to where self raised in the second element FAILED Expected "/Users/watson/src/macruby- trunk/spec/frozen/language/ensure_spec.rb:88:in `block'" to match /backtrace_spec\.rb/ /Users/watson/src/macruby- trunk/spec/frozen/core/exception/backtrace_spec.rb:34:in `block' /Users/watson/src/macruby- trunk/spec/frozen/core/exception/backtrace_spec.rb:4:in `<main>' 7) Exception#backtrace includes the line number of the location immediately prior to where self raised in the second element FAILED Expected "/Users/watson/src/macruby- trunk/spec/frozen/language/ensure_spec.rb:88:in `block'" to match /:6(:in )?/ /Users/watson/src/macruby- trunk/spec/frozen/core/exception/backtrace_spec.rb:38:in `block' /Users/watson/src/macruby- trunk/spec/frozen/core/exception/backtrace_spec.rb:4:in `<main>' 8) ERB#filename raises an exception if there are errors processing content FAILED Expected "(eval)" to equal "foobar.rhtml" /Users/watson/src/macruby- trunk/spec/frozen/library/erb/filename_spec.rb:21:in `block' /Users/watson/src/macruby- trunk/spec/frozen/library/erb/filename_spec.rb:4:in `<main>' 9) ERB#filename uses '(erb)' as filename when filename is not set FAILED Expected "(eval)" to equal "(erb)" /Users/watson/src/macruby- trunk/spec/frozen/library/erb/filename_spec.rb:45:in `block' /Users/watson/src/macruby- trunk/spec/frozen/library/erb/filename_spec.rb:4:in `<main>' Finished in 174.624049 seconds 3305 files, 14491 examples, 56822 expectations, 9 failures, 0 errors rake aborted! Command failed with status (1): [./mspec/bin/mspec ci -B ./spec/macruby.msp...] (See full trace by running task with --trace) }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1244#comment:2> MacRuby <http://macruby.org/>