test: properly clean up temp directory
authorRoman Reiss <me@silverwind.io>
Sat, 11 Jul 2015 22:20:48 +0000 (00:20 +0200)
committerRoman Reiss <me@silverwind.io>
Sat, 11 Jul 2015 23:09:25 +0000 (01:09 +0200)
commitd4ceb16da243cff21aa88892fd050d9e5b69c1c5
tree6b2569e1e162c1377325f3685d960ee24fe2e8fa
parent2ba84606a68954ff48cefc176f65b21264f64cc3
test: properly clean up temp directory

A persistent failure on OS X 10.11 uncovered a inproperly cleaned up
temp directory in this test. This changes the mkdirSync call to clean up
properly in case it throws.

PR-URL: https://github.com/nodejs/io.js/pull/2164
Reviewed-By: Evan Lucas <evanlucas@me.com>
test/sequential/test-chdir.js