diff options
author | kn <kn@cvs.openbsd.org> | 2018-04-24 10:27:26 +0000 |
---|---|---|
committer | kn <kn@cvs.openbsd.org> | 2018-04-24 10:27:26 +0000 |
commit | 8705a767e0f97099be54e498e89d9161fa3388f0 (patch) | |
tree | f185646c9a50c4b539e570c56b15a4022f2d2316 /regress/bin | |
parent | ed7b7d6d5cd325c625b76e35bf3df6f92a547719 (diff) |
Add test for proper stack reallocation in time command
OK jca
Diffstat (limited to 'regress/bin')
-rw-r--r-- | regress/bin/ksh/regress.t | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/regress/bin/ksh/regress.t b/regress/bin/ksh/regress.t index b2d51eb3c57..31e36399b4f 100644 --- a/regress/bin/ksh/regress.t +++ b/regress/bin/ksh/regress.t @@ -1,4 +1,4 @@ -# $OpenBSD: regress.t,v 1.3 2016/09/27 15:35:34 bluhm Exp $ +# $OpenBSD: regress.t,v 1.4 2018/04/24 10:27:25 kn Exp $ # # The first 39 of these tests are from the old Bugs script. @@ -1110,3 +1110,14 @@ expected-stdout: expected-stderr-pattern: /^YYXXY$/m --- + +name: regression-64 +description: + Check whether time keeps the pipeline's stack intact. +stdin: + time for i in _ ; do echo body ; done +expected-stdout: + body +expected-stderr-pattern: + !/^\s*0\.0[\s\d]+real|^\s*real[\s]+0+\.0/ +--- |