diff --git a/Programs/_testembed.c b/Programs/_testembed.c index 73e1f382d7..ffcd0434ff 100644 --- a/Programs/_testembed.c +++ b/Programs/_testembed.c @@ -1676,6 +1676,18 @@ static int test_run_main(void) } +static int test_run_main_loop(void) +{ + for (int i=0; i<5; i++) { + int exitcode = test_run_main(); + if (exitcode != 0) { + return exitcode; + } + } + return 0; +} + + static int test_get_argc_argv(void) { PyConfig config; @@ -1900,6 +1912,7 @@ static struct TestCase TestCases[] = { {"test_init_warnoptions", test_init_warnoptions}, {"test_init_set_config", test_init_set_config}, {"test_run_main", test_run_main}, + {"test_run_main_loop", test_run_main_loop}, {"test_get_argc_argv", test_get_argc_argv}, // Audit