equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
350 .run(Task.Expect.FAIL) |
350 .run(Task.Expect.FAIL) |
351 .writeAll() |
351 .writeAll() |
352 .getOutput(Task.OutputKind.DIRECT); |
352 .getOutput(Task.OutputKind.DIRECT); |
353 |
353 |
354 checkOutputContains(log, |
354 checkOutputContains(log, |
355 "javac: no value for --add-reads option"); |
355 "error: no value for --add-reads option"); |
356 } |
356 } |
357 |
357 |
358 @Test |
358 @Test |
359 public void testEmptyItem(Path base) throws Exception { |
359 public void testEmptyItem(Path base) throws Exception { |
360 Path src = base.resolve("src"); |
360 Path src = base.resolve("src"); |
419 .run(Task.Expect.FAIL) |
419 .run(Task.Expect.FAIL) |
420 .writeAll() |
420 .writeAll() |
421 .getOutput(Task.OutputKind.DIRECT); |
421 .getOutput(Task.OutputKind.DIRECT); |
422 |
422 |
423 checkOutputContains(log, |
423 checkOutputContains(log, |
424 "javac: bad value for --add-reads option: '" + option + "'"); |
424 "error: bad value for --add-reads option: '" + option + "'"); |
425 } |
425 } |
426 |
426 |
427 @Test |
427 @Test |
428 public void testMultipleAddReads_DifferentModules(Path base) throws Exception { |
428 public void testMultipleAddReads_DifferentModules(Path base) throws Exception { |
429 Path src = base.resolve("src"); |
429 Path src = base.resolve("src"); |
570 .run(Task.Expect.FAIL) |
570 .run(Task.Expect.FAIL) |
571 .writeAll() |
571 .writeAll() |
572 .getOutput(Task.OutputKind.DIRECT); |
572 .getOutput(Task.OutputKind.DIRECT); |
573 |
573 |
574 checkOutputContains(log, |
574 checkOutputContains(log, |
575 "javac: bad value for --add-reads option: 'm1x:m2x'"); |
575 "error: bad value for --add-reads option: 'm1x:m2x'"); |
576 } |
576 } |
577 |
577 |
578 @Test |
578 @Test |
579 public void testBadSourceName(Path base) throws Exception { |
579 public void testBadSourceName(Path base) throws Exception { |
580 Path src = base.resolve("src"); |
580 Path src = base.resolve("src"); |