Commit 5a984bc
committed
shared/runtime/pyexec: Set PYEXEC_FORCED_EXIT flag for SystemExit.
When MICROPY_PYEXEC_ENABLE_EXIT_CODE_HANDLING is enabled, SystemExit
now sets the PYEXEC_FORCED_EXIT flag in addition to the exit code. This
allows the REPL to properly detect and exit when SystemExit is raised,
while still preserving the exit code in the lower bits.
Enable MICROPY_PYEXEC_ENABLE_EXIT_CODE_HANDLING in Windows port.
Fixes repl_lock.py test which expects REPL to exit on SystemExit.
Signed-off-by: Andrew Leech <[email protected]>1 parent 6e734dc commit 5a984bc
2 files changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
167 | 170 | | |
168 | 171 | | |
169 | 172 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
181 | 183 | | |
182 | 184 | | |
183 | 185 | | |
| |||
0 commit comments