def test_shutdown_signal_handling(windows_bash_session):
    """Test handling of shutdown signal during command execution."""
    # This would require mocking the shutdown_listener, which might be complex.
    # For now, we'll just verify that a long-running command can be executed
    # and that execute() returns properly.
    command = 'Start-Sleep -Seconds 1'
    action = CmdRunAction(command=command)
    result = windows_bash_session.execute(action)

    assert isinstance(result, CmdOutputObservation)
    assert result.exit_code == 0
Test handling of shutdown signal during command execution.
tests/unit/test_windows_bash.py