mirror of
https://github.com/tmux/tmux.git
synced 2026-10-12 13:44:44 +00:00
Turn on ASAN for macOS regress.
This commit is contained in:
2
.github/workflows/regress.yml
vendored
2
.github/workflows/regress.yml
vendored
@@ -33,7 +33,7 @@ jobs:
|
|||||||
- name: macos-26-arm64
|
- name: macos-26-arm64
|
||||||
runner: macos-26
|
runner: macos-26
|
||||||
make: gmake
|
make: gmake
|
||||||
configure: --enable-utf8proc
|
configure: --enable-utf8proc --enable-asan
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
|
|||||||
@@ -14,8 +14,7 @@ all:
|
|||||||
rm -f "$$log"; \
|
rm -f "$$log"; \
|
||||||
printf '%-40s ' "$$test"; \
|
printf '%-40s ' "$$test"; \
|
||||||
start=$$(date +%s); \
|
start=$$(date +%s); \
|
||||||
ASAN_OPTIONS="abort_on_error=1:detect_leaks=0:$$ASAN_OPTIONS"; \
|
env -i LC_CTYPE=C.UTF-8 MallocNanoZone=0 \
|
||||||
env -i LC_CTYPE=C.UTF-8 ASAN_OPTIONS="$$ASAN_OPTIONS" \
|
|
||||||
sh -x "$$test" >"$$log" 2>&1; \
|
sh -x "$$test" >"$$log" 2>&1; \
|
||||||
if [ $$? -eq 0 ]; then \
|
if [ $$? -eq 0 ]; then \
|
||||||
end=$$(date +%s); \
|
end=$$(date +%s); \
|
||||||
|
|||||||
@@ -296,7 +296,7 @@ sleep 1
|
|||||||
# write end of a FIFO open, so client_* variables have a client to read.
|
# write end of a FIFO open, so client_* variables have a client to read.
|
||||||
rm -f "$FIFO"
|
rm -f "$FIFO"
|
||||||
mkfifo "$FIFO" || exit 1
|
mkfifo "$FIFO" || exit 1
|
||||||
sleep 30 >"$FIFO" &
|
while :; do sleep 1; done >"$FIFO" &
|
||||||
HOLD=$!
|
HOLD=$!
|
||||||
$TMUX -C attach -t cov <"$FIFO" >/dev/null 2>&1 &
|
$TMUX -C attach -t cov <"$FIFO" >/dev/null 2>&1 &
|
||||||
CC=$!
|
CC=$!
|
||||||
|
|||||||
Reference in New Issue
Block a user