This commit adds a timeout of 3 seconds to several protocol unit tests in their respective CMakeLists.txt files. These tests were observed to block indefinitely in certain build environments, specifically when building deb packages. Adding a timeout ensures that these tests will not hang the build process, improving overall build reliability and preventing potential deadlocks. The timeout value of 3 seconds was chosen to allow sufficient time for the tests to complete under normal conditions while still providing a reasonable safeguard against indefinite blocking. fix: 为协议测试添加超时 此提交在其各自的 CMakeLists.txt 文件中为多个协议单元测试添加了 3 秒的超 时。据观察,这些测试在某些构建环境中(尤其是在构建 deb 软件包时)会无限 期地阻塞。添加超时可确保这些测试不会使构建过程挂起,从而提高整体构建可靠 性并防止潜在的死锁。选择 3 秒的超时值是为了在正常情况下为测试完成留出足 够的时间,同时仍提供合理的保护以防止无限期阻塞。 |
||
|---|---|---|
| .. | ||
| test_protocol_personalization | ||
| test_protocol_primary-output | ||
| test_protocol_shortcut | ||
| test_protocol_virtual-output | ||
| test_protocol_wallpaper-color | ||
| test_protocol_window-management | ||
| test_window_picker | ||
| CMakeLists.txt | ||