test: fix common.canCreateSymLink() on non-Windows

test/common/README.md indicates that canCreateSymlink() always returns
true on non-Windows platforms. However, prior to this commit, undefined
was being returned. This commit aligns the implementation with the
docs by returning true.

PR-URL: https://github.com/nodejs/node/pull/20511
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
Masashi Hirano 2018-05-04 13:44:16 +09:00 committed by cjihrig
parent 64348f5ea5
commit 6ec43fc28b
No known key found for this signature in database
GPG Key ID: 7434390BDBE9B9C5

View File

@ -518,6 +518,8 @@ exports.canCreateSymLink = function() {
return false;
}
}
// On non-Windows platforms, this always returns `true`
return true;
};
exports.getCallSite = function getCallSite(top) {