test: add missing cctest/test_path.cc
PR-URL: https://github.com/nodejs/node/pull/52148 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
6dd1c75f4a
commit
0b676736a0
1
node.gyp
1
node.gyp
@ -398,6 +398,7 @@
|
||||
'test/cctest/test_environment.cc',
|
||||
'test/cctest/test_linked_binding.cc',
|
||||
'test/cctest/test_node_api.cc',
|
||||
'test/cctest/test_path.cc',
|
||||
'test/cctest/test_per_process.cc',
|
||||
'test/cctest/test_platform.cc',
|
||||
'test/cctest/test_report.cc',
|
||||
|
@ -101,7 +101,7 @@ std::string PathResolve(Environment* env,
|
||||
const size_t numArgs = paths.size();
|
||||
auto cwd = env->GetCwd(env->exec_path());
|
||||
|
||||
for (int i = numArgs - 1; i >= -1 && !resolvedAbsolute; i--) {
|
||||
for (int i = numArgs - 1; i >= -1; i--) {
|
||||
std::string path;
|
||||
if (i >= 0) {
|
||||
path = std::string(paths[i]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user