blob: de81c6c4e1c65cc0bd4c61938d41cbef6ae4d09d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# file : tests/builtin/timeout.testscript
# license : MIT; see accompanying LICENSE file
: async-builtin
:
{
: expired
:
$* -s 3 'cat' <'test' | $* -t 1 'cat' >=f 2>'timeout expired' != 0
: not-expired
:
echo 'test' | $* -t 10000 'cat' >!
}
: pseudo-builtin
:
{
: expired
:
$* -s 3 'cat' <'test' | $* -t 1 'roundtrip' >=f 2>'timeout expired' != 0
: not-expired
:
echo 'test' | $* -t 10000 'roundtrip' >!
}
: sync-builtin
:
$* -t 1 'mkdir' d &d/
|