diff options
Diffstat (limited to 'test/testdistcc.py')
-rwxr-xr-x | test/testdistcc.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/testdistcc.py b/test/testdistcc.py index d5b645d..4eaf77e 100755 --- a/test/testdistcc.py +++ b/test/testdistcc.py @@ -945,17 +945,23 @@ class CompileHello_Case(Compilation_Case): def source(self): return """ #include <stdio.h> -#include "testhdr.h" +#include "%s" int main(void) { puts(HELLO_WORLD); return 0; } -""" +""" % self.headerFilename() def checkBuiltProgramMsgs(self, msgs): self.assert_equal(msgs, "hello world\n") +class CommaInFilename_Case(CompileHello_Case): + + def headerFilename(self): + return 'foo1,2.h' + + class ComputedInclude_Case(CompileHello_Case): def source(self): @@ -1016,7 +1022,6 @@ int main(void) { } """ - class LanguageSpecific_Case(Compilation_Case): """Abstract base class to test building non-C programs.""" def runtest(self): @@ -2179,6 +2184,7 @@ for path in os.environ['PATH'].split (':'): # All the tests defined in this suite tests = [ CompileHello_Case, + CommaInFilename_Case, ComputedInclude_Case, BackslashInMacro_Case, BackslashInFilename_Case, |