Skip to content

Commit 081fce3

Browse files
anonrigpull[bot]
authored andcommitted
test: add missing cctest/test_path.cc
PR-URL: #52148 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Geoffrey Booth <[email protected]> Reviewed-By: Chemi Atlow <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 0f8a487 commit 081fce3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

node.gyp

+1
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@
398398
'test/cctest/test_environment.cc',
399399
'test/cctest/test_linked_binding.cc',
400400
'test/cctest/test_node_api.cc',
401+
'test/cctest/test_path.cc',
401402
'test/cctest/test_per_process.cc',
402403
'test/cctest/test_platform.cc',
403404
'test/cctest/test_report.cc',

src/path.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ std::string PathResolve(Environment* env,
101101
const size_t numArgs = paths.size();
102102
auto cwd = env->GetCwd(env->exec_path());
103103

104-
for (int i = numArgs - 1; i >= -1 && !resolvedAbsolute; i--) {
104+
for (int i = numArgs - 1; i >= -1; i--) {
105105
std::string path;
106106
if (i >= 0) {
107107
path = std::string(paths[i]);

0 commit comments

Comments
 (0)