@@ -0,0 +1,599 @@
+%22%22%22Tests for handling failed builds%22%22%22%0A%0Afrom dxr.testing import SingleFileTestCase, CommandFailure%0A%0A%0Aclass BuildFailureTests(SingleFileTestCase):%0A    source = r%22%22%22A bunch of garbage%22%22%22%0A%0A    @classmethod%0A    def setup_class(cls):%0A        %22%22%22Make sure a failed build returns a non-zero status code.%22%22%22%0A        try:%0A            super(BuildFailureTests, cls).setup_class()%0A        except CommandFailure:%0A            pass%0A        else:%0A            raise AssertionError('A failed build returned an exit code of 0.')%0A%0A    def test_nothing(self):%0A        %22%22%22A null test just to make the setup method run%22%22%22%0A

Add a test that proves build_instance raises an exception if `make` (etc.) fails.