Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2a2620e

Browse files
nodejs-github-botmarco-ippolito
authored andcommitted
deps: update googletest to34ad51b
PR-URL:#53157Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>Reviewed-By: Michaël Zasso <targos@protonmail.com>Reviewed-By: Luigi Pinca <luigipinca@gmail.com>Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>Reviewed-By: Tobias Nießen <tniessen@tnie.de>Reviewed-By: Michael Dawson <midawson@redhat.com>Reviewed-By: James M Snell <jasnell@gmail.com>
1 parentc01ce60 commit2a2620e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎deps/googletest/src/gtest.cc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,11 +661,14 @@ ::std::vector<std::string> GetArgvs() {
661661
FilePathGetCurrentExecutableName() {
662662
FilePath result;
663663

664+
auto args =GetArgvs();
665+
if (!args.empty()) {
664666
#if defined(GTEST_OS_WINDOWS) || defined(GTEST_OS_OS2)
665-
result.Set(FilePath(GetArgvs()[0]).RemoveExtension("exe"));
667+
result.Set(FilePath(args[0]).RemoveExtension("exe"));
666668
#else
667-
result.Set(FilePath(GetArgvs()[0]));
669+
result.Set(FilePath(args[0]));
668670
#endif// GTEST_OS_WINDOWS
671+
}
669672

670673
return result.RemoveDirectoryName();
671674
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp