Project

General

Profile

Bug #12903

TestFile#test_stat fails on FreeBSD 11.0

Added by shugo (Shugo Maeda) almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:77943]

Description

TestFile#test_stat fails on FreeBSD 11.0 as follows:

    CC = cc
    LD = ld
    LDSHARED = cc -shared
    CFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Werror=implicit-int -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -Werror=division-by-zero -Werror=deprecated-declarations -Werror=extra-tokens -std=gnu99 
    XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT -fPIE
    CPPFLAGS = -I/usr/local/include   -I. -I.ext/include/x86_64-freebsd11.0 -I./include -I. -I./enc/unicode/9.0.0
    DLDFLAGS = -Wl,-soname,showflags -L/usr/local/lib  -Wl,-R/usr/local/lib -fstack-protector -pie  
    SOLIBS = -lgmp
FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0)
Target: x86_64-unknown-freebsd11.0
Thread model: posix
InstalledDir: /usr/bin
Run options: "--ruby=./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems" --excludes-dir=./test/excludes --name=!/memory_leak/

# Running tests:


  1) Failure:
TestFile#test_stat [/usr/home/shugo/src/ruby/test/ruby/test_file.rb:374]:
Expected |1478303575.3417945 - 1478303569.34175| (6.000044584274292) to be <= 1.

Finished tests in 6.200889s, 6.7732 tests/s, 67.4097 assertions/s.
42 tests, 418 assertions, 1 failures, 0 errors, 0 skips

ruby -v: ruby 2.4.0dev (2016-11-04 trunk 56558) [x86_64-freebsd11.0]
*** Error code 1

Stop.
make: stopped in /usr/home/shugo/src/ruby

Associated revisions

Revision c71a60c1
Added by nobu (Nobuyoshi Nakada) almost 3 years ago

test_file.rb: fix noatime

  • test/ruby/test_file.rb (TestFile#test_stat): fix noatime case. [ruby-core:77943] [Bug #12903]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 56559
Added by nobu (Nobuyoshi Nakada) almost 3 years ago

test_file.rb: fix noatime

  • test/ruby/test_file.rb (TestFile#test_stat): fix noatime case. [ruby-core:77943] [Bug #12903]

Revision 56559
Added by nobu (Nobuyoshi Nakada) almost 3 years ago

test_file.rb: fix noatime

  • test/ruby/test_file.rb (TestFile#test_stat): fix noatime case. [ruby-core:77943] [Bug #12903]

Revision 56559
Added by nobu (Nobuyoshi Nakada) almost 3 years ago

test_file.rb: fix noatime

  • test/ruby/test_file.rb (TestFile#test_stat): fix noatime case. [ruby-core:77943] [Bug #12903]

Revision 56559
Added by nobu (Nobuyoshi Nakada) almost 3 years ago

test_file.rb: fix noatime

  • test/ruby/test_file.rb (TestFile#test_stat): fix noatime case. [ruby-core:77943] [Bug #12903]

Revision 0a0eb280
Added by naruse (Yui NARUSE) almost 3 years ago

Refix r56559 with Fs.noatime? [ruby-core:77943] [Bug #12903]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 56585
Added by naruse (Yui NARUSE) almost 3 years ago

Refix r56559 with Fs.noatime? [ruby-core:77943] [Bug #12903]

Revision 56585
Added by naruse (Yui NARUSE) almost 3 years ago

Refix r56559 with Fs.noatime? [ruby-core:77943] [Bug #12903]

Revision 56585
Added by naruse (Yui NARUSE) almost 3 years ago

Refix r56559 with Fs.noatime? [ruby-core:77943] [Bug #12903]

Revision 56585
Added by naruse (Yui NARUSE) almost 3 years ago

Refix r56559 with Fs.noatime? [ruby-core:77943] [Bug #12903]

Revision 6b241785
Added by nagachika (Tomoyuki Chikanaga) almost 3 years ago

merge revision(s) 56559,56582,56584,56585: [Backport #12903]

    * test/ruby/test_file.rb (TestFile#test_stat): fix noatime case.
      [ruby-core:77943] [Bug #12903]

    * ext/-test/file/fs.c (get_atime_p): Updating of file access times
      is enabled or not.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@56785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 56785
Added by nagachika (Tomoyuki Chikanaga) almost 3 years ago

merge revision(s) 56559,56582,56584,56585: [Backport #12903]

* test/ruby/test_file.rb (TestFile#test_stat): fix noatime case.
  [ruby-core:77943] [Bug #12903]

* ext/-test/file/fs.c (get_atime_p): Updating of file access times
  is enabled or not.

Revision 3c61aab9
Added by usa (Usaku NAKAMURA) almost 3 years ago

merge revision(s) 56559,56582,56584,56585: [Backport #12903]

    * test/ruby/test_file.rb (TestFile#test_stat): fix noatime case.
      [ruby-core:77943] [Bug #12903]

    * ext/-test/file/fs.c (get_atime_p): Updating of file access times
      is enabled or not.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@56789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 56789
Added by usa (Usaku NAKAMURA) almost 3 years ago

merge revision(s) 56559,56582,56584,56585: [Backport #12903]

* test/ruby/test_file.rb (TestFile#test_stat): fix noatime case.
  [ruby-core:77943] [Bug #12903]

* ext/-test/file/fs.c (get_atime_p): Updating of file access times
  is enabled or not.

History

Updated by nobu (Nobuyoshi Nakada) almost 3 years ago

Do you mount with noatime option?

#2

Updated by nobu (Nobuyoshi Nakada) almost 3 years ago

  • Status changed from Open to Closed

Applied in changeset r56559.


test_file.rb: fix noatime

  • test/ruby/test_file.rb (TestFile#test_stat): fix noatime case. [ruby-core:77943] [Bug #12903]

Updated by shugo (Shugo Maeda) almost 3 years ago

Nobuyoshi Nakada wrote:

Do you mount with noatime option?

I didn't mean to, but yes.

test_file.rb: fix noatime

test/ruby/test_file.rb (TestFile#test_stat): fix noatime case. [Bug #12903]

It might to be better to check the mount option.

Updated by nagachika (Tomoyuki Chikanaga) almost 3 years ago

  • Backport changed from 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.1: UNKNOWN, 2.2: REQUIRED, 2.3: REQUIRED

Updated by nagachika (Tomoyuki Chikanaga) almost 3 years ago

  • Backport changed from 2.1: UNKNOWN, 2.2: REQUIRED, 2.3: REQUIRED to 2.1: UNKNOWN, 2.2: REQUIRED, 2.3: DONE

ruby_2_3 r56785 merged revision(s) 56559,56582,56584,56585.

Updated by usa (Usaku NAKAMURA) almost 3 years ago

  • Backport changed from 2.1: UNKNOWN, 2.2: REQUIRED, 2.3: DONE to 2.1: UNKNOWN, 2.2: DONE, 2.3: DONE

ruby_2_2 r56789 merged revision(s) 56559,56582,56584,56585.

Also available in: Atom PDF