Giter Club home page Giter Club logo

Comments (8)

eregon avatar eregon commented on September 5, 2024

Yes, these should really be fixtures, like fixture(__FILE__, "autoload_frozen.rb")

from mspec.

eregon avatar eregon commented on September 5, 2024

The approach using STDIN to pass the code is problematic for cases of ruby_exe which expect to pass a file by STDIN.

from mspec.

ngoto avatar ngoto commented on September 5, 2024

Thanks, but this only fixes "Kernel#autoload when Object is frozen raises a RuntimeError before defining the constant FAILED".

As you can see, there are many "sh: : cannot execute" which is caused by cat and double quote splitting of command line. Do you mean all of the specs should be rewritten to fixture?

from mspec.

eregon avatar eregon commented on September 5, 2024

I think most of them should, but I am also investigating a solution with putting the code in a temporary file, for ruby_exe.
Seems it works well except for 4 examples of -s, which I can fix. I'll push the fix tomorrow.

from mspec.

ngoto avatar ngoto commented on September 5, 2024

Executing mspec with "--verbose --debug" shows that the shell's error messages "sh: END_OF_RUBYCODE: not found" and "sh: 2>&1: not found" occurred in spec/rubyspec/command_line/rubyopt_spec.rb.

$ MSPECOPT="--verbose --debug" make test-rubyspec
./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems -r./sparc64-solaris2.10-fake ./spec/mspec/bin/mspec run -B ./spec/default.mspec --verbose --debug
ruby 2.3.0dev (2015-09-02) [sparc64-solaris2.10]

/XXXXX/trunk-51741/spec/rubyspec/command_line/dash_a_spec.rb                                                .
(snip)
/XXXXX/trunk-51741/spec/rubyspec/command_line/error_message_spec.rb                                         .
/XXXXX/trunk-51741/spec/rubyspec/command_line/rubyopt_spec.rb                                               Exception `LoadError' at /XXXXX/trunk-51741/lib/rubygems.rb:1229 - cannot load such file -- rubygems/defaults/operating_system
Exception `LoadError' at /XXXXX/trunk-51741/lib/rubygems.rb:1238 - cannot load such file -- rubygems/defaults/ruby
sh: END_OF_RUBYCODE: not found
sh:  2>&1: not found
F
/XXXXX/trunk-51741/spec/rubyspec/language/BEGIN_spec.rb                                                     .
(snip)
/XXXXX/trunk-51741/spec/rubyspec/optional/capi/util_spec.rb                                                 .

1)
Processing RUBYOPT sets $DEBUG to true for '-d' FAILED
Expected ""
 to match /value of \$DEBUG is true/

(snip)

I'm sorry I misidentified the error. The failure of "Kernel#autoload when Object is frozen raises a RuntimeError before defining the constant" did not show shell's error message and it only showed child ruby's syntax error.

from mspec.

eregon avatar eregon commented on September 5, 2024

I think this last commit should fix it, as it puts the code in a temporary file.
Please reopen if not.

from mspec.

eregon avatar eregon commented on September 5, 2024

It looks fine on RubyCI now, remaining errors seem unrelated to shell errors.

from mspec.

ngoto avatar ngoto commented on September 5, 2024

Thnak you. I'm running "make test-rubyspec" on Solaris 10. I'll post about other failures as different issues.

from mspec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.