Comments (4)
after pull request #152 most of tests are passed with JRuby
from fakefs.
after pull request #152 most of tests are passed with JRuby
from fakefs.
This can probably be closed now as this is no longer the case, although some tests do fail, this is not the same issue.
from fakefs.
I get different failures in JRuby 1.7.11 (as would be expected four years later):
/Users/donovan/.rvm/rubies/jruby-1.7.11/bin/jruby -I"lib:test" -I"/Users/donovan/.rvm/rubies/jruby-1.7.11/lib/ruby/shared" "/Users/donovan/.rvm/rubies/jruby-1.7.11/lib/ruby/shared/rake/rake_test_loader.rb" "test/fake/file/join_test.rb" "test/fake/file/lstat_test.rb" "test/fake/file/stat_test.rb" "test/fake/file/sysseek_test.rb" "test/fake/file/syswrite_test.rb" "test/fake/file_test.rb" "test/fake/symlink_test.rb" "test/fakefs_test.rb" "test/file/stat_test.rb" "test/kernel_test.rb" "test/safe_test.rb"
Run options:
# Running tests:
.....................................................................................................................................................F..........................F.............................................................................F.....................................................................F..F...........test
.
Finished tests in 2.560000s, 132.8125 tests/s, 246.4844 assertions/s.
1) Failure:
test_every_method_in_file_is_in_fake_fs_file(FakeFSTest) [/Users/donovan/Development/public/fakefs/test/fakefs_test.rb:1145]:
lchmod method is not available in File :(
2) Failure:
test_file_opens_in_invalid_mode(FakeFSTest) [/Users/donovan/Development/public/fakefs/test/fakefs_test.rb:395]:
[ArgumentError] exception expected, not
Class: <Errno::EINVAL>
Message: <"Invalid argument - an_illegal_mode">
---Backtrace---
org/jruby/ext/stringio/StringIO.java:143:in `initialize'
/Users/donovan/Development/public/fakefs/test/../lib/fakefs/file.rb:539:in `check_modes!'
/Users/donovan/Development/public/fakefs/test/../lib/fakefs/file.rb:361:in `initialize'
org/jruby/ext/stringio/StringIO.java:117:in `open'
/Users/donovan/Development/public/fakefs/test/fakefs_test.rb:396:in `test_file_opens_in_invalid_mode'
---------------
3) Failure:
test_raises_error_when_opening_with_binary_mode_only(FakeFSTest) [/Users/donovan/Development/public/fakefs/test/fakefs_test.rb:506]:
[ArgumentError] exception expected, not
Class: <Errno::EINVAL>
Message: <"Invalid argument - b">
---Backtrace---
org/jruby/ext/stringio/StringIO.java:143:in `initialize'
/Users/donovan/Development/public/fakefs/test/../lib/fakefs/file.rb:539:in `check_modes!'
/Users/donovan/Development/public/fakefs/test/../lib/fakefs/file.rb:361:in `initialize'
org/jruby/ext/stringio/StringIO.java:117:in `open'
/Users/donovan/Development/public/fakefs/test/fakefs_test.rb:507:in `test_raises_error_when_opening_with_binary_mode_only'
---------------
4) Failure:
test_touch_modifies_mtime(FileStatTest) [/Users/donovan/Development/public/fakefs/test/file/stat_test.rb:108]:
Failed assertion, no message given.
5) Failure:
test_writing_to_file_modifies_mtime(FileStatTest) [/Users/donovan/Development/public/fakefs/test/file/stat_test.rb:116]:
Failed assertion, no message given.
340 tests, 631 assertions, 5 failures, 0 errors, 0 skips
rake aborted!
5
org/jruby/RubyProc.java:271:in `call'
org/jruby/RubyProc.java:271:in `call'
org/jruby/RubyArray.java:1613:in `each'
org/jruby/RubyArray.java:1613:in `each'
org/jruby/RubyArray.java:1613:in `each'
org/jruby/RubyKernel.java:1101:in `load'
org/jruby/RubyKernel.java:1121:in `eval'
Tasks: TOP => default => test
(See full trace by running task with --trace)
from fakefs.
Related Issues (20)
- make a 1.0.0 release? HOT 1
- please add ruby2.7 support HOT 3
- tests for the verbose option in cp and mv fail randomly under ruby 2.7 HOT 1
- Regression: FakeFS::File became non-IO HOT 2
- inconsitencies with some methods when passed an empty path HOT 1
- Dir.open() { |foo| ... } differs from standard Dir.open HOT 2
- Dir.glob fails if chdir to a directory that contains plus signs '+' HOT 4
- `File.readlines(path, chomp: true)` isn't supported (standard) HOT 1
- How do I simulate an ELOOP? HOT 4
- IO not mocked (specifically, IO.read not mocked) HOT 1
- How to use with byebug? HOT 2
- Mocking isolated directories HOT 1
- Pathname#glob HOT 3
- Using requests with fakefs HOT 2
- git head testsuite fails with ruby3.2dev for some unavailable method HOT 3
- File system and objects are not auto loaded on Ruby 3.0.4 HOT 5
- Can't use IRB when FakeFS is activated HOT 1
- Pathname's #realdirpath and #realpath do not work (as intended) HOT 1
- Ruby3 Kernel.open() handling of kwargs fails after fakefs deactivation HOT 3
- Calling FileUtils.touch on a symlink with a missing target throws an exception instead of creating the file HOT 1
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 fakefs.