< prev index next >
test/jdk/tools/launcher/RunpathTest.java
Print this page
rev 59105 : imported patch corelibs
@@ -39,11 +39,11 @@
elfreaderCmd = findElfReader();
}
final String findElfReader() {
String[] paths = {"/usr/sbin", "/usr/bin"};
- final String cmd = isSolaris ? "elfdump" : "readelf";
+ final String cmd = "readelf";
for (String x : paths) {
File p = new File(x);
File e = new File(p, cmd);
if (e.canExecute()) {
return e.getAbsolutePath();
@@ -67,11 +67,11 @@
String expectedRpath = ".*R(UN)?PATH.*\\$ORIGIN/../lib.*";
elfCheck(javaCmd, expectedRpath);
}
public static void main(String... args) throws Exception {
- if (isSolaris || isLinux) {
+ if (isLinux) {
RunpathTest rp = new RunpathTest();
if (rp.elfreaderCmd == null) {
System.err.println("Warning: test passes vacuously");
return;
}
< prev index next >