Skip to content

Commit dd1f761

Browse files
anonrigmarco-ippolito
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 a6eede3 commit dd1f761

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
@@ -385,6 +385,7 @@
385385
'test/cctest/test_environment.cc',
386386
'test/cctest/test_linked_binding.cc',
387387
'test/cctest/test_node_api.cc',
388+
'test/cctest/test_path.cc',
388389
'test/cctest/test_per_process.cc',
389390
'test/cctest/test_platform.cc',
390391
'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)