Dumb ol'Win98. It's probably best then to check the os.name and/or os.version system properties to disable the assertion in the testcase. I guess the touch() method should work under Win98, right?
On 15.07.2004 21:37:53 Stephen Colebourne wrote: > I'm using Win98. It could be that. Basically calling the method seems to set > the last modified time to now. > > ----- Original Message ----- > From: "Jeremias Maerki" <[EMAIL PROTECTED]> > > Just installed JDK 1.4.1_07 on my WinXP box. I can't reproduce your > > problem. > > > > On 15.07.2004 10:13:02 Stephen Colebourne wrote: > > > I just ran the IO tests on JDK1.4.1 on Windows, and the > FileUtils.touch() > > > test failed. > > > > > > There was 1 failure: > > > 1) > > > > testTouch(org.apache.commons.io.FileUtilsTestCase)junit.framework.AssertionF > > > ailedError: Set lastModified to 0. expected:<0> but was:<1089878988000> > > > at > > > > org.apache.commons.io.FileUtilsTestCase.testTouch(FileUtilsTestCase.java:464 > > > ) > > > > > > This uses file.setLastModified(long) > > > Has anyone else seen issues with file.setLastModified(long) on Windows > ???? Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
