Mercurial > lcfOS
diff test/testc3.py @ 355:c2ddc8a36f5e
Enabled optimization
author | Windel Bouwman |
---|---|
date | Fri, 14 Mar 2014 10:30:13 +0100 |
parents | 5477e499b039 |
children | 2ec730e45ea1 |
line wrap: on
line diff
--- a/test/testc3.py Thu Mar 13 18:59:06 2014 +0100 +++ b/test/testc3.py Fri Mar 14 10:30:13 2014 +0100 @@ -1,4 +1,5 @@ import unittest +import logging import io from ppci.c3 import Builder, Lexer from ppci.target import SimpleTarget @@ -44,6 +45,9 @@ self.diag = ppci.DiagnosticsManager() self.builder = Builder(self.diag, SimpleTarget()) self.diag.clear() + # Add a null logging handler to disable warning log messages: + nh = logging.NullHandler() + logging.getLogger().addHandler(nh) def makeFileList(self, snippet): """ Try to make a list with opened files """ @@ -382,6 +386,17 @@ """ self.expectErrors(snippet, [7]) + @unittest.skip('TODO') + def testArrayFail3(self): + snippet = """ + module testarray; + function void t() + { + int c[20]; + } + """ + self.expectErrors(snippet, [7]) + def testStructCall(self): snippet = """ module teststruct1;