Fix: 修改测试用例执行失败

Signed-off-by: xlei1030 <xionglei6@huawei.com>
This commit is contained in:
xlei1030 2022-03-07 09:35:47 +08:00
parent 10e66fffb6
commit 1fe680aeb7
2 changed files with 3 additions and 1 deletions

View File

@ -395,7 +395,9 @@ bool AppSpawnServer::ServerMain(char *longProcName, int64_t longProcNameLen)
kill(iter->first, SIGKILL);
appMap_.erase(iter);
}
#ifndef TEST_EXIT
quick_exit(0);
#endif
return false;
}

View File

@ -35,7 +35,7 @@ group("moduletest") {
config("appspawn_test_config") {
configs = []
defines = []
defines = ["TEST_EXIT"]
include_dirs = [
"${appspawn_path}/test/mock/include",