From 2719c54b32207b50fac2e979c86de95855132af6 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Tue, 29 Oct 2002 16:06:51 +0000 Subject: [PATCH] -Use skipif.inc -split into two tests -domxml001.phpt should work -domxml002.phpt contains the part that fails --- ext/domxml/tests/{001.phpt => domxml001.phpt} | 23 ++++-------------- ext/domxml/tests/domxml002.phpt | 24 +++++++++++++++++++ 2 files changed, 28 insertions(+), 19 deletions(-) rename ext/domxml/tests/{001.phpt => domxml001.phpt} (94%) create mode 100644 ext/domxml/tests/domxml002.phpt diff --git a/ext/domxml/tests/001.phpt b/ext/domxml/tests/domxml001.phpt similarity index 94% rename from ext/domxml/tests/001.phpt rename to ext/domxml/tests/domxml001.phpt index 917742ee9a..b4d27c796e 100644 --- a/ext/domxml/tests/001.phpt +++ b/ext/domxml/tests/domxml001.phpt @@ -1,9 +1,7 @@ --TEST-- Test 1: Accessing single node ---INI-- -report_memleaks=0 --SKIPIF-- - + --FILE-- children(); -print_node_list($children); +// children() of of document would result in a memleak +//$children = $dom->children(); +//print_node_list($children); echo "--------- root\n"; $rootnode = $dom->root(); @@ -98,20 +97,6 @@ print ("Not needed\n"); ?> --EXPECT-- Test 1: accessing single nodes from php -Node Name: -Node Type: 14 -Num Children: 1 -Node Content: - -Node Name: #comment -Node Type: 8 -Num Children: 0 -Node Content: lsfj - -Node Name: chapter -Node Type: 1 -Num Children: 4 - --------- root Node Name: chapter Node Type: 1 diff --git a/ext/domxml/tests/domxml002.phpt b/ext/domxml/tests/domxml002.phpt new file mode 100644 index 0000000000..183420eec5 --- /dev/null +++ b/ext/domxml/tests/domxml002.phpt @@ -0,0 +1,24 @@ +--TEST-- +Test 2: Memleak in accessing children() of document. +--INI-- +report_memleaks=0 +--SKIPIF-- + +--FILE-- +children(); +print_node_list($children); + +?> +--EXPECT-- +--------- root +Node Name: chapter +Node Type: 1 +Num Children: 4 \ No newline at end of file -- 2.50.1