<commit_before>Feature: Interrupting a program

  Scenario: Interrupting a program
    Given a file named "interrupt_me.rb" with:
      """
      require 'gir_ffi'

      loop = GLib::MainLoop.new nil, false
      puts 'doing'
      loop.run
      puts 'done'
      """
    When I wait 2 seconds for a command to start up 
    And I run `ruby interrupt_me.rb` in background
    And I send the signal "INT" to the command started last
    Then the output should contain "doing"
    And the exit status should be 2
    And the output should not contain "done"<commit_msg>Update feature for Rubinius<commit_after>Feature: Interrupting a program

  Scenario: Interrupting a program
    Given a file named "interrupt_me.rb" with:
      """
      require 'gir_ffi'

      loop = GLib::MainLoop.new nil, false
      puts 'doing'
      loop.run
      puts 'done'
      """
    When I wait 4 seconds for a command to start up
    And I run `ruby interrupt_me.rb` in background
    And I send the signal "INT" to the command started last
    Then the output should contain "doing"
    And the exit status should not be 0
    And the output should not contain "done"
{'fraction_non_alphanumeric': 0.06233766233766234, 'fraction_numerical': 0.003463203463203463, 'mean_word_length': 2.6815286624203822, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4409266', 'n_tokens_mistral': 342, 'n_tokens_neox': 326, 'n_words': 151}