Home - Summaries: (main) : (py3.11) : (py3.12) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

translator/c/test/test_standalone.py::TestStandalone::()::test_profopt

self = <rpython.translator.c.test.test_standalone.TestStandalone object at 0x00000000324e4de8>

    def test_profopt(self):
        if sys.platform == 'win32':
            py.test.skip("no profopt on win32")
        def add(a,b):
            return a + b - b + b - b + b - b + b - b + b - b + b - b + b
        def entry_point(argv):
            tot =  0
            x = int(argv[1])
            while x > 0:
                tot = add(tot, x)
                x -= 1
            os.write(1, str(tot))
            return 0
        from rpython.translator.interactive import Translation
>       t = Translation(entry_point, backend='c', profopt=True, profoptargs="10", shared=True)

translator/c/test/test_standalone.py:253: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
translator/interactive.py:25: in __init__
    graph = self.context.buildflowgraph(entry_point)
translator/translator.py:77: in buildflowgraph
    log(nice_repr_for_func(func))
tool/ansi_print.py:28: in logger_method
    ansi_print(text, col)
../py/_io/terminalwriter.py:105: in ansi_print
    file.write(text)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <_pytest.capture.EncodedFile object at 0x0000000032c4a8a8>
obj = '[flowgraph] (rpython.translator.c.test.test_standalone:244)entry_point\n'

    def write(self, obj):
        if isinstance(obj, unicode):
            obj = obj.encode(self.encoding, "replace")
>       self.buffer.write(obj)
E       IOError: [Errno 28] No space left on device: '<fdopen>'

../_pytest/capture.py:232: IOError
builder: rpython-linux-aarch64 build #572+
test: translator/c/test/test_standalone.py::TestStandalone::()::test_profopt