8203398: Test test/langtools/tools/javac/options/release/ReleaseOptionCurrent.java writes into the source directory
Reviewed-by: jjg, jlahoda
--- a/test/langtools/tools/javac/options/release/ReleaseOptionCurrent.java Fri May 18 13:23:28 2018 +0300
+++ b/test/langtools/tools/javac/options/release/ReleaseOptionCurrent.java Fri May 18 12:48:09 2018 +0200
@@ -49,7 +49,7 @@
try (StandardJavaFileManager fm = compiler.getStandardFileManager(null, null, null)) {
Iterable<? extends JavaFileObject> input =
fm.getJavaFileObjects(System.getProperty("test.src") + "/ReleaseOption.java");
- List<String> options = Arrays.asList("--release", Source.DEFAULT.name);
+ List<String> options = Arrays.asList("-d", ".", "--release", Source.DEFAULT.name);
boolean result = compiler.getTask(null, fm, null, options, null, input).call();
if (!result) {