Improve GetThreadStatus to avoid false alarm in some case.

This commit is contained in:
Yueh-Hsuan Chiang 2015-01-13 00:38:09 -08:00
parent c91cdd59c1
commit bf9aa4dfcd

View File

@ -9444,7 +9444,8 @@ TEST(DBTest, GetThreadStatus) {
} }
// Verify the total number of threades // Verify the total number of threades
ASSERT_EQ( ASSERT_EQ(
thread_list.size(), thread_type_counts[ThreadStatus::HIGH_PRIORITY] +
thread_type_counts[ThreadStatus::LOW_PRIORITY],
kHighPriCounts[test] + kLowPriCounts[test]); kHighPriCounts[test] + kLowPriCounts[test]);
// Verify the number of high-priority threads // Verify the number of high-priority threads
ASSERT_EQ( ASSERT_EQ(