Author: lacton
Date: Sun Aug 24 13:54:18 2008
New Revision: 688559
URL: http://svn.apache.org/viewvc?rev=688559&view=rev
Log:
Stabilized a test that was failing randomly. The test was not setting the right
timestamp.
Modified:
incubator/buildr/trunk/spec/compile_spec.rb
Modified: incubator/buildr/trunk/spec/compile_spec.rb
URL:
http://svn.apache.org/viewvc/incubator/buildr/trunk/spec/compile_spec.rb?rev=688559&r1=688558&r2=688559&view=diff
==============================================================================
--- incubator/buildr/trunk/spec/compile_spec.rb (original)
+++ incubator/buildr/trunk/spec/compile_spec.rb Sun Aug 24 13:54:18 2008
@@ -331,6 +331,7 @@
time = Time.now
sources.map { |src|
src.pathmap("#{compile_task.target}/thepackage/%n.class") }.
each { |kls| write kls ; File.utime(time - 1, time - 1, kls) }
+ File.utime(time - 1, time - 1, project('foo').compile.target.to_s)
jars.each { |jar| File.utime(time + 1, time + 1, jar) }
lambda { compile_task.from(sources).with(jars).invoke }.should
run_task('foo:compile')
end