~ubuntu-branches/ubuntu/vivid/cctools/vivid

« back to all changes in this revision

Viewing changes to ftsh/test/recurse.ftsh

  • Committer: Bazaar Package Importer
  • Author(s): Michael Hanke
  • Date: 2011-05-07 09:05:00 UTC
  • Revision ID: james.westby@ubuntu.com-20110507090500-lqpmdtwndor6e7os
Tags: upstream-3.3.2
ImportĀ upstreamĀ versionĀ 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!../src/ftsh
 
2
 
 
3
#
 
4
# This script recurses on itself until the
 
5
# outermost time limit is reached, whereupon it
 
6
# will start to kill itself.
 
7
#
 
8
 
 
9
try
 
10
        try for 5 seconds
 
11
                #
 
12
                # Sleep a little bit so as not to create
 
13
                # thousands of sub-processes.
 
14
                #
 
15
                sleep 1
 
16
                ./recurse.ftsh
 
17
        end
 
18
        echo "Zoiks, it accidentally succeeded!"
 
19
catch
 
20
        echo "Script terminated, success!"
 
21
end
 
22
 
 
23