Skip to content

Commit 62a8dfb

Browse files
committed
14
1 parent 65dfa7b commit 62a8dfb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/macos.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ jobs:
5151
- name: Test
5252
working-directory: build
5353
run: |
54-
mkdir -p bin
55-
printf 'race:Catch::RunContext\nrace:Catch::Detail\nrace:__sanitizer::IsAccessibleMemoryRange\n' > bin/tsan_suppressions.txt
56-
# 用绝对路径:ctest 运行测试时的工作目录是 build/bin,相对路径会被叠加成 build/bin/bin/... 而读不到
57-
export TSAN_OPTIONS="suppressions=$(pwd)/bin/tsan_suppressions.txt second_deadlock_stack=1 history_size=7"
54+
# 诊断模式: 暂时不加 suppressions,让 4 个竞争完整显形。
55+
# halt_on_error=1 一发现竞争即非零退出; verbosity=1 + second_deadlock_stack=1 打全栈。
56+
# 看清竞争来源(栈顶在 Catch:: 还是 taskflowlite/core/...)后,再决定 suppress 还是改源码
57+
export TSAN_OPTIONS="halt_on_error=1 history_size=7 second_deadlock_stack=1 verbosity=1"
5858
ctest --output-on-failure -LE perfile
5959
6060
# Release

0 commit comments

Comments
 (0)