mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-23 01:52:48 +03:00
uri: Only set file scheme for special Windows paths
Fixes 2ce70cde
.
Also fix a test case.
This commit is contained in:
12
testparser.c
12
testparser.c
@@ -416,11 +416,11 @@ testBuildRelativeUri(void) {
|
||||
}, {
|
||||
"file:///a/b1/c1",
|
||||
"/a/b2/c2",
|
||||
"../b1/c1"
|
||||
NULL
|
||||
}, {
|
||||
"/a/b1/c1",
|
||||
"file:///a/b2/c2",
|
||||
"../b1/c1"
|
||||
NULL
|
||||
}, {
|
||||
"a/b1/c1",
|
||||
"/a/b2/c2",
|
||||
@@ -428,7 +428,7 @@ testBuildRelativeUri(void) {
|
||||
}, {
|
||||
"/a/b1/c1",
|
||||
"a/b2/c2",
|
||||
"file:///a/b1/c1"
|
||||
NULL
|
||||
}, {
|
||||
"http://example.org/a/b1/c1",
|
||||
"http://example.org/a/b2/c2",
|
||||
@@ -490,11 +490,11 @@ testBuildRelativeUri(void) {
|
||||
}, {
|
||||
"/a/b1/c1",
|
||||
"y:/a/b2/c2",
|
||||
"file:///a/b1/c1"
|
||||
NULL
|
||||
}, {
|
||||
"\\server\\a\\b1\\c1",
|
||||
"\\\\server\\a\\b1\\c1",
|
||||
"a/b2/c2",
|
||||
"file:///server/a/b1/c1"
|
||||
"file://server/a/b1/c1"
|
||||
}
|
||||
#endif
|
||||
};
|
||||
|
Reference in New Issue
Block a user