Mercurial > lcfOS
diff test/testzcc.py @ 335:582a1aaa3983
Added long branch format
author | Windel Bouwman |
---|---|
date | Mon, 17 Feb 2014 20:41:30 +0100 |
parents | 6f4753202b9a |
children | d1ecc493384e |
line wrap: on
line diff
--- a/test/testzcc.py Thu Feb 13 22:02:08 2014 +0100 +++ b/test/testzcc.py Mon Feb 17 20:41:30 2014 +0100 @@ -3,7 +3,7 @@ import sys import zcc -import outstream +from ppci.objectfile import ObjectFile import ppci import io import target @@ -83,12 +83,12 @@ function void t2() {var int t3; t3 = 2;} """ f = io.StringIO(src) - outs = outstream.TextOutputStream() + out = ObjectFile() tg = target.target_list.armtarget tr = ppci.tasks.TaskRunner() - tr.add_task(ppci.buildtasks.Compile([f], [], tg, outs)) + tr.add_task(ppci.buildtasks.Compile([f], [], tg, out)) tr.run_tasks() - code = outs.getSection('code') + code = out.get_section('code') self.assertEqual(0x0, code.address)