process-api: ProcessBuilder and Process API module (pipe-buffer deadlock and its fixes, timeouts and process-tree kill, grandchild holding the pipe, environment/redirect/stdin, ProcessHandle, startPipeline, shell and option injection), ProcessRunner, 14 contract tests
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b3W3uHbHAmM3orhn7b
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
47e4ccbefa
commit
a714780bca
@@ -0,0 +1,18 @@
|
||||
== 1. the smallest thing that works
|
||||
stdout = hello from a child process
|
||||
exit code = 0
|
||||
|
||||
== 2. a failing command is NOT an exception: it is a non-zero exit code
|
||||
stderr = ls: cannot access '/definitely/not/here': No such file or directory
|
||||
exit code = 2
|
||||
|
||||
== 3. a command that does not exist IS an exception, thrown by start()
|
||||
IOException: Cannot run program "no-such-binary-xyz": Exec failed, error: 2 (No such file or directory)
|
||||
|
||||
== 4. exitValue() before the process ends throws
|
||||
IllegalThreadStateException: process hasn't exited
|
||||
waitFor(200ms) returned false (false = still running, true = exited)
|
||||
after destroyForcibly(): exit code = 137 (128 + SIGKILL 9 = 137 on Linux)
|
||||
|
||||
== 5. the shell is not involved: no pipes, no globs, no $VARS
|
||||
stdout = *.txt $HOME a|b
|
||||
Reference in New Issue
Block a user