未验证 提交 4d553cfe 编写于 作者: C chunhtai 提交者: GitHub

fix fml_unittes is not run during presubmit (#13395)

上级 df89ec15
......@@ -192,17 +192,19 @@ TEST(MessageLoopTaskQueue, ConcurrentQueueAndTaskCreatingCounts) {
auto creation_func = [&] {
for (int i = 0; i < num_queues; i++) {
fml::TaskQueueId queue_id = task_queues->CreateTaskQueue();
created[queue_id - base_queue_id] = true;
int limit = queue_id - base_queue_id;
created[limit] = true;
for (int cur_q = 1; cur_q < i; cur_q++) {
if (created[cur_q - base_queue_id]) {
std::scoped_lock counter(task_count_mutex[cur_q - base_queue_id]);
for (int cur_q = 1; cur_q < limit; cur_q++) {
if (created[cur_q]) {
std::scoped_lock counter(task_count_mutex[cur_q]);
int cur_num_tasks = rand() % 10;
for (int k = 0; k < cur_num_tasks; k++) {
task_queues->RegisterTask(
fml::TaskQueueId(cur_q), [] {}, fml::TimePoint::Now());
fml::TaskQueueId(base_queue_id + cur_q), [] {},
fml::TimePoint::Now());
}
num_tasks[cur_q - base_queue_id] += cur_num_tasks;
num_tasks[cur_q] += cur_num_tasks;
}
}
}
......
......@@ -21,7 +21,7 @@ fonts_dir = os.path.join(buildroot_dir, 'flutter', 'third_party', 'txt', 'third_
roboto_font_path = os.path.join(fonts_dir, 'Roboto-Regular.ttf')
dart_tests_dir = os.path.join(buildroot_dir, 'flutter', 'testing', 'dart',)
time_sensitve_test_flag = '--gtest_filter="-*TimeSensitiveTest*"'
time_sensitve_test_flag = '--gtest_filter=-*TimeSensitiveTest*'
def IsMac():
return sys.platform == 'darwin'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册