Skip to content

Commit 14fab60

Browse files
committed
qemu-arm: Get "make RUN_TESTS=1" compiling after changes to core.
1 parent d2d0648 commit 14fab60

1 file changed

Lines changed: 11 additions & 13 deletions

File tree

qemu-arm/test_main.c

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,15 @@
22
#include <stdio.h>
33
#include <string.h>
44

5-
#include "mpconfig.h"
6-
#include "nlr.h"
7-
#include "misc.h"
8-
#include "qstr.h"
9-
#include "lexer.h"
10-
#include "parse.h"
11-
#include "obj.h"
12-
#include "parsehelper.h"
13-
#include "compile.h"
14-
#include "runtime0.h"
15-
#include "runtime.h"
16-
#include "repl.h"
5+
#include "py/nlr.h"
6+
#include "py/obj.h"
7+
#include "py/parsehelper.h"
8+
#include "py/compile.h"
9+
#include "py/runtime0.h"
10+
#include "py/runtime.h"
11+
#include "py/stackctrl.h"
12+
#include "py/repl.h"
13+
#include "py/pfenv.h"
1714

1815
#include "tinytest.h"
1916
#include "tinytest_macros.h"
@@ -35,7 +32,7 @@ inline void do_str(const char *src) {
3532
}
3633

3734
// parse okay
38-
qstr source_name = mp_lexer_source_name(lex);
35+
qstr source_name = lex->source_name;
3936
mp_lexer_free(lex);
4037
mp_obj_t module_fun = mp_compile(pn, source_name, MP_EMIT_OPT_NONE, true);
4138

@@ -60,6 +57,7 @@ inline void do_str(const char *src) {
6057

6158
int main() {
6259
const char a[] = {"sim"};
60+
mp_stack_set_limit(10240);
6361
mp_init();
6462
int r = tinytest_main(1, (const char **) a, groups);
6563
mp_deinit();

0 commit comments

Comments
 (0)