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

Remove calls to TestTmpDir in protobuf/testing/googletest.cc. #18348

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

copybara-service[bot]
Copy link

Remove calls to TestTmpDir in protobuf/testing/googletest.cc.

This came up as a pull request here:
#18239.

While we can't use |std::filesystem::temp_directory_path| as suggested due to the
need to support C++14 until 2024-12-15, we might be able to get rid of the
implementation of TestTmpDir directly and just use testing::TmpDir() as
implemented by GoogleTest.

@copybara-service copybara-service bot force-pushed the test_675307746 branch 7 times, most recently from cf52975 to b3bfd46 Compare September 20, 2024 20:22
This came up as a pull request here:
#18239.

|tmpnam| is ugly and would be nice to avoid.

We don't necessarily want to substitute out GetTemporaryDirectoryName with
|std::filesystem::temp_directory_path| -- the current setup creates a
subdirectory under the tmp directory and uses TempDirDeleter to clean it up.
We want to preserve that behaviour: the current setup plays nicely with bazel
without polluting /tmp with unbounded growth.

#test-continuous

PiperOrigin-RevId: 677843997
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant