From 3bb70fe2903acf2caf2600345f07943f34a3b23c Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Fri, 10 Jul 2015 03:46:57 +0300 Subject: [PATCH] Readded tests --- Zend/tests/jump15.phpt | 29 +++++++++++++++ Zend/tests/temporary_cleaning_001.phpt | 25 +++++++++++++ Zend/tests/temporary_cleaning_002.phpt | 32 +++++++++++++++++ Zend/tests/temporary_cleaning_003.phpt | 21 +++++++++++ Zend/tests/temporary_cleaning_004.phpt | 46 ++++++++++++++++++++++++ Zend/tests/temporary_cleaning_005.phpt | 50 ++++++++++++++++++++++++++ Zend/tests/temporary_cleaning_006.phpt | 18 ++++++++++ Zend/tests/temporary_cleaning_007.phpt | 22 ++++++++++++ 8 files changed, 243 insertions(+) create mode 100644 Zend/tests/jump15.phpt create mode 100644 Zend/tests/temporary_cleaning_001.phpt create mode 100644 Zend/tests/temporary_cleaning_002.phpt create mode 100644 Zend/tests/temporary_cleaning_003.phpt create mode 100644 Zend/tests/temporary_cleaning_004.phpt create mode 100644 Zend/tests/temporary_cleaning_005.phpt create mode 100644 Zend/tests/temporary_cleaning_006.phpt create mode 100644 Zend/tests/temporary_cleaning_007.phpt diff --git a/Zend/tests/jump15.phpt b/Zend/tests/jump15.phpt new file mode 100644 index 0000000000..456d27785d --- /dev/null +++ b/Zend/tests/jump15.phpt @@ -0,0 +1,29 @@ +--TEST-- +jump 15: goto from loop (forward) +--FILE-- + +--EXPECT-- +1: ok +2: ok +3: ok diff --git a/Zend/tests/temporary_cleaning_001.phpt b/Zend/tests/temporary_cleaning_001.phpt new file mode 100644 index 0000000000..40340bc3da --- /dev/null +++ b/Zend/tests/temporary_cleaning_001.phpt @@ -0,0 +1,25 @@ +--TEST-- +Temporary leak on exception +--XFAIL-- +See Bug #62210 and attempt to fix it in "tmp_livelibess" branch +--FILE-- + +==DONE== +--EXPECT-- +==DONE== diff --git a/Zend/tests/temporary_cleaning_002.phpt b/Zend/tests/temporary_cleaning_002.phpt new file mode 100644 index 0000000000..bea54e7f77 --- /dev/null +++ b/Zend/tests/temporary_cleaning_002.phpt @@ -0,0 +1,32 @@ +--TEST-- +Temporary leak on rope (encapsed string) +--FILE-- +x|"; +} catch (Exception $e) { +} + +try { + $r = "$x->x|$y|"; +} catch (Exception $e) { +} + +try { + $r = "$y|$y|$x->x"; +} catch (Exception $e) { +} + +?> +==DONE== +--EXPECT-- +==DONE== diff --git a/Zend/tests/temporary_cleaning_003.phpt b/Zend/tests/temporary_cleaning_003.phpt new file mode 100644 index 0000000000..0f7d9450eb --- /dev/null +++ b/Zend/tests/temporary_cleaning_003.phpt @@ -0,0 +1,21 @@ +--TEST-- +Fundamental memory leak test on temporaries +--XFAIL-- +See Bug #62210 and attempt to fix it in "tmp_livelibess" branch +--FILE-- + +==DONE== +--EXPECT-- +==DONE== diff --git a/Zend/tests/temporary_cleaning_004.phpt b/Zend/tests/temporary_cleaning_004.phpt new file mode 100644 index 0000000000..e2b093654f --- /dev/null +++ b/Zend/tests/temporary_cleaning_004.phpt @@ -0,0 +1,46 @@ +--TEST-- +Temporary leak with switch +--XFAIL-- +See Bug #62210 and attempt to fix it in "tmp_livelibess" branch +--FILE-- + +==DONE== +--EXPECT-- +==DONE== diff --git a/Zend/tests/temporary_cleaning_005.phpt b/Zend/tests/temporary_cleaning_005.phpt new file mode 100644 index 0000000000..f671c32543 --- /dev/null +++ b/Zend/tests/temporary_cleaning_005.phpt @@ -0,0 +1,50 @@ +--TEST-- +Temporary leak with foreach +--XFAIL-- +See Bug #62210 and attempt to fix it in "tmp_livelibess" branch +--FILE-- + +==DONE== +--EXPECT-- +==DONE== diff --git a/Zend/tests/temporary_cleaning_006.phpt b/Zend/tests/temporary_cleaning_006.phpt new file mode 100644 index 0000000000..758260d55a --- /dev/null +++ b/Zend/tests/temporary_cleaning_006.phpt @@ -0,0 +1,18 @@ +--TEST-- +Exception after separation during indirect write to fcall result +--FILE-- + +--EXPECT-- +Exception diff --git a/Zend/tests/temporary_cleaning_007.phpt b/Zend/tests/temporary_cleaning_007.phpt new file mode 100644 index 0000000000..0e29ed6c33 --- /dev/null +++ b/Zend/tests/temporary_cleaning_007.phpt @@ -0,0 +1,22 @@ +--TEST-- +Exception inside a foreach loop with return +--FILE-- +isConsistent()) { + return $controller; + } + } catch (\Exception $e) { + echo "Exception\n"; + } +} +?> +--EXPECT-- +Exception +Exception -- 2.50.1