1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-17 00:59:34 +03:00

parser: Report fatal error if document entity couldn't be loaded

Only lower error level when loading entities.

Fixes #667.
This commit is contained in:
Nick Wellnhofer
2024-01-22 21:02:16 +01:00
parent 37d474ff7e
commit 63986c45b9
12 changed files with 39 additions and 33 deletions

View File

@ -90,7 +90,7 @@ run_test(desc="Loading entity without custom callback",
docpath=startURL, catalog=None,
exp_status="not loaded", exp_err=[
(-1, "I/O "),
(-1, "warning : "),
(-1, "error : "),
(-1, "failed to load \"py://strings/xml/sample.xml\": No such file or directory\n")
])
@ -122,7 +122,7 @@ run_test(desc="Retry loading document after unregistering callback",
docpath=startURL, catalog=catURL,
exp_status="not loaded", exp_err=[
(-1, "I/O "),
(-1, "warning : "),
(-1, "error : "),
(-1, "failed to load \"py://strings/xml/sample.xml\": No such file or directory\n")
])
@ -142,7 +142,7 @@ run_test(desc="Loading using standard i/o after unregistering all callbacks",
docpath="tst.xml", catalog=None,
exp_status="not loaded", exp_err=[
(-1, "I/O "),
(-1, "warning : "),
(-1, "error : "),
(-1, "failed to load \"tst.xml\": No such file or directory\n")
])