United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 7129125 TEST_BUG: java/lang/ProcessBuilder/Zombies.java failed on linux with "No such file"
7129125 : TEST_BUG: java/lang/ProcessBuilder/Zombies.java failed on linux with "No such file"

Details
Type:
Bug
Submit Date:
2012-01-11
Status:
Closed
Updated Date:
2012-10-06
Project Name:
JDK
Resolved Date:
2012-03-23
Component:
core-libs
OS:
linux_oracle_5.6
Sub-Component:
java.lang
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
7u4
Fixed Versions:
7u4

Related Reports

Sub Tasks

Description
test failed on linux platforms with following exception:
java.io.IOException: Cannot run program "/usr/bin/true": error=2, No such file or directory
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
        at java.lang.Runtime.exec(Runtime.java:615)
        at java.lang.Runtime.exec(Runtime.java:448)
        at java.lang.Runtime.exec(Runtime.java:345)
        at Zombies.main(Zombies.java:56)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...

test from b254 WS is differ than from b200 WS and works fine  

[stt-robot@stt-105]$ diff /net/vice.ru.oracle.com/export/home0/regression/workspaces/170/1.7.0_04b200/j2se/test/java/lang/ProcessBuilder/Zombies.java /net/vice.ru.oracle.com/export/home0/regression/workspaces/170/1.7.0_04b254/j2se/test/java/lang/ProcessBuilder/Zombies.java
52c52
<             rt.exec("/usr/bin/true", null, new File("no-such-dir"));
---
>             rt.exec("/bin/true", null, new File("no-such-dir"));
56c56
<         rt.exec("/usr/bin/true").waitFor();
---
>         rt.exec("/bin/true").waitFor();


see comments for more details

                                    

Comments
EVALUATION

From the build numbers I suspect this is a build of jdk7u/jdk7-osx. In jdk7u/jdk7u-dev the test uses /bin/true but was changed to /usr/bin/true via 7129125 in jdk7u/jdk7-osx. If the submitter is not using a Linux build from the Mac forest then please tell us.
                                     
2012-01-11



Hardware and Software, Engineered to Work Together