diff options
author | max99x <max99x@gmail.com> | 2011-07-31 04:44:26 +0300 |
---|---|---|
committer | max99x <max99x@gmail.com> | 2011-07-31 04:44:26 +0300 |
commit | c756aa5c86221df71d37349697b36e5b9fd0f88f (patch) | |
tree | 35aac1509907ec83588db1ea9ddb86af6c5bc5b0 /tests/runner.py | |
parent | d1ed9565a7e3dc28e7012a2bdfa794d8aa88ad49 (diff) |
Fixed ctype to force testing of __ctype_b_loc.
Diffstat (limited to 'tests/runner.py')
-rw-r--r-- | tests/runner.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index 148eb106..e7659760 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -2634,9 +2634,12 @@ if 'benchmark' not in sys.argv: self.do_test(src, re.sub('(^|\n)\s+', '\\1', expected)) def test_ctype(self): + # The bit fiddling done by the macros using __ctype_b_loc requires this. + global CORRECT_SIGNS; CORRECT_SIGNS = 1 src = open(path_from_root('tests', 'ctype', 'src.c'), 'r').read() expected = open(path_from_root('tests', 'ctype', 'output.txt'), 'r').read() self.do_test(src, expected) + CORRECT_SIGNS = 0 ### 'Big' tests |