mirror of https://github.com/sbt/sbt.git
Mark test that passes when name hashing is enabled.
There's one test that starts to pass when we enable name hashing. It's `import-class` which tests whether tracking of dependencies that arise from imports is properly tracked. The name hashing algorithm uses different dependency tracking compared to the old algorithm and the new dependency extraction logic does handle import tree nodes properly so the test passes. We "mark" the test passing by copying it and enabling the name hashing flag in it. This is done similarly as in 940f7ff46d.
This commit is contained in:
parent
cd6b2a2a8c
commit
6cf79aba08
|
|
@ -0,0 +1,3 @@
|
|||
package a
|
||||
|
||||
class A
|
||||
|
|
@ -0,0 +1 @@
|
|||
import a.A
|
||||
|
|
@ -0,0 +1 @@
|
|||
incOptions := incOptions.value.withNameHashing(true)
|
||||
|
|
@ -0,0 +1 @@
|
|||
package a
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
> compile
|
||||
|
||||
# remove class a.A
|
||||
$ copy-file changes/A.scala A.scala
|
||||
|
||||
# 'import a.A' should now fail in B.scala
|
||||
# succeeds because scalac doesn't track this dependency
|
||||
-> compile
|
||||
Loading…
Reference in New Issue