1 Star 0 Fork 0

aosp-riscv/platform-external-minijail

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
testrunner.cc 704 Bytes
一键复制 编辑 原始数据 按行查看 历史
/* Copyright 2017 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* Main entrypoint for gtest.
* Redirects logging to stderr to avoid syslog logspam.
*/
#include <stdio.h>
#include <gtest/gtest.h>
#include "util.h"
namespace {
class Environment : public ::testing::Environment {
public:
~Environment() override = default;
void SetUp() override {
init_logging(LOG_TO_FD, STDERR_FILENO, LOG_INFO);
}
};
} // namespace
int main(int argc, char **argv) {
testing::InitGoogleTest(&argc, argv);
::testing::AddGlobalTestEnvironment(new Environment());
return RUN_ALL_TESTS();
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/aosp-riscv/platform-external-minijail.git
git@gitee.com:aosp-riscv/platform-external-minijail.git
aosp-riscv
platform-external-minijail
platform-external-minijail
riscv64-android-12.0.0_dev

搜索帮助