tail = result[3],
trailingSlash = /[\\\/]$/.test(tail);
+ // If device is a drive letter, we'll normalize to lower case.
+ if (device && device.charAt(1) === ':') {
+ device = device[0].toLowerCase() + device.substr(1);
+ }
+
// Normalize the tail path
tail = normalizeArray(tail.split(/[\\\/]+/).filter(function(p) {
return !!p;
function test_relative_input_cwd(callback) {
console.log('test_relative_input_cwd');
+ if (skipSymlinks) {
+ console.log('skipping symlink test (no privs)');
+ return runNextTest();
+ }
// we need to get the relative path to the tmp dir from cwd.
// When the test runner is running it, that will be .../node/test
var path = require('path');
assert.equal(path.join(__dirname, '../fixtures/a.js'),
- require.resolve('../fixtures/a'));
+ path.normalize(require.resolve('../fixtures/a')));
assert.equal(path.join(fixturesDir, 'a.js'),
- require.resolve(path.join(fixturesDir, 'a')));
+ path.normalize(require.resolve(path.join(fixturesDir, 'a'))));
assert.equal(path.join(fixturesDir, 'nested-index', 'one', 'index.js'),
- require.resolve('../fixtures/nested-index/one'));
+ path.normalize(require.resolve('../fixtures/nested-index/one')));
assert.equal('path', require.resolve('path'));
console.log('ok');