harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Beyer" <ndbe...@apache.org>
Subject [drlvm] Is Cygwin required for kernel.test?
Date Sun, 08 Apr 2007 04:04:19 GMT
Does the java.lang.RuntimeTest2 kernel.test in DRLVM require Cygwin to
work in a Windows OS? I'm recieving the following failure from the
test_exec_Str_F2T1S2Z test method.

check002: sh.exe seems to have not been found by default! Please, set
the path to sh.exe via java.library.path property.

I looked at the code and I don't see how this bit of code could ever
succeed in a Windows environment without Cygwin.

                File f = new java.io.File("C:\\CygWin\\bin");
                Process p;
                if (f.exists()) {
                    p = Runtime.getRuntime().exec(new String[] {
                            cmnd, "/C", "sh", "-c",
                            "echo $#; echo $0; echo $1; echo $2; echo $3; " +
                            "echo $4; echo $5; echo $6; echo $7",
                            "Hello", "HELL", "\"Hello\" \"world\"",
                            "World hello", "vas\"a d:?*/\\", "\"World hello\""},
                            new String[] {}, f);
                    p.waitFor();
                } else {
                    p = Runtime.getRuntime().exec(new String[] {
                            cmnd, "/C", "sh", "-c",
                            "echo $#; echo $0; echo $1; echo $2; echo $3; " +
                            "echo $4; echo $5; echo $6; echo $7",
                            "Hello", "HELL", "\"Hello\" \"world\"",
                            "World hello", "vas\"a d:?*/\\", "\"World
hello\""});
                    if (p.waitFor() != 0) {
                        fail("check002: sh.exe seems to have not been found " +
                                "by default! Please, set the path to sh.exe" +
                                " via java.library.path property.");
                    }
                }


Was this test previously excluded?
-Nathan

Mime
View raw message