This is an automated email from the ASF dual-hosted git repository.
wwbmmm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-brpc.git
The following commit(s) were added to refs/heads/master by this push:
new 56dfc81b Reduce UT log output
56dfc81b is described below
commit 56dfc81b60f564975dcbd5285649a3b6d5c51576
Author: wwbmmm <[email protected]>
AuthorDate: Tue Oct 25 17:20:48 2022 +0800
Reduce UT log output
---
test/bthread_cond_bug_unittest.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/bthread_cond_bug_unittest.cpp
b/test/bthread_cond_bug_unittest.cpp
index 91b2b0fc..90881f56 100644
--- a/test/bthread_cond_bug_unittest.cpp
+++ b/test/bthread_cond_bug_unittest.cpp
@@ -72,7 +72,7 @@ void* produce_func(void* arg) {
int64_t idx = (int64_t)(arg);
int32_t i = 0;
while (!bthread_stopped(bthread_self())) {
- LOG(INFO) << "come to a new round " << idx << "round[" << i << "]";
+ //LOG(INFO) << "come to a new round " << idx << "round[" << i << "]";
{
Lock lock(g_mutex);
while (g_que.size() >= g_capacity &&
!bthread_stopped(bthread_self())) {
@@ -88,7 +88,7 @@ void* produce_func(void* arg) {
}
}
g_que.push_back(++i);
- LOG(INFO) << "push back " << idx << " data[" << i << "]";
+ //LOG(INFO) << "push back " << idx << " data[" << i << "]";
}
usleep(rand() % 20 + 5);
g_stat[idx].loop_count.fetch_add(1);
@@ -138,4 +138,4 @@ TEST(BthreadCondBugTest, test_bug) {
}
ASSERT_EQ(ret, 1);
-}
\ No newline at end of file
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]