Files
fish-shell/tests/pexpects/eval-stack-overflow.py
Daniel Rainer 64e3b419b6 ci: disable pexpect and tmux tests in sanitizer jobs
These tests are unreliable in CI when running with address sanitiation
enabled, resulting in intermittent CI failures.
Disable them to get rid of the many false positives to reduce annoyance
and to avoid desensitization regarding failures of the asan CI job.

Suggested in
https://github.com/fish-shell/fish-shell/pull/12132#issuecomment-3605639954

Closes #12142
Closes #12132
Closes #12126
2025-12-10 16:15:41 +01:00

35 lines
797 B
Python

#!/usr/bin/env python3
from pexpect_helper import SpawnedProc
import re
import sys
sp = SpawnedProc()
send, sendline, sleep, expect_prompt, expect_re, expect_str = (
sp.send,
sp.sendline,
sp.sleep,
sp.expect_prompt,
sp.expect_re,
sp.expect_str,
)
expect_prompt()
sendline("echo cat dog")
expect_prompt("cat dog")
sendline("eval (string replace dog tiger -- $history[1])")
expect_prompt("cat tiger")
sendline("eval (string replace dog tiger -- $history[1])")
expect_re(
"fish: The call stack limit has been exceeded.*"
+ "\r\nin command substitution"
+ "\r\nfish: Unable to evaluate string substitution"
+ re.escape("\r\neval (string replace dog tiger -- $history[1])")
+ "\r\n *\\^~+\\^\\w*"
)
expect_prompt()
sendline("\x04") # <c-d>
sys.exit(0)