author | jgeorge |
Thu, 16 Nov 2017 11:58:20 +0530 | |
changeset 47900 | 75d365bfc2e6 |
child 49628 | 88478047bc8f |
permissions | -rw-r--r-- |
47900
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
1 |
/* |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
2 |
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
4 |
* |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
8 |
* |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
13 |
* accompanied this code). |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
14 |
* |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
18 |
* |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
21 |
* questions. |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
22 |
*/ |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
23 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
24 |
import java.util.ArrayList; |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
25 |
import java.util.List; |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
26 |
import java.io.IOException; |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
27 |
import java.util.stream.Collectors; |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
28 |
import java.io.OutputStream; |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
29 |
import jdk.test.lib.apps.LingeredApp; |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
30 |
import jdk.test.lib.JDKToolLauncher; |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
31 |
import jdk.test.lib.Platform; |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
32 |
import jdk.test.lib.process.OutputAnalyzer; |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
33 |
import jdk.test.lib.Utils; |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
34 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
35 |
/* |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
36 |
* @test |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
37 |
* @summary Test the 'intConstant' command of jhsdb clhsdb. |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
38 |
* @bug 8190307 |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
39 |
* @library /test/lib |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
40 |
* @build jdk.test.lib.apps.* |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
41 |
* @run main/othervm TestIntConstant |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
42 |
*/ |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
43 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
44 |
public class TestIntConstant { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
45 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
46 |
private static void testClhsdbForIntConstant( |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
47 |
long lingeredAppPid, |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
48 |
String commandString, |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
49 |
String[] expectedOutputStrings) throws Exception { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
50 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
51 |
Process p; |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
52 |
JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK("jhsdb"); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
53 |
launcher.addToolArg("clhsdb"); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
54 |
launcher.addToolArg("--pid"); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
55 |
launcher.addToolArg(Long.toString(lingeredAppPid)); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
56 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
57 |
ProcessBuilder pb = new ProcessBuilder(); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
58 |
pb.command(launcher.getCommand()); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
59 |
pb.redirectError(ProcessBuilder.Redirect.INHERIT); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
60 |
System.out.println( |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
61 |
pb.command().stream().collect(Collectors.joining(" "))); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
62 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
63 |
try { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
64 |
p = pb.start(); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
65 |
} catch (Exception attachE) { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
66 |
throw new Error("Couldn't start jhsdb or attach to LingeredApp : " + attachE); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
67 |
} |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
68 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
69 |
// Issue the 'intConstant' inputs at the clhsdb prompt. |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
70 |
OutputStream input = p.getOutputStream(); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
71 |
try { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
72 |
input.write((commandString + "\n").getBytes()); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
73 |
input.write("quit\n".getBytes()); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
74 |
input.flush(); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
75 |
} catch (IOException ioe) { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
76 |
throw new Error("Problem issuing the intConstant command: " + |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
77 |
commandString + ioe); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
78 |
} |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
79 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
80 |
OutputAnalyzer output = new OutputAnalyzer(p); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
81 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
82 |
System.out.println("Awaiting process completion"); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
83 |
try { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
84 |
p.waitFor(); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
85 |
} catch (InterruptedException ie) { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
86 |
p.destroyForcibly(); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
87 |
throw new Error("Problem awaiting the child process: " + ie); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
88 |
} |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
89 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
90 |
output.shouldHaveExitValue(0); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
91 |
System.out.println(output.getOutput()); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
92 |
for (String expectedOutputString: expectedOutputStrings) { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
93 |
output.shouldContain(expectedOutputString); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
94 |
} |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
95 |
} |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
96 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
97 |
public static void testIntConstant() throws Exception { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
98 |
LingeredApp app = null; |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
99 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
100 |
try { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
101 |
List<String> vmArgs = new ArrayList<String>(); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
102 |
vmArgs.addAll(Utils.getVmOptions()); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
103 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
104 |
app = LingeredApp.startApp(vmArgs); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
105 |
System.out.println ("Started LingeredApp with pid " + app.getPid()); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
106 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
107 |
// Strings to check for in the output of 'intConstant'. The |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
108 |
// 'intConstant' command prints out entries from the |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
109 |
// 'gHotSpotVMIntConstants', which is a table of integer constants, |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
110 |
// with names and the values derived from enums and #define preprocessor |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
111 |
// macros in hotspot. |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
112 |
String[] defaultOutputStrings = |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
113 |
{"CollectedHeap::G1CollectedHeap 2", |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
114 |
"RUNNABLE 2", |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
115 |
"Deoptimization::Reason_class_check 4", |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
116 |
"InstanceKlass::_misc_is_anonymous 32", |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
117 |
"Generation::ParNew 1", |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
118 |
"_thread_uninitialized 0"}; |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
119 |
String[] tempConstantString = {"intConstant _temp_constant 45"}; |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
120 |
testClhsdbForIntConstant(app.getPid(), "intConstant", defaultOutputStrings); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
121 |
testClhsdbForIntConstant( |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
122 |
app.getPid(), |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
123 |
"intConstant _temp_constant 45\nintConstant _temp_constant", |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
124 |
tempConstantString); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
125 |
} finally { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
126 |
LingeredApp.stopApp(app); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
127 |
} |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
128 |
} |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
129 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
130 |
public static void main (String... args) throws Exception { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
131 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
132 |
if (!Platform.shouldSAAttach()) { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
133 |
System.out.println( |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
134 |
"SA attach not expected to work - test skipped."); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
135 |
return; |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
136 |
} |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
137 |
|
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
138 |
try { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
139 |
testIntConstant(); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
140 |
} catch (Exception e) { |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
141 |
throw new Error("Test failed with " + e); |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
142 |
} |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
143 |
} |
75d365bfc2e6
8190307: SA tests for the clhsdb commands: universe, intconstant, type
jgeorge
parents:
diff
changeset
|
144 |
} |