Skip to content

test(coverage): skip subshell-tracking tests on macOS#693

Merged
Chemaclass merged 1 commit into
mainfrom
fix/coverage-subshell-skip-macos
Jun 3, 2026
Merged

test(coverage): skip subshell-tracking tests on macOS#693
Chemaclass merged 1 commit into
mainfrom
fix/coverage-subshell-skip-macos

Conversation

@Chemaclass
Copy link
Copy Markdown
Member

🤔 Background

coverage_subshell_test.sh failed when run on the macOS system Bash (3.2): the DEBUG-trap + set -T recorder does not propagate into subshells there, so it recorded 0 hits. The same tests pass on Linux for all supported Bash versions.

💡 Changes

  • Skip the subshell-tracking tests on Darwin* (matching the existing Git Bash skip)
  • Rename the guard to _skip_when_unsupported_context
  • No change to Linux/CI coverage — the tests still run and pass there

The DEBUG-trap + set -T recorder does not propagate into subshells on
the macOS system Bash (3.2), so these edge-case tests recorded 0 hits
and failed locally on macOS while passing on Linux for all supported
Bash. Skip them on Darwin (matching the existing Git Bash skip) and
rename the guard to _skip_when_unsupported_context.
@Chemaclass Chemaclass added the bug Something isn't working label Jun 3, 2026
@Chemaclass Chemaclass self-assigned this Jun 3, 2026
@Chemaclass Chemaclass merged commit d467b2f into main Jun 3, 2026
31 checks passed
@Chemaclass Chemaclass deleted the fix/coverage-subshell-skip-macos branch June 3, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant