Skip to content

Commit 1a3f9aa

Browse files
chenBrightyanglimingcn
authored andcommitted
Disable CondTest.too_many_bthreads_from_bthread in asan ut (apache#2940)
1 parent a457ce6 commit 1a3f9aa

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test/bthread_cond_unittest.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ TEST(CondTest, too_many_bthreads_from_pthread) {
449449
launch_many_bthreads();
450450
}
451451

452+
#ifndef BUTIL_USE_ASAN
452453
static void* run_launch_many_bthreads(void*) {
453454
launch_many_bthreads();
454455
return NULL;
@@ -460,4 +461,5 @@ TEST(CondTest, too_many_bthreads_from_bthread) {
460461
ASSERT_EQ(0, bthread_start_urgent(&th, NULL, run_launch_many_bthreads, NULL));
461462
bthread_join(th, NULL);
462463
}
464+
#endif // BUTIL_USE_ASAN
463465
} // namespace

0 commit comments

Comments
 (0)