author | lana |
Thu, 23 Feb 2017 17:30:12 +0000 | |
changeset 44011 | 5eea3031ae7b |
parent 40631 | ed82623d7831 |
permissions | -rw-r--r-- |
34214
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
1 |
/* |
40631
ed82623d7831
8157957: ClassNotFoundException: jdk.test.lib.JDKToolFinder
ctornqvi
parents:
40059
diff
changeset
|
2 |
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. |
34214
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
4 |
* |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
8 |
* |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
13 |
* accompanied this code). |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
14 |
* |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
18 |
* |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
21 |
* questions. |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
22 |
*/ |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
23 |
|
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
24 |
/* |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
25 |
* @test |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
26 |
* @bug 8137167 |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
27 |
* @summary Tests directive json parser |
38152
80e5da81fb2c
8154258: [TESTBUG] Various serviceability tests fail compilation
dsamersoff
parents:
34214
diff
changeset
|
28 |
* @modules java.base/jdk.internal.misc |
40631
ed82623d7831
8157957: ClassNotFoundException: jdk.test.lib.JDKToolFinder
ctornqvi
parents:
40059
diff
changeset
|
29 |
* @library /test/lib / |
40059 | 30 |
* |
34214
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
31 |
* @run driver compiler.compilercontrol.parser.DirectiveParserTest |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
32 |
*/ |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
33 |
|
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
34 |
package compiler.compilercontrol.parser; |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
35 |
|
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
36 |
import compiler.compilercontrol.share.JSONFile; |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
37 |
import jdk.test.lib.Asserts; |
40631
ed82623d7831
8157957: ClassNotFoundException: jdk.test.lib.JDKToolFinder
ctornqvi
parents:
40059
diff
changeset
|
38 |
import jdk.test.lib.process.OutputAnalyzer; |
34214
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
39 |
import jdk.test.lib.Utils; |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
40 |
|
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
41 |
public class DirectiveParserTest { |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
42 |
private static final String ERROR_MSG = "VM should exit with error " |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
43 |
+ "on incorrect JSON file: "; |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
44 |
private static final String EXPECTED_ERROR_STRING = "Parsing of compiler" |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
45 |
+ " directives failed"; |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
46 |
|
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
47 |
public static void main(String[] args) { |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
48 |
simpleTest(); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
49 |
nonMatchingBrackets(); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
50 |
arrayTest(); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
51 |
emptyObjectTest(); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
52 |
emptyFile(); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
53 |
noFile(); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
54 |
directory(); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
55 |
} |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
56 |
|
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
57 |
private static void simpleTest() { |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
58 |
String fileName = "simple.json"; |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
59 |
try (JSONFile file = new JSONFile(fileName)) { |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
60 |
file.write(JSONFile.Element.ARRAY) |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
61 |
.write(JSONFile.Element.OBJECT) |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
62 |
.write(JSONFile.Element.PAIR, "match") |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
63 |
.write(JSONFile.Element.VALUE, "\"java/lang/String.*\"") |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
64 |
.write(JSONFile.Element.PAIR, "c2") |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
65 |
.write(JSONFile.Element.OBJECT) |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
66 |
.write(JSONFile.Element.PAIR, "inline") |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
67 |
.write(JSONFile.Element.ARRAY) |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
68 |
.write(JSONFile.Element.VALUE, "\"+*.indexOf\"") |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
69 |
.write(JSONFile.Element.VALUE, "\"-a.b\"") |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
70 |
.end() |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
71 |
.end() |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
72 |
.end() // end object |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
73 |
.write(JSONFile.Element.OBJECT) |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
74 |
.write(JSONFile.Element.PAIR, "match") |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
75 |
.write(JSONFile.Element.VALUE, "\"*.indexOf\"") |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
76 |
.write(JSONFile.Element.PAIR, "c1") |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
77 |
.write(JSONFile.Element.OBJECT) |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
78 |
.write(JSONFile.Element.PAIR, "enable") |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
79 |
.write(JSONFile.Element.VALUE, "false") |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
80 |
.end() |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
81 |
.end(); // end object |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
82 |
file.end(); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
83 |
} |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
84 |
OutputAnalyzer output = HugeDirectiveUtil.execute(fileName); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
85 |
output.shouldHaveExitValue(0); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
86 |
output.shouldNotContain(EXPECTED_ERROR_STRING); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
87 |
} |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
88 |
|
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
89 |
private static void nonMatchingBrackets() { |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
90 |
String fileName = "non-matching.json"; |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
91 |
try (JSONFile file = new JSONFile(fileName)) { |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
92 |
file.write(JSONFile.Element.ARRAY) |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
93 |
.write(JSONFile.Element.OBJECT) |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
94 |
.write(JSONFile.Element.PAIR, "match") |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
95 |
.write(JSONFile.Element.VALUE, "\"java/lang/String.*\"") |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
96 |
.end(); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
97 |
// don't write matching } |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
98 |
} |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
99 |
OutputAnalyzer output = HugeDirectiveUtil.execute(fileName); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
100 |
Asserts.assertNE(output.getExitValue(), 0, ERROR_MSG + "non matching " |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
101 |
+ "brackets"); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
102 |
output.shouldContain(EXPECTED_ERROR_STRING); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
103 |
} |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
104 |
|
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
105 |
private static void arrayTest() { |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
106 |
String fileName = "array.json"; |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
107 |
try (JSONFile file = new JSONFile(fileName)) { |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
108 |
file.write(JSONFile.Element.ARRAY); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
109 |
file.end(); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
110 |
} |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
111 |
OutputAnalyzer output = HugeDirectiveUtil.execute(fileName); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
112 |
Asserts.assertNE(output.getExitValue(), 0, ERROR_MSG + "empty array"); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
113 |
} |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
114 |
|
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
115 |
private static void emptyObjectTest() { |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
116 |
String fileName = "emptyObject.json"; |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
117 |
try (JSONFile file = new JSONFile(fileName)) { |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
118 |
file.write(JSONFile.Element.OBJECT); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
119 |
file.end(); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
120 |
} |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
121 |
OutputAnalyzer output = HugeDirectiveUtil.execute(fileName); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
122 |
Asserts.assertNE(output.getExitValue(), 0, ERROR_MSG + "empty object " |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
123 |
+ "without any match"); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
124 |
output.shouldContain(EXPECTED_ERROR_STRING); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
125 |
} |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
126 |
|
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
127 |
private static void emptyFile() { |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
128 |
String fileName = "empty.json"; |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
129 |
try (JSONFile file = new JSONFile(fileName)) { |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
130 |
// empty |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
131 |
} |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
132 |
OutputAnalyzer output = HugeDirectiveUtil.execute(fileName); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
133 |
Asserts.assertNE(output.getExitValue(), 0, ERROR_MSG + "empty file"); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
134 |
output.shouldContain(EXPECTED_ERROR_STRING); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
135 |
} |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
136 |
|
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
137 |
private static void noFile() { |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
138 |
OutputAnalyzer output = HugeDirectiveUtil.execute("nonexistent.json"); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
139 |
Asserts.assertNE(output.getExitValue(), 0, ERROR_MSG + "non existing " |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
140 |
+ "file"); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
141 |
} |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
142 |
|
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
143 |
private static void directory() { |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
144 |
OutputAnalyzer output = HugeDirectiveUtil.execute(Utils.TEST_SRC); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
145 |
Asserts.assertNE(output.getExitValue(), 0, ERROR_MSG + "directory as " |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
146 |
+ "a name"); |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
147 |
} |
41286f248795
8066154: JEP-JDK-8046155: Test task: huge directive file
ppunegov
parents:
diff
changeset
|
148 |
} |