Skip to content

test: added Ubuntu error code support to test-process-uid-gid.js

Rodrigo Muino Tomonari requested to merge github/fork/ssample812/ssample into master

This change adds exception handling for the error code received when process.setgid('nobody') is called on Ubuntu, where the standard 'nobody' group from UNIX systems is named 'nogroup'. Coverage had previously been added for the error message, but with Ubuntu 18 this message has changed. Using the error code, which is intended to be unchanging, will hopefully prevent the need for updates in the future.

Refs: https://github.com/nodejs/node/issues/19594

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading