jdk/test/tools/launcher/Settings.java
changeset 22602 0d9a07b0d7e9
parent 11998 7ef4a256eb26
child 35248 b0665ea22f83
equal deleted inserted replaced
22601:4b01a46075d7 22602:0d9a07b0d7e9
    71         checkContains(tr, PROP_SETTINGS);
    71         checkContains(tr, PROP_SETTINGS);
    72         checkContains(tr, LOCALE_SETTINGS);
    72         checkContains(tr, LOCALE_SETTINGS);
    73     }
    73     }
    74 
    74 
    75     static void runTestOptionDefault() throws IOException {
    75     static void runTestOptionDefault() throws IOException {
       
    76         String stackSize = "256"; // in kb
       
    77         if (getArch().equals("ppc64")) {
       
    78             stackSize = "800";
       
    79         }
    76         TestResult tr = null;
    80         TestResult tr = null;
    77         tr = doExec(javaCmd, "-Xms64m", "-Xmx512m",
    81         tr = doExec(javaCmd, "-Xms64m", "-Xmx512m",
    78                 "-Xss256k", "-XshowSettings", "-jar", testJar.getAbsolutePath());
    82                 "-Xss" + stackSize + "k", "-XshowSettings", "-jar", testJar.getAbsolutePath());
    79         containsAllOptions(tr);
    83         containsAllOptions(tr);
    80         if (!tr.isOK()) {
    84         if (!tr.isOK()) {
    81             System.out.println(tr.status);
    85             System.out.println(tr.status);
    82             throw new RuntimeException("test fails");
    86             throw new RuntimeException("test fails");
    83         }
    87         }
    84         tr = doExec(javaCmd, "-Xms65536k", "-Xmx712m",
    88         tr = doExec(javaCmd, "-Xms65536k", "-Xmx712m",
    85                 "-Xss256000", "-XshowSettings", "-jar", testJar.getAbsolutePath());
    89                 "-Xss" + stackSize + "000", "-XshowSettings", "-jar", testJar.getAbsolutePath());
    86         containsAllOptions(tr);
    90         containsAllOptions(tr);
    87         if (!tr.isOK()) {
    91         if (!tr.isOK()) {
    88             System.out.println(tr.status);
    92             System.out.println(tr.status);
    89             throw new RuntimeException("test fails");
    93             throw new RuntimeException("test fails");
    90         }
    94         }