Sha256: 74cc70976ea291d8f77b46cb09649c18a28af74b31c184e369a9192e0669fe60
Contents?: true
Size: 1.21 KB
Versions: 1
Compression:
Stored size: 1.21 KB
Contents
Feature: Restarting Scenario Outline: Restarting and terminating Given I have invoked restartable with `<code>` When I have waited for 1 second Then I should see "^C to restart, double ^C to stop" in stderr And I should see "Hello world!" in stdout And there should be an inner process When I interrupt restartable Then I should see "Killing children…" and "Waiting ^C 0.5 second than restart…" in stderr And inner process should terminate When I have waited for 1 second Then I should see "^C to restart, double ^C to stop" in stderr And I should see "Hello world!" in stdout And there should be inner process When I interrupt restartable twice Then I should see "Killing children…" and "Don't restart!" in last 3 lines of stderr And inner process should terminate And restartable should finish Examples: | code | | $stdout.puts "Hello world!" | | $stdout.puts "Hello world!"; sleep 30 | | exec 'echo "Hello world!"; sleep 30' | | system 'echo "Hello world!"; sleep 30' | | fork{ $stdout.puts "Hello world!"; sleep 30 } | | fork{ fork{ fork{ $stdout.puts "Hello world!"; sleep 30 } } } |
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
restartable-0.2.0 | features/restarting.feature |