author | lana |
Thu, 23 Feb 2017 17:30:12 +0000 (2017-02-23) | |
changeset 44011 | 5eea3031ae7b |
parent 40631 | ed82623d7831 |
permissions | -rw-r--r-- |
27143 | 1 |
/* |
40631
ed82623d7831
8157957: ClassNotFoundException: jdk.test.lib.JDKToolFinder
ctornqvi
parents:
40059
diff
changeset
|
2 |
* Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. |
27143 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
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 |
|
7 |
* published by the Free Software Foundation. |
|
8 |
* |
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
* accompanied this code). |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License version |
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
* |
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
20 |
* or visit www.oracle.com if you need additional information or have any |
|
21 |
* questions. |
|
22 |
*/ |
|
23 |
||
24 |
/* |
|
25 |
* @test CheckCompileCommandOption |
|
40059 | 26 |
* @summary Checks parsing of -XX:CompileCommand=option |
28721
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
27 |
* @bug 8055286 8056964 8059847 8069035 |
40631
ed82623d7831
8157957: ClassNotFoundException: jdk.test.lib.JDKToolFinder
ctornqvi
parents:
40059
diff
changeset
|
28 |
* @library /test/lib |
36851 | 29 |
* @modules java.base/jdk.internal.misc |
29678
dd2f3932c21e
8075586: Add @modules as needed to the open hotspot tests
ykantser
parents:
28721
diff
changeset
|
30 |
* java.management |
40059 | 31 |
* @run driver compiler.oracle.CheckCompileCommandOption |
27143 | 32 |
*/ |
33 |
||
40059 | 34 |
package compiler.oracle; |
35 |
||
40631
ed82623d7831
8157957: ClassNotFoundException: jdk.test.lib.JDKToolFinder
ctornqvi
parents:
40059
diff
changeset
|
36 |
import jdk.test.lib.process.OutputAnalyzer; |
ed82623d7831
8157957: ClassNotFoundException: jdk.test.lib.JDKToolFinder
ctornqvi
parents:
40059
diff
changeset
|
37 |
import jdk.test.lib.process.ProcessTools; |
40059 | 38 |
|
39 |
import java.io.File; |
|
40 |
||
27143 | 41 |
public class CheckCompileCommandOption { |
42 |
||
43 |
// Currently, two types of trailing options can be used with |
|
44 |
// -XX:CompileCommand=option |
|
45 |
// |
|
46 |
// (1) CompileCommand=option,Klass::method,flag |
|
47 |
// (2) CompileCommand=option,Klass::method,type,flag,value |
|
48 |
// |
|
49 |
// Type (1) is used to enable a boolean flag for a method. |
|
50 |
// |
|
51 |
// Type (2) is used to support flags with a value. Values can |
|
52 |
// have the the following types: intx, uintx, bool, ccstr, |
|
53 |
// ccstrlist, and double. |
|
54 |
||
28721
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
55 |
private static final String[][] FILE_ARGUMENTS = { |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
56 |
{ |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
57 |
"-XX:CompileCommandFile=" + new File(System.getProperty("test.src", "."), "command1.txt"), |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
58 |
"-version" |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
59 |
}, |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
60 |
{ |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
61 |
"-XX:CompileCommandFile=" + new File(System.getProperty("test.src", "."), "command2.txt"), |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
62 |
"-version" |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
63 |
} |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
64 |
}; |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
65 |
|
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
66 |
private static final String[][] FILE_EXPECTED_OUTPUT = { |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
67 |
{ |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
68 |
"CompileCommand: option com/oracle/Test.test bool MyBoolOption1 = true", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
69 |
"CompileCommand: option com/oracle/Test.test bool MyBoolOption2 = true", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
70 |
"CompileCommand: option com/oracle/Test.test bool MyBoolOption3 = true", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
71 |
"CompileCommand: option com/oracle/Test.test bool MyBoolOption5 = true", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
72 |
"CompileCommand: option com/oracle/Test.test bool MyBoolOption6 = true", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
73 |
"CompileCommand: option com/oracle/Test.test bool MyBoolOption7 = true", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
74 |
"CompileCommand: option com/oracle/Test.test bool MyBoolOption8 = true", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
75 |
"CompileCommand: option com/oracle/Test.test(I) bool MyBoolOption9 = true", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
76 |
"CompileCommand: option com/oracle/Test.test(I) bool MyBoolOption10 = true", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
77 |
"CompileCommand: option com/oracle/Test.test(I) bool MyBoolOption11 = true", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
78 |
"CompileCommand: option com/oracle/Test.test(I) bool MyBoolOption13 = true", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
79 |
"CompileCommand: option com/oracle/Test.test(I) bool MyBoolOption14 = true", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
80 |
"CompileCommand: option com/oracle/Test.test(I) bool MyBoolOption15 = true", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
81 |
"CompileCommand: option com/oracle/Test.test(I) bool MyBoolOption16 = true" |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
82 |
}, |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
83 |
{ |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
84 |
"CompileCommand: option Test.test const char* MyListOption = '_foo _bar'", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
85 |
"CompileCommand: option Test.test const char* MyStrOption = '_foo'", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
86 |
"CompileCommand: option Test.test bool MyBoolOption = false", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
87 |
"CompileCommand: option Test.test intx MyIntxOption = -1", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
88 |
"CompileCommand: option Test.test uintx MyUintxOption = 1", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
89 |
"CompileCommand: option Test.test bool MyFlag = true", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
90 |
"CompileCommand: option Test.test double MyDoubleOption = 1.123000" |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
91 |
} |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
92 |
}; |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
93 |
|
27143 | 94 |
private static final String[][] TYPE_1_ARGUMENTS = { |
95 |
{ |
|
96 |
"-XX:CompileCommand=option,com/oracle/Test.test,MyBoolOption1", |
|
97 |
"-XX:CompileCommand=option,com/oracle/Test,test,MyBoolOption2", |
|
98 |
"-XX:CompileCommand=option,com.oracle.Test::test,MyBoolOption3", |
|
28721
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
99 |
"-XX:CompileCommand=option,com/oracle/Test.test,MyBoolOption5,MyBoolOption6", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
100 |
"-XX:CompileCommand=option,com/oracle/Test,test,MyBoolOption7,MyBoolOption8", |
27143 | 101 |
"-version" |
102 |
} |
|
103 |
}; |
|
104 |
||
105 |
private static final String[][] TYPE_1_EXPECTED_OUTPUTS = { |
|
106 |
{ |
|
28721
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
107 |
"CompileCommand: option com/oracle/Test.test bool MyBoolOption1 = true", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
108 |
"CompileCommand: option com/oracle/Test.test bool MyBoolOption2 = true", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
109 |
"CompileCommand: option com/oracle/Test.test bool MyBoolOption3 = true", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
110 |
"CompileCommand: option com/oracle/Test.test bool MyBoolOption5 = true", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
111 |
"CompileCommand: option com/oracle/Test.test bool MyBoolOption6 = true", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
112 |
"CompileCommand: option com/oracle/Test.test bool MyBoolOption7 = true", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
113 |
"CompileCommand: option com/oracle/Test.test bool MyBoolOption8 = true" |
27143 | 114 |
} |
115 |
}; |
|
116 |
||
117 |
private static final String[][] TYPE_2_ARGUMENTS = { |
|
118 |
{ |
|
119 |
"-XX:CompileCommand=option,Test::test,ccstrlist,MyListOption,_foo,_bar", |
|
120 |
"-XX:CompileCommand=option,Test::test,ccstr,MyStrOption,_foo", |
|
121 |
"-XX:CompileCommand=option,Test::test,bool,MyBoolOption,false", |
|
122 |
"-XX:CompileCommand=option,Test::test,intx,MyIntxOption,-1", |
|
123 |
"-XX:CompileCommand=option,Test::test,uintx,MyUintxOption,1", |
|
124 |
"-XX:CompileCommand=option,Test::test,MyFlag", |
|
28721
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
125 |
"-XX:CompileCommand=option,Test::test,double,MyDoubleOption1,1.123", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
126 |
"-XX:CompileCommand=option,Test.test,double,MyDoubleOption2,1.123", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
127 |
"-XX:CompileCommand=option,Test::test,bool,MyBoolOptionX,false,intx,MyIntxOptionX,-1,uintx,MyUintxOptionX,1,MyFlagX,double,MyDoubleOptionX,1.123", |
27143 | 128 |
"-version" |
129 |
} |
|
130 |
}; |
|
131 |
||
132 |
private static final String[][] TYPE_2_EXPECTED_OUTPUTS = { |
|
133 |
{ |
|
28721
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
134 |
"CompileCommand: option Test.test const char* MyListOption = '_foo _bar'", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
135 |
"CompileCommand: option Test.test const char* MyStrOption = '_foo'", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
136 |
"CompileCommand: option Test.test bool MyBoolOption = false", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
137 |
"CompileCommand: option Test.test intx MyIntxOption = -1", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
138 |
"CompileCommand: option Test.test uintx MyUintxOption = 1", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
139 |
"CompileCommand: option Test.test bool MyFlag = true", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
140 |
"CompileCommand: option Test.test double MyDoubleOption1 = 1.123000", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
141 |
"CompileCommand: option Test.test double MyDoubleOption2 = 1.123000", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
142 |
"CompileCommand: option Test.test bool MyBoolOptionX = false", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
143 |
"CompileCommand: option Test.test intx MyIntxOptionX = -1", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
144 |
"CompileCommand: option Test.test uintx MyUintxOptionX = 1", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
145 |
"CompileCommand: option Test.test bool MyFlagX = true", |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
146 |
"CompileCommand: option Test.test double MyDoubleOptionX = 1.123000", |
27143 | 147 |
} |
148 |
}; |
|
149 |
||
150 |
private static final String[][] TYPE_2_INVALID_ARGUMENTS = { |
|
151 |
{ |
|
152 |
// bool flag name missing |
|
153 |
"-XX:CompileCommand=option,Test::test,bool", |
|
154 |
"-version" |
|
155 |
}, |
|
156 |
{ |
|
157 |
// bool flag value missing |
|
158 |
"-XX:CompileCommand=option,Test::test,bool,MyBoolOption", |
|
159 |
"-version" |
|
160 |
}, |
|
161 |
{ |
|
162 |
// wrong value for bool flag |
|
163 |
"-XX:CompileCommand=option,Test::test,bool,MyBoolOption,100", |
|
164 |
"-version" |
|
165 |
}, |
|
166 |
{ |
|
167 |
// intx flag name missing |
|
168 |
"-XX:CompileCommand=option,Test::test,bool,MyBoolOption,false,intx", |
|
169 |
"-version" |
|
170 |
}, |
|
171 |
{ |
|
172 |
// intx flag value missing |
|
173 |
"-XX:CompileCommand=option,Test::test,bool,MyBoolOption,false,intx,MyIntOption", |
|
174 |
"-version" |
|
175 |
}, |
|
176 |
{ |
|
177 |
// wrong value for intx flag |
|
178 |
"-XX:CompileCommand=option,Test::test,bool,MyBoolOption,false,intx,MyIntOption,true", |
|
179 |
"-version" |
|
180 |
}, |
|
181 |
{ |
|
182 |
// wrong value for flag double flag |
|
183 |
"-XX:CompileCommand=option,Test::test,double,MyDoubleOption,1", |
|
184 |
"-version" |
|
185 |
} |
|
186 |
}; |
|
187 |
||
188 |
private static void verifyValidOption(String[] arguments, String[] expected_outputs) throws Exception { |
|
189 |
ProcessBuilder pb; |
|
190 |
OutputAnalyzer out; |
|
191 |
||
192 |
pb = ProcessTools.createJavaProcessBuilder(arguments); |
|
193 |
out = new OutputAnalyzer(pb.start()); |
|
194 |
||
195 |
for (String expected_output : expected_outputs) { |
|
196 |
out.shouldContain(expected_output); |
|
197 |
} |
|
198 |
||
33069
d8eed614f298
8135068: Extract method matchers from CompilerOracle
neliasso
parents:
30604
diff
changeset
|
199 |
out.shouldNotContain("CompileCommand: An error occurred during parsing"); |
27143 | 200 |
out.shouldHaveExitValue(0); |
201 |
} |
|
202 |
||
203 |
private static void verifyInvalidOption(String[] arguments) throws Exception { |
|
204 |
ProcessBuilder pb; |
|
205 |
OutputAnalyzer out; |
|
206 |
||
207 |
pb = ProcessTools.createJavaProcessBuilder(arguments); |
|
208 |
out = new OutputAnalyzer(pb.start()); |
|
209 |
||
33069
d8eed614f298
8135068: Extract method matchers from CompilerOracle
neliasso
parents:
30604
diff
changeset
|
210 |
out.shouldContain("CompileCommand: An error occurred during parsing"); |
27143 | 211 |
out.shouldHaveExitValue(0); |
212 |
} |
|
213 |
||
214 |
public static void main(String[] args) throws Exception { |
|
215 |
||
216 |
if (TYPE_1_ARGUMENTS.length != TYPE_1_EXPECTED_OUTPUTS.length) { |
|
217 |
throw new RuntimeException("Test is set up incorrectly: length of arguments and expected outputs for type (1) options does not match."); |
|
218 |
} |
|
219 |
||
220 |
if (TYPE_2_ARGUMENTS.length != TYPE_2_EXPECTED_OUTPUTS.length) { |
|
221 |
throw new RuntimeException("Test is set up incorrectly: length of arguments and expected outputs for type (2) options does not match."); |
|
222 |
} |
|
223 |
||
224 |
// Check if type (1) options are parsed correctly |
|
225 |
for (int i = 0; i < TYPE_1_ARGUMENTS.length; i++) { |
|
226 |
verifyValidOption(TYPE_1_ARGUMENTS[i], TYPE_1_EXPECTED_OUTPUTS[i]); |
|
227 |
} |
|
228 |
||
229 |
// Check if type (2) options are parsed correctly |
|
230 |
for (int i = 0; i < TYPE_2_ARGUMENTS.length; i++) { |
|
231 |
verifyValidOption(TYPE_2_ARGUMENTS[i], TYPE_2_EXPECTED_OUTPUTS[i]); |
|
232 |
} |
|
233 |
||
234 |
// Check if error is reported for invalid type (2) options |
|
235 |
// (flags with type information specified) |
|
236 |
for (String[] arguments: TYPE_2_INVALID_ARGUMENTS) { |
|
237 |
verifyInvalidOption(arguments); |
|
238 |
} |
|
28721
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
239 |
|
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
240 |
// Check if commands in command file are parsed correctly |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
241 |
for (int i = 0; i < FILE_ARGUMENTS.length; i++) { |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
242 |
verifyValidOption(FILE_ARGUMENTS[i], FILE_EXPECTED_OUTPUT[i]); |
b9655115bf4e
8069035: compiler/oracle/CheckCompileCommandOption.java nightly failure
neliasso
parents:
28496
diff
changeset
|
243 |
} |
27143 | 244 |
} |
245 |
} |