diff options
author | Ian Chard <ian@mysociety.org> | 2014-01-14 10:12:29 +0000 |
---|---|---|
committer | Ian Chard <ian@mysociety.org> | 2014-01-14 10:12:29 +0000 |
commit | 96ec5176baace46dd0c5cc6b3e9e080d52297674 (patch) | |
tree | 5ab37769a70d1eb7a56f7d33cbbb7d26df96f38e /spec/lib/external_command_scripts | |
parent | 3f33ccf5cf9dc1c9735cb4830198ccf1e6242e3b (diff) |
Tests for abnormal exit detection
Diffstat (limited to 'spec/lib/external_command_scripts')
-rwxr-xr-x | spec/lib/external_command_scripts/error.sh | 4 | ||||
-rwxr-xr-x | spec/lib/external_command_scripts/segfault.sh | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/spec/lib/external_command_scripts/error.sh b/spec/lib/external_command_scripts/error.sh new file mode 100755 index 000000000..65e74b3c6 --- /dev/null +++ b/spec/lib/external_command_scripts/error.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +echo "this is my error message" >&1 +exit 1 diff --git a/spec/lib/external_command_scripts/segfault.sh b/spec/lib/external_command_scripts/segfault.sh new file mode 100755 index 000000000..f96ba5be8 --- /dev/null +++ b/spec/lib/external_command_scripts/segfault.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +kill -11 $$ |