abseil / abseil/abseil-cpp

[MSVC] abseil_cpp failed to run 2 tests "absl_random_bit_gen_ref_test" and "absl_time_test" on Windows

未關閉
#2,077 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
C++
星號
18.1k
分支
3.2k
平均合併
20 小時 36 分鐘
30 天內合併 PR
1

描述

### Describe the issue

The MSVC team regularly builds popular open-source projects, including yours, with development versions of the build tools in order to find and fix regressions in the compiler and libraries before they can ship and cause trouble for the world. This also allows us to provide advance notice of breaking changes, which is the case here.

abseil_cpp failed to run 2 tests "absl_random_bit_gen_ref_test" and "absl_time_test" on Windows. Could you please help take a look? Thanks in advance!

### Steps to reproduce the problem

```
1. Open VS2022 x64 CMD.
2. git clone https://github.com/abseil/abseil-cpp C:\gitP\abseil\abseil-cpp
3. mkdir build_amd64 && cd build_amd64
4. set _CL_=/std:c++17
5. cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.26100.0 -DBUILD_TESTING=ON -DABSL_USE_GOOGLETEST_HEAD=ON -DABSL_BUILD_TESTING=ON -DABSL_PROPAGATE_CXX_STD=ON ..
6. msbuild /m /p:Platform=x64 /p:Configuration=Release absl.sln /t:Rebuild
7. ctest --build-config Release --output-on-failure
```

**Error info:
The following tests FAILED:
125 - absl_random_bit_gen_ref_test (Timeout)**
125/235 Test #125: absl_random_bit_gen_ref_test ........................***Timeout 1500.02 sec
Running main() from C:\gitP\abseil\abseil-cpp\build_amd64\googletest-src\googletest\src\gtest_main.cc

**225 - absl_time_test (Failed)**
[ RUN ] Time.Breakdown
[test_util.cc : 26] RAW: Check LoadTimeZone(name, &tz) failed: America/New_York

**test log file:**
[Test4.log](https://github.com/user-attachments/files/28868461/Test4.log)

### What version of Abseil are you using?

master branch commit b85d169.

### What operating system and version are you using?

Windows 11

### What compiler and version are you using?

The latest MSVC

### What build system are you using?

>cmake --version
cmake version 3.31.6-msvc6

### Additional context

_No response_

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。