Skip to content

Test CompilationTests.testPlugins fails at cleanup phase #5171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
melekhove opened this issue Sep 27, 2018 · 0 comments
Closed

Test CompilationTests.testPlugins fails at cleanup phase #5171

melekhove opened this issue Sep 27, 2018 · 0 comments

Comments

@melekhove
Copy link
Contributor

Steps to reproduce:

[info] Test dotty.tools.dotc.CompilationTests.testPlugins started
[=======================================] completed (2/2, 0 failed, 3s)
[error] Test dotty.tools.dotc.CompilationTests.testPlugins failed: java.nio.file.FileSystemException: out\testPlugins\ne
g\divideZero-research\plugin.properties: The process cannot access the file because it is being used by another process.

[error] , took 3.494 sec
[error]     at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
[error]     at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
[error]     at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
[error]     at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269)

================================================================================
Test Report
================================================================================

1 suites passed, 0 failed, 1 total

[error]     at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
[error]     at java.nio.file.Files.delete(Files.java:1126)
[error]     at dotty.tools.vulpix.ParallelTesting$CompilationTest.delete(ParallelTesting.scala:1109)
[error]     at dotty.tools.vulpix.ParallelTesting$CompilationTest.$anonfun$delete$2(ParallelTesting.scala:1108)
[error]     at dotty.tools.vulpix.ParallelTesting$CompilationTest.$anonfun$delete$2$adapted(ParallelTesting.scala:1108)
[error]     at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:32)
[error]     at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:29)
[error]     at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:194)
[error]     at dotty.tools.vulpix.ParallelTesting$CompilationTest.delete(ParallelTesting.scala:1108)
[error]     at dotty.tools.vulpix.ParallelTesting$CompilationTest.$anonfun$delete$1(ParallelTesting.scala:1105)
[error]     at dotty.tools.vulpix.ParallelTesting$CompilationTest.$anonfun$delete$1$adapted(ParallelTesting.scala:1105)
[error]     at scala.collection.immutable.List.foreach(List.scala:389)
[error]     at dotty.tools.vulpix.ParallelTesting$CompilationTest.delete(ParallelTesting.scala:1105)
[error]     at dotty.tools.vulpix.ParallelTesting$CompilationTest.cleanup(ParallelTesting.scala:1019)
[error]     at dotty.tools.vulpix.ParallelTesting$CompilationTest.checkExpectedErrors(ParallelTesting.scala:985)
[error]     at dotty.tools.dotc.CompilationTests.testPlugins(CompilationTests.scala:295)
[error]     ...
[info] Test run finished: 1 failed, 0 ignored, 1 total, 3.985s
[error] Failed: Total 1, Failed 1, Errors 0, Passed 0
[error] Failed tests:
[error]         dotty.tools.dotc.CompilationTests
[info] Passed: Total 0, Failed 0, Errors 0, Passed 0
[info] No tests to run for dotty-doc / Test / testOnly
[error] (dotty-compiler / Test / testOnly) sbt.TestsFailedException: Tests unsuccessful
[error] Total time: 13 s, completed 27.09.2018 9:12:19
@melekhove melekhove changed the title Test .CompilationTests.testPlugins fails at cleanup phase Test CompilationTests.testPlugins fails at cleanup phase Sep 27, 2018
liufengyun added a commit that referenced this issue Oct 1, 2018
Fix #5171: Close input stream after reading its content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant