From 1dc8eaa749e2340342856abf19cbc07aab1da19f Mon Sep 17 00:00:00 2001
From: Bert Belder <bertbelder@gmail.com>
Date: Mon, 8 Dec 2014 17:49:24 +0100
Subject: [PATCH] test-require-resolve: use case insensitive compare

The test fixtures dirrectory is derived from the path to the currently
running script, which is itself specified on the command line. That
means that the case of the fixtures dir may not match what the test
expects (when executed on a case-insensitive filesystem).
---
 test/simple/test-require-resolve.js | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/test/simple/test-require-resolve.js b/test/simple/test-require-resolve.js
index 7f8a8b1c395869..490deae6871a40 100644
--- a/test/simple/test-require-resolve.js
+++ b/test/simple/test-require-resolve.js
@@ -24,12 +24,15 @@ var fixturesDir = common.fixturesDir;
 var assert = require('assert');
 var path = require('path');
 
-assert.equal(path.join(__dirname, '../fixtures/a.js'),
-             path.normalize(require.resolve('../fixtures/a')));
-assert.equal(path.join(fixturesDir, 'a.js'),
-             path.normalize(require.resolve(path.join(fixturesDir, 'a'))));
-assert.equal(path.join(fixturesDir, 'nested-index', 'one', 'index.js'),
-             path.normalize(require.resolve('../fixtures/nested-index/one')));
+assert.equal(
+    path.join(__dirname, '../fixtures/a.js').toLowerCase(),
+    require.resolve('../fixtures/a').toLowerCase());
+assert.equal(
+    path.join(fixturesDir, 'a.js').toLowerCase(),
+    require.resolve(path.join(fixturesDir, 'a')).toLowerCase());
+assert.equal(
+    path.join(fixturesDir, 'nested-index', 'one', 'index.js').toLowerCase(),
+    require.resolve('../fixtures/nested-index/one').toLowerCase());
 assert.equal('path', require.resolve('path'));
 
 console.log('ok');