test: assert that invalidcmd throws error code
requested to merge github/fork/jeromecovington/refactor/test-child-process-spawn-typeerror into master
Update invalidcmd test case in test-child-process-spawn-typeerror to assert on specific expected error code.
I've been interested in custom error codes in core for various reasons, @trott suggested this refactor as a place to start looking into usage in tests.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines