test/com/sun/javadoc/T6735320/T6735320.java

changeset 1558
60caf53b98e2
parent 1052
409b104f8b86
child 2525
2eb010b6cb22
     1.1 --- a/test/com/sun/javadoc/T6735320/T6735320.java	Fri Feb 08 09:21:19 2013 +0000
     1.2 +++ b/test/com/sun/javadoc/T6735320/T6735320.java	Fri Feb 08 17:35:16 2013 -0800
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -47,8 +47,8 @@
    1.11  
    1.12      public static void main(String... args) {
    1.13          T6735320 tester = new T6735320();
    1.14 -        if (tester.runJavadoc(ARGS) != 0) {
    1.15 -            throw new AssertionError("non-zero return code from javadoc");
    1.16 +        if (tester.runJavadoc(ARGS) == 0) {
    1.17 +            throw new AssertionError("zero return code from javadoc");
    1.18          }
    1.19          if (tester.getErrorOutput().contains("StringIndexOutOfBoundsException")) {
    1.20              throw new AssertionError("javadoc threw StringIndexOutOfBoundsException");

mercurial