mirror of https://github.com/sbt/sbt.git
Adding sleep in scripted test to make sure timestamp bumps [fport]
Fixes #2546. Ref #958 scripted compiler-project/error-in-invalidated has been failing frequently on Travis CI. It seems like incremental compiler is not catching the change in source occasionally for `changes/A2.scala`. Forward-port of #2565
This commit is contained in:
parent
d9cc0c2f0b
commit
104c5f53b3
|
|
@ -1 +1,5 @@
|
|||
incOptions := xsbti.compile.IncOptionsUtil.defaultIncOptions
|
||||
lazy val root = (project in file(".")).
|
||||
settings(
|
||||
incOptions := xsbti.compile.IncOptionsUtil.defaultIncOptions,
|
||||
scalaVersion := "2.11.7"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,13 @@
|
|||
> compile
|
||||
|
||||
# comment out `initialized` method in A
|
||||
$ copy-file changes/A1.scala src/main/scala/A.scala
|
||||
$ sleep 1000
|
||||
# compilation of A.scala succeeds but B.scala gets invalidated (properly) and B.scala fails to compile
|
||||
-> compile
|
||||
|
||||
# we change A.scala to its original shape so compilation should succeed again
|
||||
$ copy-file changes/A2.scala src/main/scala/A.scala
|
||||
$ sleep 1000
|
||||
# this fails at the moment due to use of stale class file for A, see #958 for details
|
||||
> compile
|
||||
|
|
|
|||
Loading…
Reference in New Issue