summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-05-15 07:29:13 -0700
committerJason Zaugg <jzaugg@gmail.com>2013-05-15 07:29:13 -0700
commitc587bdf0db0dc88c8e6cc6db109a7fd4a368e8f1 (patch)
tree6f98af15d439be1f8383b75a851e26574bee92a5 /test/files
parent6a3efe3b3e83c37182268f0e0bab9acc69653115 (diff)
parentb0758f5cb9d966b940933d48bdbb45d17a80de66 (diff)
downloadscala-c587bdf0db0dc88c8e6cc6db109a7fd4a368e8f1.tar.gz
scala-c587bdf0db0dc88c8e6cc6db109a7fd4a368e8f1.tar.bz2
scala-c587bdf0db0dc88c8e6cc6db109a7fd4a368e8f1.zip
Merge pull request #2503 from paulp/issue/6039
SI-6039 Harden against irrelevant filesystem details
Diffstat (limited to 'test/files')
-rw-r--r--test/files/run/t6039.scala18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/files/run/t6039.scala b/test/files/run/t6039.scala
new file mode 100644
index 0000000000..9d811b0634
--- /dev/null
+++ b/test/files/run/t6039.scala
@@ -0,0 +1,18 @@
+import scala.tools.partest._
+
+object Test extends StoreReporterDirectTest {
+ private def compileCode(): Boolean = {
+ new java.io.File("util") mkdirs
+ val classpath = List(sys.props("partest.lib"), ".") mkString sys.props("path.separator")
+ log(s"classpath = $classpath")
+ compileString(newCompiler("-cp", classpath, "-d", testOutput.path))(packageCode)
+ }
+ def code = ???
+ def packageCode = """
+package scala.bippy
+class A { new util.Random() }
+"""
+ def show(): Unit = {
+ assert(compileCode(), filteredInfos take 1 mkString "")
+ }
+}