diff options
author | Jeff Terrace <jterrace@gmail.com> | 2012-01-18 15:05:45 -0500 |
---|---|---|
committer | Jeff Terrace <jterrace@gmail.com> | 2012-01-18 15:05:45 -0500 |
commit | 9ec2ec222eb0fc140556a325025ae8a07d9005a0 (patch) | |
tree | 3d7da3d5d310a8d9e0b3409ce370c385a8103632 | |
parent | 34ea7ac199692ffca345f588399c1d91a52e6f87 (diff) |
Add output to mmap test
-rw-r--r-- | tests/runner.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/runner.py b/tests/runner.py index f7cd08a0..1ea50f79 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -3978,6 +3978,7 @@ def process(filename): def test_mmap(self): src = ''' + #include <stdio.h> #include <sys/types.h> #include <sys/mman.h> #include <assert.h> @@ -4001,12 +4002,13 @@ def process(filename): } assert(munmap(map, NUM_BYTES) == 0); - + + printf("hello,world"); return 0; } ''' - self.do_run(src, '') - self.do_run(src, '', force_c=True) + self.do_run(src, 'hello,world') + self.do_run(src, 'hello,world', force_c=True) def test_cubescript(self): if self.emcc_args is not None and '-O2' in self.emcc_args: |