test: check that modules backed by read-only files can load (win32)
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
This is the test-case for the issue at https://github.com/nodejs/node/issues/20112 . This fails with the issue present, and passes with the fix applied.
Note: Even before any changes, vcbuild test
gave a ton of failures for me, so not sure if that is my machine or something more fundamental. This test behaves as expected though.
CC @vsemozhetbyt, @cjihrig, @richardlau