equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2014, 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. |
61 |
61 |
62 test(null, Arrays.asList(a, b)); |
62 test(null, Arrays.asList(a, b)); |
63 test(null, Arrays.asList(b, a)); |
63 test(null, Arrays.asList(b, a)); |
64 |
64 |
65 for (CompileState stop : CompileState.values()) { |
65 for (CompileState stop : CompileState.values()) { |
66 test(Arrays.asList("--should-stop:ifNoError=" + stop, |
66 test(Arrays.asList("--should-stop=ifNoError=" + stop, |
67 "--should-stop:ifError=" + stop), |
67 "--should-stop=ifError=" + stop), |
68 Arrays.asList(a, b)); |
68 Arrays.asList(a, b)); |
69 test(Arrays.asList("--should-stop:ifNoError=" + stop, |
69 test(Arrays.asList("--should-stop=ifNoError=" + stop, |
70 "--should-stop:ifError=" + stop), |
70 "--should-stop=ifError=" + stop), |
71 Arrays.asList(b, a)); |
71 Arrays.asList(b, a)); |
72 } |
72 } |
73 } |
73 } |
74 |
74 |
75 void test(List<String> options, List<JavaFileObject> files) throws IOException { |
75 void test(List<String> options, List<JavaFileObject> files) throws IOException { |