mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-21 22:50:08 +03:00
Enable error tests with entity substitution
This commit is contained in:
parent
eddfbc38fa
commit
f20daa9e51
20
result/errors/754946.xml.ent
Normal file
20
result/errors/754946.xml.ent
Normal file
@ -0,0 +1,20 @@
|
||||
./test/errors/754946.xml:3: parser error : internal error: xmlParseInternalSubset: error detected in Markup declaration
|
||||
|
||||
%SYSTEM;
|
||||
^
|
||||
Entity: line 1:
|
||||
A<lbbbbbbbbbbbbbbbbbbb_
|
||||
^
|
||||
./test/errors/754946.xml:4: parser error : internal error: xmlParseInternalSubset: error detected in Markup declaration
|
||||
|
||||
<![
|
||||
^
|
||||
./test/errors/754946.xml:4: parser error : DOCTYPE improperly terminated
|
||||
<![
|
||||
^
|
||||
./test/errors/754946.xml:4: parser error : StartTag: invalid element name
|
||||
<![
|
||||
^
|
||||
./test/errors/754946.xml:4: parser error : Extra content at the end of the document
|
||||
<![
|
||||
^
|
7
result/errors/754947.xml.ent
Normal file
7
result/errors/754947.xml.ent
Normal file
@ -0,0 +1,7 @@
|
||||
./test/errors/754947.xml:1: parser error : Input is not proper UTF-8, indicate encoding !
|
||||
Bytes: 0xEE 0x5D 0x5D 0x3E
|
||||
<d><![CDATA[0000000000000î]]>
|
||||
^
|
||||
./test/errors/754947.xml:1: parser error : EndTag: '</' not found
|
||||
<d><![CDATA[0000000000000î]]>
|
||||
^
|
9
result/errors/758588.xml.ent
Normal file
9
result/errors/758588.xml.ent
Normal file
File diff suppressed because one or more lines are too long
6
result/errors/759020.xml.ent
Normal file
6
result/errors/759020.xml.ent
Normal file
@ -0,0 +1,6 @@
|
||||
./test/errors/759020.xml:3: namespace warning : xmlns: URI 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 is not absolute
|
||||
0000000000000000000000000000000000000000000000000000000000000000000000000000000'
|
||||
^
|
||||
./test/errors/759020.xml:46: parser error : Couldn't find end of Start Tag s00 line 2
|
||||
|
||||
^
|
12
result/errors/759398.xml.ent
Normal file
12
result/errors/759398.xml.ent
Normal file
@ -0,0 +1,12 @@
|
||||
./test/errors/759398.xml:210: parser error : StartTag: invalid element name
|
||||
need to worry about parsers whi<! don't expand PErefs finding
|
||||
^
|
||||
./test/errors/759398.xml:309: parser error : Opening and ending tag mismatch: №№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№№m line 205 and termdef
|
||||
and provide access to their content and structure.</termdef> <termdef
|
||||
^
|
||||
./test/errors/759398.xml:314: parser error : Opening and ending tag mismatch: spec line 205 and p
|
||||
data and the information it must provide to the application.</p>
|
||||
^
|
||||
./test/errors/759398.xml:316: parser error : Extra content at the end of the document
|
||||
<div2 id='sec-origin-goals'>
|
||||
^
|
35
result/errors/759573-2.xml.ent
Normal file
35
result/errors/759573-2.xml.ent
Normal file
@ -0,0 +1,35 @@
|
||||
Entity: line 1: parser error : Space required after '<!ENTITY'
|
||||
%zz;
|
||||
^
|
||||
Entity: line 1:
|
||||
<!ENTITY<?xDOCTYPEm~?>
|
||||
^
|
||||
Entity: line 1: parser error : xmlParseEntityDecl: no name
|
||||
%zz;
|
||||
^
|
||||
Entity: line 1:
|
||||
<!ENTITY<?xDOCTYPEm~?>
|
||||
^
|
||||
Entity: line 1: parser error : ParsePI: PI xDOCTYPEm space expected
|
||||
%zz;
|
||||
^
|
||||
Entity: line 1:
|
||||
<!ENTITY<?xDOCTYPEm~?>
|
||||
^
|
||||
./test/errors/759573-2.xml:6: parser error : internal error: xmlParseInternalSubset: error detected in Markup declaration
|
||||
|
||||
%xx;ÿggKENSMYNT#MENTDŴzz;'>
|
||||
^
|
||||
Entity: line 2:
|
||||
<![INCLUDE[
|
||||
^
|
||||
./test/errors/759573-2.xml:6: parser error : internal error: xmlParseInternalSubset: error detected in Markup declaration
|
||||
|
||||
%xx;ÿggKENSMYNT#MENTDŴzz;'>
|
||||
^
|
||||
./test/errors/759573-2.xml:6: parser error : DOCTYPE improperly terminated
|
||||
%xx;ÿggKENSMYNT#MENTDŴzz;'>
|
||||
^
|
||||
./test/errors/759573-2.xml:6: parser error : Start tag expected, '<' not found
|
||||
%xx;ÿggKENSMYNT#MENTDŴzz;'>
|
||||
^
|
32
result/errors/759573.xml.ent
Normal file
32
result/errors/759573.xml.ent
Normal file
@ -0,0 +1,32 @@
|
||||
./test/errors/759573.xml:1: parser error : Space required after '<!ENTITY'
|
||||
ELEMENT t (A)><!ENTITY % xx '%<![INCLUDE[000%ஸ000%z;'><!ENTITY
|
||||
^
|
||||
./test/errors/759573.xml:1: parser error : Space required after the entity name
|
||||
LEMENT t (A)><!ENTITY % xx '%<![INCLUDE[000%ஸ000%z;'><!ENTITYz
|
||||
^
|
||||
./test/errors/759573.xml:1: parser error : Entity value required
|
||||
LEMENT t (A)><!ENTITY % xx '%<![INCLUDE[000%ஸ000%z;'><!ENTITYz
|
||||
^
|
||||
./test/errors/759573.xml:1: parser error : PEReference: no name
|
||||
T t (A)><!ENTITY % xx '%<![INCLUDE[000%ஸ000%z;'><!ENTITYz>%xx;
|
||||
^
|
||||
Entity: line 1:
|
||||
%<![INCLUDE[000%ஸ000%z;
|
||||
^
|
||||
./test/errors/759573.xml:1: parser error : internal error: xmlParseInternalSubset: error detected in Markup declaration
|
||||
|
||||
T t (A)><!ENTITY % xx '%<![INCLUDE[000%ஸ000%z;'><!ENTITYz>%xx;
|
||||
^
|
||||
Entity: line 1:
|
||||
%<![INCLUDE[000%ஸ000%z;
|
||||
^
|
||||
./test/errors/759573.xml:1: parser error : internal error: xmlParseInternalSubset: error detected in Markup declaration
|
||||
|
||||
T t (A)><!ENTITY % xx '%<![INCLUDE[000%ஸ000%z;'><!ENTITYz>%xx;
|
||||
^
|
||||
./test/errors/759573.xml:1: parser error : DOCTYPE improperly terminated
|
||||
T t (A)><!ENTITY % xx '%<![INCLUDE[000%ஸ000%z;'><!ENTITYz>%xx;
|
||||
^
|
||||
./test/errors/759573.xml:1: parser error : Start tag expected, '<' not found
|
||||
T t (A)><!ENTITY % xx '%<![INCLUDE[000%ஸ000%z;'><!ENTITYz>%xx;
|
||||
^
|
6
result/errors/759579.xml.ent
Normal file
6
result/errors/759579.xml.ent
Normal file
@ -0,0 +1,6 @@
|
||||
Entity: line 2: parser error : Detected an entity reference loop
|
||||
%z; %z; %z; %z; %z;
|
||||
^
|
||||
Entity: line 2:
|
||||
%z; %z; %z; %z; %z;
|
||||
^
|
9
result/errors/attr1.xml.ent
Normal file
9
result/errors/attr1.xml.ent
Normal file
@ -0,0 +1,9 @@
|
||||
./test/errors/attr1.xml:2: parser error : AttValue: ' expected
|
||||
|
||||
^
|
||||
./test/errors/attr1.xml:2: parser error : attributes construct error
|
||||
|
||||
^
|
||||
./test/errors/attr1.xml:2: parser error : Couldn't find end of Start Tag foo line 1
|
||||
|
||||
^
|
9
result/errors/attr2.xml.ent
Normal file
9
result/errors/attr2.xml.ent
Normal file
@ -0,0 +1,9 @@
|
||||
./test/errors/attr2.xml:2: parser error : AttValue: ' expected
|
||||
|
||||
^
|
||||
./test/errors/attr2.xml:2: parser error : attributes construct error
|
||||
|
||||
^
|
||||
./test/errors/attr2.xml:2: parser error : Couldn't find end of Start Tag foo line 1
|
||||
|
||||
^
|
3
result/errors/attr3.xml.ent
Normal file
3
result/errors/attr3.xml.ent
Normal file
@ -0,0 +1,3 @@
|
||||
./test/errors/attr3.xml:4: validity warning : Attribute a1 of element doc: already defined
|
||||
<!ATTLIST doc a1 CDATA "z1">
|
||||
^
|
12
result/errors/attr4.xml.ent
Normal file
12
result/errors/attr4.xml.ent
Normal file
@ -0,0 +1,12 @@
|
||||
./test/errors/attr4.xml:1: parser error : invalid character in attribute value
|
||||
<ROOT attr="XY"/>
|
||||
^
|
||||
./test/errors/attr4.xml:1: parser error : attributes construct error
|
||||
<ROOT attr="XY"/>
|
||||
^
|
||||
./test/errors/attr4.xml:1: parser error : Couldn't find end of Start Tag ROOT line 1
|
||||
<ROOT attr="XY"/>
|
||||
^
|
||||
./test/errors/attr4.xml:1: parser error : Extra content at the end of the document
|
||||
<ROOT attr="XY"/>
|
||||
^
|
4
result/errors/cdata.xml.ent
Normal file
4
result/errors/cdata.xml.ent
Normal file
@ -0,0 +1,4 @@
|
||||
./test/errors/cdata.xml:2: parser error : Input is not proper UTF-8, indicate encoding !
|
||||
Bytes: 0xE1 0x72 0x5D 0x5D
|
||||
<A><![CDATA[Cár]]></A>
|
||||
^
|
3
result/errors/charref1.xml.ent
Normal file
3
result/errors/charref1.xml.ent
Normal file
@ -0,0 +1,3 @@
|
||||
./test/errors/charref1.xml:1: parser error : xmlParseCharRef: character reference out of bounds
|
||||
<bla>�</bla>
|
||||
^
|
6
result/errors/comment1.xml.ent
Normal file
6
result/errors/comment1.xml.ent
Normal file
@ -0,0 +1,6 @@
|
||||
./test/errors/comment1.xml:5: parser error : xmlParseComment: invalid xmlChar value 14
|
||||
in p02: -->
|
||||
^
|
||||
./test/errors/comment1.xml:5: parser error : Start tag expected, '<' not found
|
||||
in p02: -->
|
||||
^
|
16
result/errors/content1.xml.ent
Normal file
16
result/errors/content1.xml.ent
Normal file
@ -0,0 +1,16 @@
|
||||
./test/errors/content1.xml:7: parser error : ContentDecl : ',' '|' or ')' expected
|
||||
<!ELEMENT aElement (a |b * >
|
||||
^
|
||||
./test/errors/content1.xml:7: parser error : expected '>'
|
||||
<!ELEMENT aElement (a |b * >
|
||||
^
|
||||
./test/errors/content1.xml:7: parser error : internal error: xmlParseInternalSubset: error detected in Markup declaration
|
||||
|
||||
<!ELEMENT aElement (a |b * >
|
||||
^
|
||||
./test/errors/content1.xml:7: parser error : DOCTYPE improperly terminated
|
||||
<!ELEMENT aElement (a |b * >
|
||||
^
|
||||
./test/errors/content1.xml:7: parser error : Start tag expected, '<' not found
|
||||
<!ELEMENT aElement (a |b * >
|
||||
^
|
1
result/errors/extparsedent.xml.ent
Normal file
1
result/errors/extparsedent.xml.ent
Normal file
@ -0,0 +1 @@
|
||||
I/O warning : failed to load external entity "/etc/doesnotexist"
|
3
result/errors/name.xml.ent
Normal file
3
result/errors/name.xml.ent
Normal file
File diff suppressed because one or more lines are too long
9
result/errors/name2.xml.ent
Normal file
9
result/errors/name2.xml.ent
Normal file
File diff suppressed because one or more lines are too long
@ -4248,6 +4248,9 @@ testDesc testDescriptions[] = {
|
||||
{ "Error cases regression tests",
|
||||
errParseTest, "./test/errors/*.xml", "result/errors/", "", ".err",
|
||||
0 },
|
||||
{ "Error cases regression tests with entity substitution",
|
||||
errParseTest, "./test/errors/*.xml", "result/errors/", NULL, ".ent",
|
||||
XML_PARSE_NOENT },
|
||||
{ "Error cases regression tests (old 1.0)",
|
||||
errParseTest, "./test/errors10/*.xml", "result/errors10/", "", ".err",
|
||||
XML_PARSE_OLD10 },
|
||||
|
Loading…
x
Reference in New Issue
Block a user