test: lint and refactor to avoid autocrlf issue
authorRoman Reiss <me@silverwind.io>
Sat, 29 Aug 2015 07:41:27 +0000 (09:41 +0200)
committerRoman Reiss <me@silverwind.io>
Sat, 29 Aug 2015 18:00:10 +0000 (20:00 +0200)
commit83c2c3b67607e6dc268e24ff390bf8a2344d1ec1
treeb01b3f61c2a31c4c0fc2f111bcf84b9064d35b75
parent4c5fc3b1d4f1091135b5340c220d28ab4258a1df
test: lint and refactor to avoid autocrlf issue

The test was failing after adding 'use strict' because the windows CI
uses the autocrlf option of git which converts \r into \r\n on checkout.

Refactored the test to not read itself anymore and create a temp file on
the fly instead to avoid this line-ending issue.

PR-URL: https://github.com/nodejs/node/pull/2494
Reviewed-By: Joao Reis <reis@janeasystems.com>
.eslintignore
test/parallel/test-fs-non-number-arguments-throw.js