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 <[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 a6eede3 commit dd1f761

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
@@ -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

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)