diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-10-08 19:48:19 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-10-08 19:48:19 -0700 |
commit | efaf3590ac33702eeff423e31e85f690b1fc7eb2 (patch) | |
tree | 94060f65fd7dd8de6cb18ec934ecb9a0766afb4b | |
parent | c33144ef63e94a31b00d7e64a64049289e78aba8 (diff) |
dlmalloc tweaks
-rw-r--r-- | tests/dlmalloc.c | 4 | ||||
-rw-r--r-- | tests/runner.py | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/dlmalloc.c b/tests/dlmalloc.c index 93bacc63..144b90ed 100644 --- a/tests/dlmalloc.c +++ b/tests/dlmalloc.c @@ -1,3 +1,7 @@ + +#define __THROW +#define __attribute_malloc__ +#define __wur #include "emscripten.h" /* diff --git a/tests/runner.py b/tests/runner.py index 7e5b0446..a96a65e7 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -4236,7 +4236,7 @@ else: def test_dlmalloc(self): global COMPILER_TEST_OPTS; COMPILER_TEST_OPTS = ['-g'] global CORRECT_SIGNS; CORRECT_SIGNS = 2 - global CORRECT_SIGNS_LINES; CORRECT_SIGNS_LINES = ['src.cpp:' + str(i) for i in [4816, 4191, 4246, 4199, 4205, 4235, 4227]] + global CORRECT_SIGNS_LINES; CORRECT_SIGNS_LINES = ['src.cpp:' + str(i+4) for i in [4816, 4191, 4246, 4199, 4205, 4235, 4227]] src = open(path_from_root('tests', 'dlmalloc.c'), 'r').read() self.do_benchmark(src, ['400', '400'], '*400,0*') |