update master-with-bazel from master branch

This commit is contained in:
BoringSSL Robot
2023-08-30 15:27:56 +00:00
+5 -2
View File
@@ -633,8 +633,11 @@ TEST(BIOTest, Gets) {
check_bio_gets(bio.get());
}
using ScopedFILE = std::unique_ptr<FILE, decltype(&fclose)>;
ScopedFILE file(tmpfile(), fclose);
struct FileCloser {
void operator()(FILE *f) const { fclose(f); }
};
using ScopedFILE = std::unique_ptr<FILE, FileCloser>;
ScopedFILE file(tmpfile());
#if defined(OPENSSL_ANDROID)
// On Android, when running from an APK, |tmpfile| does not work. See
// b/36991167#comment8.