Skip to content

Fix getting env variables on windows#15518

Closed
isuruf wants to merge 2 commits intoprotocolbuffers:mainfrom
isuruf:win_env
Closed

Fix getting env variables on windows#15518
isuruf wants to merge 2 commits intoprotocolbuffers:mainfrom
isuruf:win_env

Conversation

@isuruf
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

isuruf commented Jan 20, 2024

cc @h-vetinari


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

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