diff --git a/test/parallel/test-regress-GH-3542.js b/test/parallel/test-fs-readfilesync-enoent.js similarity index 79% rename from test/parallel/test-regress-GH-3542.js rename to test/parallel/test-fs-readfilesync-enoent.js index b652c95c9ac881..72888c98e580a6 100644 --- a/test/parallel/test-regress-GH-3542.js +++ b/test/parallel/test-fs-readfilesync-enoent.js @@ -1,13 +1,19 @@ 'use strict'; const common = require('../common'); + +// This test ensures fs.realpathSync works on properly on Windows without +// throwing ENOENT when the path involves a fileserver +// https://github.com/nodejs/node-v0.x-archive/issues/3542 + // This test is only relevant on Windows. -if (!common.isWindows) - common.skip('Windows specific test.'); const assert = require('assert'); const fs = require('fs'); const path = require('path'); +if (!common.isWindows) + common.skip('Windows specific test.'); + function test(p) { const result = fs.realpathSync(p); assert.strictEqual(result.toLowerCase(), path.resolve(p).toLowerCase());