当前位置:网站首页>GTEST death test
GTEST death test
2022-06-23 08:03:00 【heihei36】
auto func = []() {
exit(1);
};
::testing::FLAGS_gtest_death_test_style = "threadsafe";
EXPECT_EXIT(func(), testing::ExitedWithCode(1), "");If you don't add ::testing::FLAGS_gtest_death_test_style = "threadsafe";
UT Meeting BLOCK, And there will be the following warning messages :
[WARNING] googletest-release-1.10.0/googletest/src/gtest-death-test.cc:1122:: Death tests use fork(), which is unsafe particularly in a threaded context. For this test, Google Test detected 2 threads. See https://github.com/google/googletest/blob/master/googletest/docs/advanced.md#death-tests-and-threads for more explanation and suggested solutions, especially if this is the last message you see before your test times out.
边栏推荐
- Quickly delete the node in the code_ modules
- Ers function display of SAP mm
- ArcMap批量删除距离较近的点
- PHP serialization and deserialization CTF
- C print zoom
- 深度学习------不同方法实现lenet-5模型
- [markdown] markdown tutorial summary
- 快速排序 + 冒泡排序 + 插入排序 + 选择排序
- Tri rapide + Tri par bulle + Tri par insertion + Tri par sélection
- GTEST死亡测试
猜你喜欢

Gif verification code analysis

INT 104_LEC 06

ThreadPoolExecutor线程池实现原理与源码解析

Using the for loop to output an alphabetic triangle

Friends of the week

Test APK exception control nettraffic attacker development

深度学习------不同方法实现lenet-5模型

Openvino series 19 Openvino and paddleocr for real-time video OCR processing

1278_ FreeRTOS_ Understand the delayed task with the prvaddcurrenttasktodelayedlist interface

Commonly used bypass methods for SQL injection -ctf
随机推荐
顺序表课设
QT irregular shape antialiasing
带你玩tiktok就这么简单
MySQL gets the system time period
The sandbox has reached a cooperation with football player to bring popular football cartoons and animation into the metauniverse
配置ASMX无法访问
开源软件、自由软件、Copyleft、CC都是啥,傻傻分不清楚?
socket编程——select模型
Acwing第 56 場周賽【完結】
11 字符串函数
socket编程(多线程)
生产环境服务器环境搭建+项目发布流程
js中的同步和异步
mysql中多表视图性能疑惑
[markdown] markdown tutorial summary
[kubernetes] download address of the latest version of each major version of kubernetes
openni. utils. OpenNIError: (OniStatus.ONI_STATUS_ERROR, b‘DeviceOpen using default: no devices found‘
力扣(LeetCode)173. 二叉搜索树迭代器(2022.06.22)
图像分割-改进网络结构
Copy image bitmap by C # memory method