test: Misc Windows unit test fixes
authorScott Blomquist <sblom@microsoft.com>
Mon, 18 Mar 2013 17:48:13 +0000 (10:48 -0700)
committerScott Blomquist <sblom@microsoft.com>
Tue, 19 Mar 2013 16:38:11 +0000 (09:38 -0700)
commita05f973f82d2be8527aad4c371d40d3c7e4c564e
treede763c645f14269287e48a3ec861dad81f160d22
parent14a8fb8bbe906b20ee393b67c1425773e0e0f7db
test: Misc Windows unit test fixes

Fixes #5071, #5073.

* Normalize capitalization of drive letter
* Fix `exit()` typo in failure path
* Ignore symlink tests (Windows) if not elevated

The `test_relative_input_cwd()` test was failing on Windows when
`skipSymlinks` was `true`. So we won't run it if `skipSymlinks` is
`true`.

When it failed, the unhandled error caused Node to die before
having a chance to clean up, which resulted in two files missing
in subsequent unit tests:

 * `test/fixtures/nested-index/one/hello.js`
 * `test/fixtures/nested-index/one/index.js`

We should probably find a way to isolate this test from the other
test (`simple/test-module-loading`) that was failing when this test
poluted the disk state.
lib/path.js
test/simple/test-fs-realpath.js
test/simple/test-http-curl-chunk-problem.js
test/simple/test-require-resolve.js