diff options
author | Alessandro Gatti <a.gatti@frob.it> | 2025-08-19 14:06:42 +0200 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-08-26 10:47:17 +1000 |
commit | b0fd0079f48bde7f12578823ef88c91f52757cff (patch) | |
tree | f1724dcf05e9ed9f556967fcfd3711f777dd7a88 /tests/unix/mod_os.py | |
parent | 1df5ee12e880fcd5a5129c7f0c077abdf2387f5a (diff) |
tests/micropython: Make tests behave in low memory condition.
This commit changes the "viper_ptr*_store_boundary" tests to make them
fail more gracefully in low memory conditions.
The original version of the tests compiled viper code blocks on the fly
when it needed them, making them fail at runtime on some boards that do
not come with enough memory for this test. This clashes with
"run-tests.py"'s ability to look for a particular signature to mark
tests as skipped due to not enough memory.
Now compiled code blocks are generated at the beginning of the test
inside an appropriate exception handler. In case of a memory error when
pre-compiling a code block, the running test exits reporting a low
memory condition to the test runner. This allows to have clean test
runs on all platforms when it comes to viper pointer tests.
Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
Diffstat (limited to 'tests/unix/mod_os.py')
0 files changed, 0 insertions, 0 deletions