Comments (8)
Yes, these should really be fixtures, like fixture(__FILE__, "autoload_frozen.rb")
from mspec.
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.
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.
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.
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.
I think this last commit should fix it, as it puts the code in a temporary file.
Please reopen if not.
from mspec.
It looks fine on RubyCI now, remaining errors seem unrelated to shell errors.
from mspec.
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)
- On Solaris, The DATA constant succeeds in locking the file DATA came from FAILED HOT 4
- Make a gem release for forked mspec project HOT 14
- Support mruby HOT 13
- uninitialized constant MSpecOptions::SummaryFormatter in ruby ci HOT 1
- Use another framework for the tests/specs of mspec itself HOT 8
- MinGW and parallel tests HOT 18
- Allow any formatter when running in parallel (-j)
- Improve communication of parallel mspec
- Combining guards HOT 11
- mspec :foobar raises a ZeroDivisionError HOT 1
- Limitations of it_behaves_like HOT 1
- Randomly failing spec HOT 3
- config files HOT 4
- Add guards for mswin or mingw? HOT 2
- Guards with multiple criteria HOT 13
- ruby_bug FROM...TO HOT 1
- Memory leak when Mock aliases a method HOT 5
- Update documentation link in readme HOT 1
- Error: -e:1: `$(' is not allowed as a global variable name on OSs whose /bin/sh is not bash. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mspec.