diff options
author | Damien George <damien.p.george@gmail.com> | 2015-01-08 22:12:44 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-01-08 22:12:44 +0000 |
commit | 14fab60bafa81d208b3179b0abae1f5c239dab7a (patch) | |
tree | bd13c80efe691abcd7dacd12bb1babc1e9119b4f /qemu-arm/test_main.c | |
parent | d2d0648ad0dd552ba8bec3425ca4ce52d3c91f62 (diff) | |
download | micropython-14fab60bafa81d208b3179b0abae1f5c239dab7a.tar.gz micropython-14fab60bafa81d208b3179b0abae1f5c239dab7a.zip |
qemu-arm: Get "make RUN_TESTS=1" compiling after changes to core.
Diffstat (limited to 'qemu-arm/test_main.c')
-rw-r--r-- | qemu-arm/test_main.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/qemu-arm/test_main.c b/qemu-arm/test_main.c index ea9b0408f3..30bd169040 100644 --- a/qemu-arm/test_main.c +++ b/qemu-arm/test_main.c @@ -2,18 +2,15 @@ #include <stdio.h> #include <string.h> -#include "mpconfig.h" -#include "nlr.h" -#include "misc.h" -#include "qstr.h" -#include "lexer.h" -#include "parse.h" -#include "obj.h" -#include "parsehelper.h" -#include "compile.h" -#include "runtime0.h" -#include "runtime.h" -#include "repl.h" +#include "py/nlr.h" +#include "py/obj.h" +#include "py/parsehelper.h" +#include "py/compile.h" +#include "py/runtime0.h" +#include "py/runtime.h" +#include "py/stackctrl.h" +#include "py/repl.h" +#include "py/pfenv.h" #include "tinytest.h" #include "tinytest_macros.h" @@ -35,7 +32,7 @@ inline void do_str(const char *src) { } // parse okay - qstr source_name = mp_lexer_source_name(lex); + qstr source_name = lex->source_name; mp_lexer_free(lex); mp_obj_t module_fun = mp_compile(pn, source_name, MP_EMIT_OPT_NONE, true); @@ -60,6 +57,7 @@ end: int main() { const char a[] = {"sim"}; + mp_stack_set_limit(10240); mp_init(); int r = tinytest_main(1, (const char **) a, groups); mp_deinit(); |