]> The Tcpdump Group git mirrors - tcpdump/commit
TESTrun: process the system return value differently on Windows and UN*X.
authorGuy Harris <[email protected]>
Sun, 14 Jun 2020 06:21:43 +0000 (23:21 -0700)
committerGuy Harris <[email protected]>
Sun, 14 Jun 2020 06:21:43 +0000 (23:21 -0700)
commitc4f8796bf8bec740621a360eded236d8991ea00f
tree32a7d679a7d2b05c43cb32791e306a829cc5884b
parent244366e38c41603b76fa498ac3e3a9c7f4c797c5
TESTrun: process the system return value differently on Windows and UN*X.

We can use the POSIX functions on UN*X, but not on Windows.  Use them on
UN*X, but extract the exit status manually on Windows.

Put in a pile of comments about the return status of commands, command
interpreters, and the Perl system function on UN*X and Windows.

If system simply fails to run at atll (returns -1), put a message into
the faked output file.

Get rid of some duplicate initializations while we're at it.
tests/TESTrun