diff options
author | 2018-04-24 10:27:25 +0000 | |
---|---|---|
committer | 2018-04-24 10:27:25 +0000 | |
commit | 20fd2a3800ee1be3f1962ec2c14df164294a54ea (patch) | |
tree | 1fe3b4a81247db9bccad404879c965c49f6fdacb | |
parent | Keep the time pipeline's stack in tact (diff) | |
download | wireguard-openbsd-20fd2a3800ee1be3f1962ec2c14df164294a54ea.tar.xz wireguard-openbsd-20fd2a3800ee1be3f1962ec2c14df164294a54ea.zip |
Add test for proper stack reallocation in time command
OK jca
-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/ +--- |