Skip to content

Commit 94a2190

Browse files
committed
test: fix check location
1 parent 577dc6d commit 94a2190

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/test-xml-sax-parser.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -938,6 +938,12 @@ local function collect_warnings(chunk)
938938
end
939939

940940
function TestXMLSAXParser.test_warning()
941+
if jit.os ~= "Linux" then
942+
-- parser.warning doesn't work because warningSAXFunc accepts
943+
-- variable length arguments.
944+
return
945+
end
946+
941947
local xml = [[
942948
<?xml version="1.0"?>
943949
<?xmlo ?>
@@ -1029,12 +1035,6 @@ local function collect_xml_errors(chunk)
10291035
end
10301036

10311037
function TestXMLSAXParser.test_xml_structured_error()
1032-
if jit.os ~= "Linux" then
1033-
-- parser.warning doesn't work because warningSAXFunc accepts
1034-
-- variable length arguments.
1035-
return
1036-
end
1037-
10381038
local xml = [[
10391039
<?xml version="1.0"?>
10401040
<id>&aaa;</id>

0 commit comments

Comments
 (0)