@ -93,15 +93,9 @@ function test_simple_relative_symlink(callback) {
unlink . push ( t [ 0 ] ) ;
unlink . push ( t [ 0 ] ) ;
} ) ;
} ) ;
var result = fs . realpathSync ( entry ) ;
var result = fs . realpathSync ( entry ) ;
assert . equal ( result , path . resolve ( expected ) ,
assert . equal ( result , path . resolve ( expected ) ) ;
'got ' + common . inspect ( result ) + ' expected ' +
common . inspect ( expected ) ) ;
asynctest ( fs . realpath , [ entry ] , callback , function ( err , result ) {
asynctest ( fs . realpath , [ entry ] , callback , function ( err , result ) {
assert . equal ( result , path . resolve ( expected ) ,
assert . equal ( result , path . resolve ( expected ) ) ;
'got ' +
common . inspect ( result ) +
' expected ' +
common . inspect ( expected ) ) ;
} ) ;
} ) ;
}
}
@ -125,17 +119,9 @@ function test_simple_absolute_symlink(callback) {
unlink . push ( t [ 0 ] ) ;
unlink . push ( t [ 0 ] ) ;
} ) ;
} ) ;
var result = fs . realpathSync ( entry ) ;
var result = fs . realpathSync ( entry ) ;
assert . equal ( result , path . resolve ( expected ) ,
assert . equal ( result , path . resolve ( expected ) ) ;
'got ' +
common . inspect ( result ) +
' expected ' +
common . inspect ( expected ) ) ;
asynctest ( fs . realpath , [ entry ] , callback , function ( err , result ) {
asynctest ( fs . realpath , [ entry ] , callback , function ( err , result ) {
assert . equal ( result , path . resolve ( expected ) ,
assert . equal ( result , path . resolve ( expected ) ) ;
'got ' +
common . inspect ( result ) +
' expected ' +
common . inspect ( expected ) ) ;
} ) ;
} ) ;
}
}
@ -163,11 +149,7 @@ function test_deep_relative_file_symlink(callback) {
assert . equal ( fs . realpathSync ( entry ) , path . resolve ( expected ) ) ;
assert . equal ( fs . realpathSync ( entry ) , path . resolve ( expected ) ) ;
asynctest ( fs . realpath , [ entry ] , callback , function ( err , result ) {
asynctest ( fs . realpath , [ entry ] , callback , function ( err , result ) {
assert . equal ( result , path . resolve ( expected ) ,
assert . equal ( result , path . resolve ( expected ) ) ;
'got ' +
common . inspect ( result ) +
' expected ' +
common . inspect ( path . resolve ( expected ) ) ) ;
} ) ;
} ) ;
}
}
@ -195,11 +177,7 @@ function test_deep_relative_dir_symlink(callback) {
assert . equal ( fs . realpathSync ( entry ) , path . resolve ( expected ) ) ;
assert . equal ( fs . realpathSync ( entry ) , path . resolve ( expected ) ) ;
asynctest ( fs . realpath , [ entry ] , callback , function ( err , result ) {
asynctest ( fs . realpath , [ entry ] , callback , function ( err , result ) {
assert . equal ( result , path . resolve ( expected ) ,
assert . equal ( result , path . resolve ( expected ) ) ;
'got ' +
common . inspect ( result ) +
' expected ' +
common . inspect ( path . resolve ( expected ) ) ) ;
} ) ;
} ) ;
}
}
@ -280,11 +258,7 @@ function test_relative_input_cwd(callback) {
assert . equal ( fs . realpathSync ( entry ) , path . resolve ( expected ) ) ;
assert . equal ( fs . realpathSync ( entry ) , path . resolve ( expected ) ) ;
asynctest ( fs . realpath , [ entry ] , callback , function ( err , result ) {
asynctest ( fs . realpath , [ entry ] , callback , function ( err , result ) {
process . chdir ( origcwd ) ;
process . chdir ( origcwd ) ;
assert . equal ( result , path . resolve ( expected ) ,
assert . equal ( result , path . resolve ( expected ) ) ;
'got ' +
common . inspect ( result ) +
' expected ' +
common . inspect ( path . resolve ( expected ) ) ) ;
return true ;
return true ;
} ) ;
} ) ;
}
}
@ -336,11 +310,7 @@ function test_deep_symlink_mix(callback) {
var expected = tmpAbsDir + '/cycles/root.js' ;
var expected = tmpAbsDir + '/cycles/root.js' ;
assert . equal ( fs . realpathSync ( entry ) , path . resolve ( expected ) ) ;
assert . equal ( fs . realpathSync ( entry ) , path . resolve ( expected ) ) ;
asynctest ( fs . realpath , [ entry ] , callback , function ( err , result ) {
asynctest ( fs . realpath , [ entry ] , callback , function ( err , result ) {
assert . equal ( result , path . resolve ( expected ) ,
assert . equal ( result , path . resolve ( expected ) ) ;
'got ' +
common . inspect ( result ) +
' expected ' +
common . inspect ( path . resolve ( expected ) ) ) ;
return true ;
return true ;
} ) ;
} ) ;
}
}
@ -355,11 +325,7 @@ function test_non_symlinks(callback) {
assert . equal ( fs . realpathSync ( entry ) , path . resolve ( expected ) ) ;
assert . equal ( fs . realpathSync ( entry ) , path . resolve ( expected ) ) ;
asynctest ( fs . realpath , [ entry ] , callback , function ( err , result ) {
asynctest ( fs . realpath , [ entry ] , callback , function ( err , result ) {
process . chdir ( origcwd ) ;
process . chdir ( origcwd ) ;
assert . equal ( result , path . resolve ( expected ) ,
assert . equal ( result , path . resolve ( expected ) ) ;
'got ' +
common . inspect ( result ) +
' expected ' +
common . inspect ( path . resolve ( expected ) ) ) ;
return true ;
return true ;
} ) ;
} ) ;
}
}