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 <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>
1 parent 0f8a487 commit 081fce3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

node.gyp

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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)