From a7e458effadbc884eacf34528df3a57b60e43fe3 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Mon, 23 May 2022 12:01:17 +0200 Subject: mtest: ignore invalid input TAP version 14 introduced subtests, that are supposedly backward compatible because "TAP13 specifies that non-TAP output should be ignored". Meson reported TAP syntax errors based on behavior of "prove" at the time, but it seems that now "prove" has become a lot more lenient; it even accepts the following completely bogus input just fine: --- ok 1 ok 2 x 1..1 --- So do the same and make Meson's parser accept invalid TAP input silently. Fixes: #10032 --- unittests/taptests.py | 1 - 1 file changed, 1 deletion(-) (limited to 'unittests/taptests.py') diff --git a/unittests/taptests.py b/unittests/taptests.py index 54946cf..477d797 100644 --- a/unittests/taptests.py +++ b/unittests/taptests.py @@ -255,7 +255,6 @@ class TAPParserTests(unittest.TestCase): def test_unexpected(self): events = self.parse_tap('1..1\ninvalid\nok 1') self.assert_plan(events, num_tests=1, late=False) - self.assert_error(events) self.assert_test(events, number=1, name='', result=TestResult.OK) self.assert_last(events) -- cgit v1.1