Remove new XML test cases added by e7192486d.
authorTom Lane <[email protected]>
Tue, 9 Jul 2024 20:31:15 +0000 (16:31 -0400)
committerTom Lane <[email protected]>
Tue, 9 Jul 2024 20:31:24 +0000 (16:31 -0400)
These turn out to produce libxml2-version-dependent error reports.
They aren't adding value that would justify dealing with that,
so just remove them again.  (I had in fact guessed wrong about
what versions matching xml_2.out would produce, but it doesn't
matter because there are other discrepancies.)

Per buildfarm.

Discussion: https://postgr.es/m/trinity-b0161630-d230-4598-9ebc-7a23acdb37cb-1720186432160@3c-app-gmx-bap25
Discussion: https://postgr.es/m/trinity-361ba18b-541a-4fe7-bc63-655ae3a7d599-1720259822452@3c-app-gmx-bs01

src/test/regress/expected/xml.out
src/test/regress/expected/xml_1.out
src/test/regress/expected/xml_2.out
src/test/regress/sql/xml.sql

index d6a51f9e38c06ebd364c244fa0ba91c1ceaf779a..93a79cda8fd4e7ad99fc3df31b1f70a8053ea9a2 100644 (file)
@@ -285,19 +285,6 @@ SELECT xmlparse(content '<nosuchprefix:tag/>');
  <nosuchprefix:tag/>
 (1 row)
 
-SELECT xmlparse(content '<unclosed>');
-ERROR:  invalid XML content
-DETAIL:  line 1: Premature end of data in tag unclosed line 1
-<unclosed>
-          ^
-SELECT xmlparse(content '<parent><child></parent></child>');
-ERROR:  invalid XML content
-DETAIL:  line 1: Opening and ending tag mismatch: child line 1 and parent
-<parent><child></parent></child>
-                        ^
-line 1: Opening and ending tag mismatch: parent line 1 and child
-<parent><child></parent></child>
-                                ^
 SELECT xmlparse(document '   ');
 ERROR:  invalid XML document
 DETAIL:  line 1: Start tag expected, '<' not found
@@ -356,19 +343,6 @@ SELECT xmlparse(document '<nosuchprefix:tag/>');
  <nosuchprefix:tag/>
 (1 row)
 
-SELECT xmlparse(document '<unclosed>');
-ERROR:  invalid XML document
-DETAIL:  line 1: Premature end of data in tag unclosed line 1
-<unclosed>
-          ^
-SELECT xmlparse(document '<parent><child></parent></child>');
-ERROR:  invalid XML document
-DETAIL:  line 1: Opening and ending tag mismatch: child line 1 and parent
-<parent><child></parent></child>
-                        ^
-line 1: Opening and ending tag mismatch: parent line 1 and child
-<parent><child></parent></child>
-                                ^
 SELECT xmlpi(name foo);
   xmlpi  
 ---------
index d3f2bdfc1412840302784fb454548a74e630a527..9323b84ae21d26aee2a6f98f8f0685d7022314bd 100644 (file)
@@ -180,12 +180,6 @@ DETAIL:  This functionality requires the server to be built with libxml support.
 SELECT xmlparse(content '<nosuchprefix:tag/>');
 ERROR:  unsupported XML feature
 DETAIL:  This functionality requires the server to be built with libxml support.
-SELECT xmlparse(content '<unclosed>');
-ERROR:  unsupported XML feature
-DETAIL:  This functionality requires the server to be built with libxml support.
-SELECT xmlparse(content '<parent><child></parent></child>');
-ERROR:  unsupported XML feature
-DETAIL:  This functionality requires the server to be built with libxml support.
 SELECT xmlparse(document '   ');
 ERROR:  unsupported XML feature
 DETAIL:  This functionality requires the server to be built with libxml support.
@@ -213,12 +207,6 @@ DETAIL:  This functionality requires the server to be built with libxml support.
 SELECT xmlparse(document '<nosuchprefix:tag/>');
 ERROR:  unsupported XML feature
 DETAIL:  This functionality requires the server to be built with libxml support.
-SELECT xmlparse(document '<unclosed>');
-ERROR:  unsupported XML feature
-DETAIL:  This functionality requires the server to be built with libxml support.
-SELECT xmlparse(document '<parent><child></parent></child>');
-ERROR:  unsupported XML feature
-DETAIL:  This functionality requires the server to be built with libxml support.
 SELECT xmlpi(name foo);
 ERROR:  unsupported XML feature
 DETAIL:  This functionality requires the server to be built with libxml support.
index 376b7bd015bd48b091be62263d49dd8d6d2185d1..f956322c69384d6f67fb61b89333c733f5c71349 100644 (file)
@@ -279,19 +279,6 @@ SELECT xmlparse(content '<nosuchprefix:tag/>');
  <nosuchprefix:tag/>
 (1 row)
 
-SELECT xmlparse(content '<unclosed>');
-ERROR:  invalid XML content
-DETAIL:  line 1: Premature end of data in tag unclosed line 1
-<unclosed>
-          ^
-SELECT xmlparse(content '<parent><child></parent></child>');
-ERROR:  invalid XML content
-DETAIL:  line 1: Opening and ending tag mismatch: child line 1 and parent
-<parent><child></parent></child>
-                        ^
-line 1: Opening and ending tag mismatch: parent line 1 and child
-<parent><child></parent></child>
-                                ^
 SELECT xmlparse(document '   ');
 ERROR:  invalid XML document
 DETAIL:  line 1: Start tag expected, '<' not found
@@ -342,19 +329,6 @@ SELECT xmlparse(document '<nosuchprefix:tag/>');
  <nosuchprefix:tag/>
 (1 row)
 
-SELECT xmlparse(document '<unclosed>');
-ERROR:  invalid XML document
-DETAIL:  line 1: Premature end of data in tag unclosed line 1
-<unclosed>
-          ^
-SELECT xmlparse(document '<parent><child></parent></child>');
-ERROR:  invalid XML document
-DETAIL:  line 1: Opening and ending tag mismatch: child line 1 and parent
-<parent><child></parent></child>
-                        ^
-line 1: Opening and ending tag mismatch: parent line 1 and child
-<parent><child></parent></child>
-                                ^
 SELECT xmlpi(name foo);
   xmlpi  
 ---------
index 15ccbe1d35db08ddb2aad866890b341f3400e04c..953bac09e45f9988b1c33489dc7085c9c387a99e 100644 (file)
@@ -77,8 +77,6 @@ SELECT xmlparse(content '<invalidns xmlns=''&lt;''/>');
 SELECT xmlparse(content '<relativens xmlns=''relative''/>');
 SELECT xmlparse(content '<twoerrors>&idontexist;</unbalanced>');
 SELECT xmlparse(content '<nosuchprefix:tag/>');
-SELECT xmlparse(content '<unclosed>');
-SELECT xmlparse(content '<parent><child></parent></child>');
 
 SELECT xmlparse(document '   ');
 SELECT xmlparse(document 'abc');
@@ -89,8 +87,6 @@ SELECT xmlparse(document '<invalidns xmlns=''&lt;''/>');
 SELECT xmlparse(document '<relativens xmlns=''relative''/>');
 SELECT xmlparse(document '<twoerrors>&idontexist;</unbalanced>');
 SELECT xmlparse(document '<nosuchprefix:tag/>');
-SELECT xmlparse(document '<unclosed>');
-SELECT xmlparse(document '<parent><child></parent></child>');
 
 
 SELECT xmlpi(name foo);