Actions
Bug #12171
closedTestFile#test_file_share_delete failure
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.0p0 (2015-12-25 revision 53290) [i386-mingw32]
Description
I got an failure in Mingw-w64 32bit.
1) Failure:
TestFile#test_file_share_delete [E:/Jenkins/jobs/RubyInstaller32_ruby23_4.7.2/workspace/sandbox/ruby_2_3/test/ruby/test_file.rb:418]:
Exception raised:
<#<Errno::EACCES: Permission denied @ unlink_internal - c:/temp/test_file_share_delete20160211-11728-1qcjzrd/x>>.
The cause is from O_SHARE_DELETE definition.
include/ruby/win32.h:130:#define O_SHARE_DELETE 0x80000000 /* for rb_w32_open(), rb_w32_wopen() */
file.c:6044: rb_define_const(rb_mFConst, "SHARE_DELETE", INT2FIX(O_SHARE_DELETE));
In 32bit machine, 0x80000000 is out of Fixnum range.
Actions
Like0
Like0Like0Like0