8130826: test writes file in test source directory
authorjlahoda
Tue, 28 Jul 2015 17:01:45 +0200
changeset 31938 12e1a8e258e0
parent 31937 ad43a6639c4a
child 31939 89d4a8756f98
8130826: test writes file in test source directory Summary: Setting an explicit output directory for ToolBox.JavacTask in PlatformProviderTest. Reviewed-by: jjg
langtools/test/tools/javac/platform/PlatformProviderTest.java
--- a/langtools/test/tools/javac/platform/PlatformProviderTest.java	Fri Jul 24 15:36:45 2015 -0700
+++ b/langtools/test/tools/javac/platform/PlatformProviderTest.java	Tue Jul 28 17:01:45 2015 +0200
@@ -88,6 +88,7 @@
         ToolBox tb = new ToolBox();
         ToolBox.Result result =
                 tb.new JavacTask(ToolBox.Mode.EXEC)
+                  .outdir(".")
                   .options("-J-classpath",
                            "-J" + System.getProperty("test.classes"),
                            "-XDrawDiagnostics",
@@ -121,6 +122,7 @@
         ToolBox tb = new ToolBox();
         ToolBox.Result result =
                 tb.new JavacTask(ToolBox.Mode.EXEC)
+                  .outdir(".")
                   .options("-J-classpath",
                            "-J" + System.getProperty("test.classes"),
                            "-release",