Re: com php-src: test timeout with exception: tests/basic/timeout_variation_5.phpt
| From: | Nikita Popov | Date: | Mon, 16 Mar 2015 20:10:32 +0000 |
| Subject: | Re: com php-src: test timeout with exception: tests/basic/timeout_variation_5.phpt | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-85544@lists.php.net to get a copy of this message | ||
On Mon, Mar 16, 2015 at 7:21 PM, Anatol Belski <ab@php.net> wrote:
> Commit: 1c0fce922ec5549bc127ad1238036e5d084f096c
> Author: Anatol Belski <ab@php.net> Mon, 16 Mar 2015 19:21:58
> +0100
> Parents: 8f1fa842cd7248e9b4faf8a9f426d9a83b3c468e
> Branches: master
>
> Link:
>
> http://git.php.net/?p=php-src.git;a=commitdiff;h=1c0fce922ec5549bc127ad1238036e5d084f096c
>
> Log:
> test timeout with exception
>
Could you please skip these tests if SKIP_SLOW_TESTS is set?
Nikita
>
> Changed paths:
> A tests/basic/timeout_variation_5.phpt
>
>
> Diff:
> diff --git a/tests/basic/timeout_variation_5.phpt
> b/tests/basic/timeout_variation_5.phpt
> new file mode 100644
> index 0000000..e4ccfff
> --- /dev/null
> +++ b/tests/basic/timeout_variation_5.phpt
> @@ -0,0 +1,20 @@
> +--TEST--
> +Timeout within function containing exteption
> +--FILE--
> +<?php
> +
> +$t = 3;
> +set_time_limit($t);
> +
> +function f($t) {
> + echo "call";
> + sleep($t*2);
> + throw new Exception("never reached here");
> +}
> +
> +f($t);
> +?>
> +never reached here
> +--EXPECTF--
> +call
> +Fatal error: Maximum execution time of 3 seconds exceeded in %s on line %d
>
>
> --
> PHP CVS Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>