[haiku-bugs] Re: [Haiku] #6755: Python's test_os.py fails self.assertEquals(st2.st_mtime, int(st.st_mtime-delta))

  • From: "anevilyak" <trac@xxxxxxxxxxxx>
  • Date: Sat, 25 Jun 2011 02:55:59 -0000

#6755: Python's test_os.py fails self.assertEquals(st2.st_mtime, 
int(st.st_mtime-
delta))
-----------------------+----------------------------
   Reporter:  scottmc  |      Owner:  nobody
       Type:  bug      |     Status:  new
   Priority:  normal   |  Milestone:  R1
  Component:  System   |    Version:  R1/Development
 Resolution:           |   Keywords:
 Blocked By:           |   Blocking:
Has a Patch:  0        |   Platform:  All
-----------------------+----------------------------

Comment (by anevilyak):

 The mtime test fails for a simple reason: BFS intentionally salts the
 tv_nsec field in order to generate a more unique distribution for its
 last_modified index. Consequently, the nsec field passed in will more or
 less never match the one that ultimately winds up being written to disk.
 c.f. browser:haiku/trunk/src/add-ons/kernel/file_systems/bfs/bfs.h#L237

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6755#comment:5>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: