提交 e2b17134 编写于 作者: Y yejianwu

fix tuner_test

上级 871e3392
...@@ -64,7 +64,7 @@ cc_test( ...@@ -64,7 +64,7 @@ cc_test(
"tuner_test.cc", "tuner_test.cc",
], ],
copts = ["-Werror", "-Wextra", "-Wno-missing-field-initializers"], copts = ["-Werror", "-Wextra", "-Wno-missing-field-initializers"],
linkopts = if_android([ linkopts = ["-ldl"] + if_android([
"-pie", "-pie",
"-lm", # Required by unordered_map "-lm", # Required by unordered_map
]), ]),
......
...@@ -33,6 +33,8 @@ TEST_F(TunerTest, SimpleRun) { ...@@ -33,6 +33,8 @@ TEST_F(TunerTest, SimpleRun) {
int expect = 1; int expect = 1;
auto TunerFunc = [&](const std::vector<unsigned int> &params, Timer *timer, auto TunerFunc = [&](const std::vector<unsigned int> &params, Timer *timer,
std::vector<uint32_t> *tuning_result) -> int { std::vector<uint32_t> *tuning_result) -> int {
(void)(timer);
(void)(tuning_result);
if (params.front() == 1) { if (params.front() == 1) {
return expect; return expect;
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册