jdk/test/com/sun/jdi/DoubleAgentTest.java
changeset 4342 9f3aa1172803
parent 4335 365eb4449319
child 5506 202f599c92aa
--- a/jdk/test/com/sun/jdi/DoubleAgentTest.java	Mon Nov 30 14:15:15 2009 -0800
+++ b/jdk/test/com/sun/jdi/DoubleAgentTest.java	Tue Dec 01 08:51:16 2009 -0800
@@ -92,9 +92,10 @@
         String exe =   System.getProperty("java.home")
                      + File.separator + "bin" + File.separator;
         String arch = System.getProperty("os.arch");
-        if (arch.equals("sparcv9")) {
+        String osname = System.getProperty("os.name");
+        if (osname.equals("SunOS") && arch.equals("sparcv9")) {
             exe += "sparcv9/java";
-        } else if (arch.equals("amd64")) {
+        } else if (osname.equals("SunOS") && arch.equals("amd64")) {
             exe += "amd64/java";
         } else {
             exe += "java";