diff --git a/src/dom/test/test-sgml-parser-basic b/src/dom/test/test-sgml-parser-basic index c3a5e2e8a..742e81280 100755 --- a/src/dom/test/test-sgml-parser-basic +++ b/src/dom/test/test-sgml-parser-basic @@ -31,23 +31,6 @@ test_output_equals () { test_expect_success "$desc" 'cmp output expected' } -test_expect_incomplete () { - desc="$1"; shift - src="$1"; shift - - URI="test:$(echo "$desc" | sed ' - s/^[ \t]*\[[^]]*\][ \t]*//; - s/[:., \t][:., \t]*/-/g; - s/_/-/g; - # *cough* - y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/; - s/[^a-zA-Z0-9-]//g;')" - - sgml-parser --uri "$URI" --src "$src" --incomplete >/dev/null - test_expect_success "$desc" \ - "test $? = 1" -} - ################################################################ # Parse various SGML node types. @@ -300,85 +283,5 @@ test_output_equals \ ' 8' \ --print-lines - -test_expect_incomplete \ -'Check incomplete comment. (I)' \ -'/dev/null + test_expect_success "$desc" \ + "test $? = 1" +} + + +################################################################ +# Check for incompleteness + +test_expect_incomplete \ +'Check incomplete comment. (I)' \ +'