Fix log StrippingTest on windows when TCHAR = WCHAR

PiperOrigin-RevId: 471622229
Change-Id: I787e0da71eaa1f99cc41b7950f93a43c6cced0ed
pull/1269/head
Abseil Team 3 years ago committed by Copybara-Service
parent b677bd139d
commit 4b9df7eade
  1. 2
      absl/log/stripping_test.cc

@ -227,7 +227,7 @@ class StrippingTest : public ::testing::Test {
path.resize(path.size() * 2, _T('\0'));
}
std::unique_ptr<FILE, std::function<void(FILE*)>> fp(
_tfopen(path.c_str(), "rb"), [](FILE* fp) { fclose(fp); });
_tfopen(path.c_str(), _T("rb")), [](FILE* fp) { fclose(fp); });
if (!fp) absl::FPrintF(stderr, "Failed to open executable\n");
return fp;
#else

Loading…
Cancel
Save