From 5d2b846d1114bad5e7fbf04910ff59fc970c175e Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 18 Jun 2015 22:06:19 -0700 Subject: [PATCH] test: assert tmp and fixture dirs different PR-URL: https://github.com/nodejs/io.js/pull/2015 Reviewed-By: Trevor Norris --- test/parallel/test-fs-realpath.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/parallel/test-fs-realpath.js b/test/parallel/test-fs-realpath.js index 8b698fbdcfd4d5..718ec2f7aac3d9 100644 --- a/test/parallel/test-fs-realpath.js +++ b/test/parallel/test-fs-realpath.js @@ -40,6 +40,7 @@ function tmp(p) { var fixturesAbsDir = common.fixturesDir; var tmpAbsDir = common.tmpDir; +assert(fixturesAbsDir !== tmpAbsDir); console.error('absolutes\n%s\n%s', fixturesAbsDir, tmpAbsDir); @@ -298,8 +299,6 @@ function test_deep_symlink_mix(callback) { return runNextTest(); } - // todo: check to see that common.fixturesDir is not rooted in the - // same directory as our test symlink. /* /tmp/node-test-realpath-f1 -> ../tmp/node-test-realpath-d1/foo /tmp/node-test-realpath-d1 -> ../node-test-realpath-d2