Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix getting env variables on windows #15518

Closed
wants to merge 2 commits into from
Closed

Conversation

isuruf
Copy link
Contributor

@isuruf isuruf commented Jan 20, 2024

Fixes #15436

@isuruf isuruf requested a review from a team as a code owner January 20, 2024 02:27
@isuruf isuruf requested review from fowles and removed request for a team January 20, 2024 02:27
@isuruf
Copy link
Contributor Author

isuruf commented Jan 20, 2024

cc @h-vetinari

@@ -72,7 +72,13 @@ static constexpr absl::string_view kSecondInsertionPoint =
" # @@protoc_insertion_point(second_mock_insertion_point) is here\n";

MockCodeGenerator::MockCodeGenerator(absl::string_view name) : name_(name) {
absl::string_view key = getenv("TEST_CASE");
char* c_key = getenv("TEST_CASE");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add the const here since you don't mutate the pointer contents

@fowles fowles added c++ 🅰️ safe for tests Mark a commit as safe to run presubmits over labels Jan 20, 2024
@github-actions github-actions bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: CommandLineInterfaceTest failing with "SEH exception" on windows with v25.2
2 participants