test/langtools/jdk/javadoc/doclet/testLinkOption/TestBadLinkOption.java
changeset 47877 7e57d42b5eeb
parent 47216 71c04702a3d5
child 53097 2e82ca64b25d
equal deleted inserted replaced
47876:5d4864563be7 47877:7e57d42b5eeb
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 4625883
    26  * @bug 4625883 8180019
    27  * @summary Make sure that bad -link arguments trigger warnings.
    27  * @summary Make sure that bad -link arguments trigger errors.
    28  * @author jamieh
    28  * @author jamieh
    29  * @library ../lib
    29  * @library ../lib
    30  * @modules jdk.javadoc/jdk.javadoc.internal.tool
    30  * @modules jdk.javadoc/jdk.javadoc.internal.tool
    31  * @build JavadocTester
    31  * @build JavadocTester
    32  * @run main TestBadLinkOption
    32  * @run main TestBadLinkOption
    42     @Test
    42     @Test
    43     void test() {
    43     void test() {
    44         String out = "out";
    44         String out = "out";
    45         javadoc("-d", out,
    45         javadoc("-d", out,
    46                 "-sourcepath", testSrc,
    46                 "-sourcepath", testSrc,
    47                 "-link", out,
    47                 "-link", "a-non-existent-link",
    48                 "pkg");
    48                 "pkg");
    49         checkExit(Exit.OK);
    49         checkExit(Exit.ERROR);
    50 
    50 
    51         // TODO: the file it is trying to read, out/out/package-list, warrants investigation
       
    52         checkOutput(Output.OUT, true,
    51         checkOutput(Output.OUT, true,
    53                 "Error reading file:");
    52                 "Error reading file:");
    54     }
    53     }
    55 }
    54 }