Skip to content

Commit 0d6db43

Browse files
committed
Skip debug message check when ACL_CONTEXT_CALLBACK_DEBUG is set
1 parent b30a134 commit 0d6db43

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/acl_kernel_test.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,6 +1443,12 @@ TEST(acl_kernel, enqueue_ndrange) {
14431443
MT_TEST(acl_kernel, test_local_work_group_size_debug_msg) {
14441444
ACL_LOCKED(acl_print_debug_msg("test local wg size debug msg\n"));
14451445

1446+
if (acl_getenv(ENV_ACL_CONTEXT_CALLBACK_DEBUG)) {
1447+
// Skip this test if ACL_CONTEXT_CALLBACK_DEBUG is set as it will
1448+
// disrupt printed messages.
1449+
return;
1450+
}
1451+
14461452
// Create buffer for debug msg
14471453
std::stringstream msg_buf;
14481454
std::streambuf *cout_ptr = std::cout.rdbuf(msg_buf.rdbuf());

0 commit comments

Comments
 (0)