Commit 73a93c37 authored by Jan Kiene's avatar Jan Kiene
Browse files

make pytest cases explicitly fail when there is undef behaviour found

parent c9f72227
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -292,6 +292,8 @@ class EncoderFrontend:
            pytest.fail(
                f"{self._type} encoder terminated with a non-0 return code: {self.returncode}"
            )
        if self.stderr and "UndefinedBehaviorSanitizer" in self.stderr:
            pytest.fail("Undefined Behaviour runtime error encountered")

    def _check_run(self):
        if self.returncode is not None:
@@ -485,6 +487,8 @@ class DecoderFrontend:
            pytest.fail(
                f"{self._type} decoder terminated with a non-0 return code: {self.returncode}"
            )
        if self.stderr and "UndefinedBehaviorSanitizer" in self.stderr:
            pytest.fail("Undefined Behaviour runtime error encountered")

    def _check_run(self):
        if self.returncode is not None: