Skip to content

Commit 6998d7b

Browse files
committed
test: skip tests that XMLSAXParser.warning on non Linux
Because it's not portable.
1 parent 0c42ed6 commit 6998d7b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/test-xml-sax-parser.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -981,6 +981,12 @@ function TestXMLSAXParser.test_set_pedantic_as_option()
981981
end
982982

983983
function TestXMLSAXParser.test_set_pedantic()
984+
if jit.os ~= "Linux" then
985+
-- parser.warning doesn't work because warningSAXFunc accepts
986+
-- variable length arguments.
987+
return
988+
end
989+
984990
local xml = [[
985991
<?xml version="1.0" encoding="UTF-8" ?>
986992
<!DOCTYPE root SYSTEM "file:///usr/local/share/test.dtd" [

0 commit comments

Comments
 (0)