test: fix incorrect assumptions on the user uid and gid
requested to merge github/fork/garwahl/fix-test-child-process-spawnsync-validation-errors into master
Add a invalidArgTypeErrorCount variable to adjust the number of expected errors if the uid and gid options cannot be properly validated.
Fixes: https://github.com/nodejs/node/issues/19371
Has been tested as working on Ubuntu 14.04 LTS. Requires testing still in Windows with container/non-container environment still.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
documentation is changed or added -
commit message follows commit guidelines