c++ - GoogleTest 无法处理带有 jp 字符的路径
问题描述
在使用 JP 字符的路径上运行我的 Windows 测试应用程序时,它无法调用函数ASSERT_EXIT(myTestFunction(testCase), ::testing::ExitedWithCode(0), "")。当调用myTestFunction(testCase)而不使用 ASSERT_EXIT() 时,调用该函数。
这是函数调用失败的原始代码,
TEST_P(Transponder, startReplaying)
{
std::string testCase = (std::string)GetParam();
ASSERT_EXIT(myTestFunction(testCase), ::testing::ExitedWithCode(0), "");
}
我知道 ASSERT_EXIT 是通过子进程调用的。通过 googletest 的子进程调用时如何处理多字节字符串的任何线索?
解决方案
推荐阅读
- jenkins - 如果其他条件,Jenkinsfile 声明变量
- java - 有没有办法在 TimerTask 运行时检查某些东西
- docker - 无法使用 Docker-compose 创建远程解释器
- php - 在前端随处自定义 WooCommerce 产品名称
- html - 添加填充/定位时,ASP.Net Core 模型绑定表单被挤压
- python - 给定有序对(跳数)的子列表列表,我如何计算通过列表的路径数(每个路径都是跳数序列)
- arrays - 使用 && 运算符优化数组重叠查询
- reactjs - 如何在 Formik 中集成我的提交功能
- sharepoint - SharePoint Rest API 如何获取访问令牌?
- django - 我有一个关于 django rest auth 定制的问题