Project

General

Profile

Actions

Bug #1576

closed

TestFile failures in windows

Added by rogerdpack (Roger Pack) over 15 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.3dev (2010-05-12 trunk 27746) [i386-mswin32]
Backport:
[ruby-core:23723]

Description

=begin
Here ya go:

  1. Failure:
    test_gets_para_extended_file(TestFile)
    [c:/dev/downloads/ruby_trunk/test/ruby/test_file.rb:94]:
    mode = <>.
    <"a"> expected but was
    <"\na">.

  2. Failure:
    test_expand_path(TestFileExhaustive)
    [c:/dev/downloads/ruby_trunk/test/ruby/test_file_exhaustive.rb:389]:
    ArgumentError expected but nothing was raised.

  3. Failure:
    test_stat(TestFileExhaustive)
    [c:/dev/downloads/ruby_trunk/test/ruby/test_file_exhaustive.rb:80]:
    <2> expected but was
    <1>.

  4. Failure:
    test_stat_init(TestFileExhaustive)
    [c:/dev/downloads/ruby_trunk/test/ruby/test_file_exhaustive.rb:558]:
    <2> expected but was
    <1>.

  5. Failure:
    test_utime(TestFileExhaustive)
    [c:/dev/downloads/ruby_trunk/test/ruby/test_file_exhaustive.rb:338]:
    <2000-01-01 00:00:01 -0700> expected but was
    <1999-12-31 23:00:01 -0700>.

Not so sure about that last one.
Thanks!
-=r
=end

Actions #1

Updated by yugui (Yuki Sonoda) over 15 years ago

  • Assignee set to nobu (Nobuyoshi Nakada)

=begin

=end

Actions #2

Updated by usa (Usaku NAKAMURA) over 14 years ago

  • Category set to core
  • Status changed from Open to Assigned
  • Target version set to 1.9.2
  • ruby -v changed from TRUNK mingw to ruby 1.9.3dev (2010-05-12 trunk 27746) [i386-mswin32]

=begin
19) - 21) is already fixed (or changed the test)
cannot reproduce 22). maybe fixed.

  1. is the problem of paragraph mode of IO#gets.
    if the newline code is not equals as 0x0A, paragraph mode doesn't run well.
    I think to change the function swallow() in io.c.
    =end
Actions #3

Updated by rogerdpack (Roger Pack) over 14 years ago

=begin
yeah the only TestFile failures I currently get is:

  1. Failure:test_gets_para_extended_file(TestFile) [C:/dev/ruby/downloads/ruby_trunk_no_patches/test/ruby/test_file.rb:94]:mode = <>.<"a"> expected but was<"\na">.

(from http://gist.github.com/396251)

Thanks for looking into that!
-rp
=end

Actions #4

Updated by usa (Usaku NAKAMURA) over 14 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r27769.
Roger, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0