@@ -273,14 +273,14 @@ function test_deep_symlink_mix(callback) {
273
273
}
274
274
275
275
/*
276
- /tmp/node-test-realpath-f1 -> ../tmp /node-test-realpath-d1/foo
277
- /tmp/node-test-realpath-d1 -> .. /node-test-realpath-d2
278
- /tmp/node-test-realpath-d2/foo -> .. /node-test-realpath-f2
276
+ /tmp/node-test-realpath-f1 -> $tmpDir /node-test-realpath-d1/foo
277
+ /tmp/node-test-realpath-d1 -> $tmpDir /node-test-realpath-d2
278
+ /tmp/node-test-realpath-d2/foo -> $tmpDir /node-test-realpath-f2
279
279
/tmp/node-test-realpath-f2
280
280
-> /node/test/fixtures/nested-index/one/realpath-c
281
281
/node/test/fixtures/nested-index/one/realpath-c
282
282
-> /node/test/fixtures/nested-index/two/realpath-c
283
- /node/test/fixtures/nested-index/two/realpath-c -> ../.. /cycles/root.js
283
+ /node/test/fixtures/nested-index/two/realpath-c -> $tmpDir /cycles/root.js
284
284
/node/test/fixtures/cycles/root.js (hard)
285
285
*/
286
286
var entry = tmp ( 'node-test-realpath-f1' ) ;
@@ -289,16 +289,16 @@ function test_deep_symlink_mix(callback) {
289
289
fs . mkdirSync ( tmp ( 'node-test-realpath-d2' ) , 0o700 ) ;
290
290
try {
291
291
[
292
- [ entry , '../' + common . tmpDirName + '/node-test-realpath-d1/foo' ] ,
292
+ [ entry , common . tmpDir + '/node-test-realpath-d1/foo' ] ,
293
293
[ tmp ( 'node-test-realpath-d1' ) ,
294
- '../' + common . tmpDirName + '/node-test-realpath-d2' ] ,
294
+ common . tmpDir + '/node-test-realpath-d2' ] ,
295
295
[ tmp ( 'node-test-realpath-d2/foo' ) , '../node-test-realpath-f2' ] ,
296
296
[ tmp ( 'node-test-realpath-f2' ) , fixturesAbsDir +
297
- '/nested-index/one/realpath-c' ] ,
297
+ '/nested-index/one/realpath-c' ] ,
298
298
[ fixturesAbsDir + '/nested-index/one/realpath-c' , fixturesAbsDir +
299
- '/nested-index/two/realpath-c' ] ,
299
+ '/nested-index/two/realpath-c' ] ,
300
300
[ fixturesAbsDir + '/nested-index/two/realpath-c' ,
301
- '../../../' + common . tmpDirName + '/cycles/root.js' ]
301
+ common . tmpDir + '/cycles/root.js' ]
302
302
] . forEach ( function ( t ) {
303
303
try { fs . unlinkSync ( t [ 0 ] ) ; } catch ( e ) { }
304
304
fs . symlinkSync ( t [ 1 ] , t [ 0 ] ) ;
0 commit comments