test/langtools/tools/javac/modules/ProvidesTest.java
changeset 48721 ef3557eb4306
parent 47216 71c04702a3d5
equal deleted inserted replaced
48720:290b480df13e 48721:ef3557eb4306
     1 /*
     1 /*
     2  * Copyright (c) 2015, 2017, 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.
   101                 .files(findJavaFiles(src))
   101                 .files(findJavaFiles(src))
   102                 .run(Task.Expect.FAIL)
   102                 .run(Task.Expect.FAIL)
   103                 .writeAll()
   103                 .writeAll()
   104                 .getOutput(Task.OutputKind.DIRECT);
   104                 .getOutput(Task.OutputKind.DIRECT);
   105 
   105 
   106         if (!log.contains("module-info.java:1:24: compiler.err.expected: 'with'"))
   106         if (!log.contains("module-info.java:1:24: compiler.err.expected.str: 'with'"))
   107             throw new Exception("expected output not found");
   107             throw new Exception("expected output not found");
   108 
   108 
   109     }
   109     }
   110 
   110 
   111     @Test
   111     @Test