< prev index next >

test/java/lang/ProcessBuilder/Zombies.java

Print this page
rev 10985 : [mq]: 8061549

*** 45,65 **** final Runtime rt = Runtime.getRuntime(); try { rt.exec("no-such-file"); throw new Error("expected IOException not thrown"); ! } catch (IOException _) {/* OK */} try { rt.exec("."); throw new Error("expected IOException not thrown"); ! } catch (IOException _) {/* OK */} try { rt.exec(TrueCommand, null, new File("no-such-dir")); throw new Error("expected IOException not thrown"); ! } catch (IOException _) {/* OK */} rt.exec(TrueCommand).waitFor(); // Count all the zombies that are children of this Java process final String[] zombieCounter = { --- 45,65 ---- final Runtime rt = Runtime.getRuntime(); try { rt.exec("no-such-file"); throw new Error("expected IOException not thrown"); ! } catch (IOException expected) {/* OK */} try { rt.exec("."); throw new Error("expected IOException not thrown"); ! } catch (IOException expected) {/* OK */} try { rt.exec(TrueCommand, null, new File("no-such-dir")); throw new Error("expected IOException not thrown"); ! } catch (IOException expected) {/* OK */} rt.exec(TrueCommand).waitFor(); // Count all the zombies that are children of this Java process final String[] zombieCounter = {
< prev index next >