<commit_before>*** Settings ***
Test Setup        Run Keywords
...               Check Precondition    os.sep == "/" and sys.version_info >= (2,6)
...               AND    Remove File    ${TEMPFILE}
Suite Teardown    Terminate All Processes
Resource          resource.txt

*** Test Cases ***
Sending INT signal
    Killer signal    INT

Sending SIGINT signal
    Killer signal    SIGINT

Sending INT signal as a text number
    Killer signal    2

Sending INT signal as a number
    Killer signal    ${2}

Send other well-known signals
    :FOR    ${signal}    IN    TERM    SIGTERM    15    KILL    SIGKILL    ${9}
    \    Killer signal    ${signal}

By default signal is not sent to process running in shell
    Start Countdown    shell=yes
    Send Signal To Process    TERM
    Countdown should not have stopped

By default signal is sent only to parent process
    Start Countdown    children=3
    Send Signal To Process    SIGTERM
    Countdown should not have stopped

Signal can be sent to process running in shell
    Killer signal    TERM    shell=True    group=yes

Signal can be sent to child processes
    Killer signal    TERM    children=3    group=${True}

Sending an unknown signal
    [Documentation]    FAIL Unsupported signal 'unknown'.
    Start Python Process    1+1
    Send Signal To Process    unknown

Sending signal to a process with a handle
    ${index} =    Start Countdown
    Start Countdown    alias=alias
    Send Signal To Process    INT    handle=${index}
    Send Signal To Process    INT    alias
    Countdown Should Have Stopped    ${index}
    Countdown Should Have Stopped    alias
<commit_msg>trying to make test pass on ci. cannot reproduce failure on my machine.<commit_after>*** Settings ***
Test Setup        Run Keywords
...               Check Precondition    os.sep == "/" and sys.version_info >= (2,6)
...               AND    Remove File    ${TEMPFILE}
Suite Teardown    Terminate All Processes
Resource          resource.txt

*** Test Cases ***
Sending INT signal
    Killer signal    INT

Sending SIGINT signal
    Killer signal    SIGINT

Sending INT signal as a text number
    Killer signal    2

Sending INT signal as a number
    Killer signal    ${2}

Send other well-known signals
    :FOR    ${signal}    IN    TERM    SIGTERM    15    KILL    SIGKILL    ${9}
    \    Killer signal    ${signal}

By default signal is not sent to process running in shell
    Start Countdown    shell=yes
    Send Signal To Process    TERM
    Countdown should not have stopped

By default signal is sent only to parent process
    Start Countdown    children=3
    Send Signal To Process    SIGTERM
    Countdown should not have stopped

Signal can be sent to process running in shell
    Killer signal    TERM    shell=True    group=yes

Signal can be sent to child processes
    Killer signal    TERM    children=3    group=${True}

Sending an unknown signal
    [Documentation]    FAIL Unsupported signal 'unknown'.
    Start Python Process    1+1
    Send Signal To Process    unknown

Sending signal to a process with a handle
    ${index} =    Start Countdown
    Start Countdown    alias=alias
    Send Signal To Process    INT    group=yes    handle=${index}
    Send Signal To Process    INT    alias    group
    Countdown Should Have Stopped    ${index}
    Countdown Should Have Stopped    alias

{'fraction_non_alphanumeric': 0.04797377830750894, 'fraction_numerical': 0.006555423122765197, 'mean_word_length': 2.380664652567976, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3832780', 'n_tokens_mistral': 911, 'n_tokens_neox': 888, 'n_words': 411}