improve tests

This commit is contained in:
lixianjing 2023-09-18 17:50:22 +08:00
parent 7307db7481
commit 79a0a6a964
2 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,7 @@
2023/09/18
* 修复打包工具打包有特殊字符导名字的资源导致断言的问题(感谢智明提供补丁)
* 修复测试用例崩溃问题(感谢智明提供补丁)
* 修复gtest不过的问题(感谢智明提供补丁)
2023/09/15
* 修复 path\_basename\_ex 的对于混合斜杆不支持的问题(感谢智明提供补丁)

View File

@ -1,5 +1,6 @@
#include <stdlib.h>
#include "gtest/gtest.h"
#include "base/locale_info.h"
#include "base/image_manager.h"
#include "image_loader/image_loader_stb.h"
#include <string>
@ -73,7 +74,8 @@ TEST(ImageManager, locale) {
memset(&bmp, 0x00, sizeof(bmp));
image_manager_t* imm = image_manager_create();
assets_manager_t* am = assets_manager_create(0);
locale_info_change(locale_info(), "en", "US");
assets_manager_set_res_root(am, "tests/testdata");
image_manager_set_assets_manager(imm, am);