#1459: should display exception message in stderr ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by watson1978@…): I wrote a patch. https://github.com/Watson1978/MacRuby/commit/94d22f35d9a4ac147abe73cbaa128c9... However, at least, it looks like SandBox of Specs might need to modify. {{{ $ rake spec:macruby rm -rf rubyspec_temp ./mspec/bin/mspec ci -B ./spec/macruby.mspec :macruby MacRuby 0.12 (ruby 1.9.2) [universal-darwin11.0, x86_64] ..................................................................................................*** Dispatch block exited prematurely because of an uncaught exception: /Users/watson/src/macruby- master/mspec/lib/mspec/expectations/expectations.rb:15:in `fail_with': Expected true to equal false (SpecExpectationNotMetError) from /Users/watson/src/macruby- master/mspec/lib/mspec/matchers/base.rb:9:in `==' from /Users/watson/src/macruby- master/spec/macruby/core/gcd/semaphore_spec.rb:62:in `block' ......................................................................................................................................................................-e:1:in `<main>': Operation not permitted - open() failed (Errno::EPERM) F-e:1:in `<main>': Operation not permitted - open() failed (Errno::EPERM) F.-e:1:in `<main>': Operation not permitted - open() failed (Errno::EPERM) Fmacruby(19720,0x10548e000) malloc: *** error for object 0x7fff914f5f98: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug ..-e:1:in `<main>': Operation not permitted - open() failed (Errno::EPERM) F-e:1:in `<main>': no such file to load -- /Users/watson/src/macruby- master/spec/macruby/core/sandbox/spec_helper (LoadError) F.-e:1:in `<main>': Operation not permitted - open() failed (Errno::EPERM) F............................................................................................................................................................................. 1) Sandbox.no_writes throws an error when trying to write to a Ruby IO object FAILED Expected "" not to be empty /Users/watson/src/macruby- master/spec/macruby/core/sandbox/shared/no_write.rb:13:in `block' /Users/watson/src/macruby- master/spec/macruby/core/sandbox/spec_helper.rb:15:in `with_temporary_file' /Users/watson/src/macruby- master/spec/macruby/core/sandbox/shared/no_write.rb:11:in `block' /Users/watson/src/macruby- master/spec/macruby/core/sandbox/no_writes_spec.rb:3:in `<main>' 2) Sandbox.no_writes prevents writing to a file in /tmp FAILED Expected "" to match /Errno::EPERM/ /Users/watson/src/macruby- master/spec/macruby/core/sandbox/no_writes_spec.rb:15:in `block' /Users/watson/src/macruby- master/spec/macruby/core/sandbox/spec_helper.rb:15:in `with_temporary_file' /Users/watson/src/macruby- master/spec/macruby/core/sandbox/no_writes_spec.rb:13:in `block' /Users/watson/src/macruby- master/spec/macruby/core/sandbox/no_writes_spec.rb:3:in `<main>' 3) Sandbox.pure_computation throws an error when trying to write to a Ruby IO object FAILED Expected "" not to be empty /Users/watson/src/macruby- master/spec/macruby/core/sandbox/shared/no_write.rb:13:in `block' /Users/watson/src/macruby- master/spec/macruby/core/sandbox/spec_helper.rb:15:in `with_temporary_file' /Users/watson/src/macruby- master/spec/macruby/core/sandbox/shared/no_write.rb:11:in `block' /Users/watson/src/macruby- master/spec/macruby/core/sandbox/pure_computation_spec.rb:3:in `<main>' 4) Sandbox.pure_computation should cause Kernel#open to fail with Errno::EPERM FAILED Expected "" to match /Errno::EPERM/ /Users/watson/src/macruby- master/spec/macruby/core/sandbox/pure_computation_spec.rb:16:in `block' /Users/watson/src/macruby- master/spec/macruby/core/sandbox/spec_helper.rb:15:in `with_temporary_file' /Users/watson/src/macruby- master/spec/macruby/core/sandbox/pure_computation_spec.rb:14:in `block' /Users/watson/src/macruby- master/spec/macruby/core/sandbox/pure_computation_spec.rb:3:in `<main>' 5) Sandbox.pure_computation should cause Kernel#require to raise a LoadError FAILED Expected "" to match /LoadError/ /Users/watson/src/macruby- master/spec/macruby/core/sandbox/pure_computation_spec.rb:22:in `block' /Users/watson/src/macruby- master/spec/macruby/core/sandbox/pure_computation_spec.rb:3:in `<main>' 6) Sandbox.temporary_writes throws an error when trying to write to a Ruby IO object FAILED Expected "" not to be empty /Users/watson/src/macruby- master/spec/macruby/core/sandbox/shared/no_write.rb:13:in `block' /Users/watson/src/macruby- master/spec/macruby/core/sandbox/spec_helper.rb:15:in `with_temporary_file' /Users/watson/src/macruby- master/spec/macruby/core/sandbox/shared/no_write.rb:11:in `block' /Users/watson/src/macruby- master/spec/macruby/core/sandbox/temporary_writes_spec.rb:3:in `<main>' Finished in 109.320105 seconds 40 files, 447 examples, 1814 expectations, 6 failures, 0 errors ----------------------------------------------------- The rubyspec temp directory is not empty. Ensure that all specs are cleaning up temporary files. ----------------------------------------------------- rake aborted! Command failed with status (1): [./mspec/bin/mspec ci -B ./spec/macruby.msp...] Tasks: TOP => spec:macruby (See full trace by running task with --trace) }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1459#comment:2> MacRuby <http://macruby.org/>