From 14fab60bafa81d208b3179b0abae1f5c239dab7a Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 8 Jan 2015 22:12:44 +0000 Subject: [PATCH] qemu-arm: Get "make RUN_TESTS=1" compiling after changes to core. --- qemu-arm/test_main.c | 24 +++++++++++------------- 1 file 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 #include -#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();