http://bugs.winehq.org/show_bug.cgi?id=16969
Summary: utime/stat not accurate enough (truncation to integer occurring?) Product: Wine Version: unspecified Platform: Other OS/Version: other Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: lkcl@lkcl.net
this is again from the python regression tests, test_os.py. the result is that os.stat.st_mtime returns 1159195039.00
if get_file_system(test_support.TESTFN) == "NTFS": def test_1565150(self): t1 = 1159195039.25 os.utime(self.fname, (t1, t1)) self.assertEquals(os.stat(self.fname).st_mtime, t1)
http://bugs.winehq.org/show_bug.cgi?id=16969
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source, testcase
http://bugs.winehq.org/show_bug.cgi?id=16969
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dank@kegel.com Status|UNCONFIRMED |RESOLVED Resolution| |INVALID
--- Comment #1 from Dan Kegel dank@kegel.com 2009-01-19 11:19:40 --- That's a limitation of ext3. ext4 will have microsecond timestamps.
The program
import os t1 = 1159195039.25 os.utime("foo.dat", (t1, t1)) print os.stat("foo.dat").st_mtime print t1
prints out two different values even in linux's python because of this.
http://bugs.winehq.org/show_bug.cgi?id=16969
Luke Kenneth Casson Leighton lkcl@lkcl.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|INVALID |
--- Comment #2 from Luke Kenneth Casson Leighton lkcl@lkcl.net 2009-01-19 12:23:31 --- sorry, i should have said: the test is only done when the filesystem is detected as NTFS.
... you're lying about the filesystem type, therefore ... it fails!
:)
http://bugs.winehq.org/show_bug.cgi?id=16969
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |WONTFIX
--- Comment #3 from Dan Kegel dank@kegel.com 2009-01-19 12:24:49 --- True! So, marking as WONTFIX rather than INVALID.
To work around this, run the test on an ext4 filesystem.
http://bugs.winehq.org/show_bug.cgi?id=16969
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Dmitry Timoshkov dmitry@codeweavers.com 2009-01-20 11:20:46 --- Closing.