mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-21 22:12:38 +08:00
Merge remote-tracking branch 'origin/GP-0_Dan_testFixes-2022-11-14-patch-1' into patch
This commit is contained in:
+1
-1
@@ -79,7 +79,7 @@ public class LinuxPtySessionLeader {
|
||||
}
|
||||
}
|
||||
System.err.println("Could not execute " + subArgs.get(0) + ": " + t.getMessage());
|
||||
System.exit(-1);
|
||||
System.exit(127);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -84,10 +84,9 @@ public class LinuxPtyTest extends AbstractPtyTest {
|
||||
PtySession dies =
|
||||
pty.getChild().session(new String[] { "thisHadBetterNotExist" }, null);
|
||||
/**
|
||||
* NOTE: Java subprocess dies with code 1 on unhandled exception. TODO: Is there a nice
|
||||
* way to distinguish whether the code is from java or the execed image?
|
||||
* Choice of 127 is based on bash setting "exit code" to 127 for "command not found"
|
||||
*/
|
||||
assertEquals(1, dies.waitExited());
|
||||
assertEquals(127, dies.waitExited());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user