Author: donaldp
Date: Thu Oct 4 08:14:45 2012
New Revision: 1393949
URL: http://svn.apache.org/viewvc?rev=1393949&view=rev
Log:
Change the utime of generated files to further in the past so that the test
passes more reliably across a larger set of file systems
Modified:
buildr/trunk/spec/core/compile_spec.rb
Modified: buildr/trunk/spec/core/compile_spec.rb
URL:
http://svn.apache.org/viewvc/buildr/trunk/spec/core/compile_spec.rb?rev=1393949&r1=1393948&r2=1393949&view=diff
==============================================================================
--- buildr/trunk/spec/core/compile_spec.rb (original)
+++ buildr/trunk/spec/core/compile_spec.rb Thu Oct 4 08:14:45 2012
@@ -586,7 +586,7 @@ describe Project, '#resources' do
it 'should copy new resources to target directory' do
time = Time.now
mkdir_p 'target/resources'
- File.utime(time-1, time-1, 'target/resources')
+ File.utime(time-10, time-10, 'target/resources')
write 'src/main/resources/foo', 'Foo'
@@ -599,8 +599,8 @@ describe Project, '#resources' do
time = Time.now
mkdir_p 'target/resources'
write 'target/resources/foo', 'Foo'
- File.utime(time-1, time-1, 'target/resources')
- File.utime(time-1, time-1, 'target/resources/foo')
+ File.utime(time-10, time-10, 'target/resources')
+ File.utime(time-10, time-10, 'target/resources/foo')
write 'src/main/resources/foo', 'Foo2'
define('foo')