Skip to content

Commit 5d2b846

Browse files
committed
test: assert tmp and fixture dirs different
PR-URL: #2015 Reviewed-By: Trevor Norris <[email protected]>
1 parent a4f4909 commit 5d2b846

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/parallel/test-fs-realpath.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ function tmp(p) {
4040

4141
var fixturesAbsDir = common.fixturesDir;
4242
var tmpAbsDir = common.tmpDir;
43+
assert(fixturesAbsDir !== tmpAbsDir);
4344

4445
console.error('absolutes\n%s\n%s', fixturesAbsDir, tmpAbsDir);
4546

@@ -298,8 +299,6 @@ function test_deep_symlink_mix(callback) {
298299
return runNextTest();
299300
}
300301

301-
// todo: check to see that common.fixturesDir is not rooted in the
302-
// same directory as our test symlink.
303302
/*
304303
/tmp/node-test-realpath-f1 -> ../tmp/node-test-realpath-d1/foo
305304
/tmp/node-test-realpath-d1 -> ../node-test-realpath-d2

0 commit comments

Comments
 (0)