diff options
author | Damien George <damien@micropython.org> | 2025-08-10 12:05:32 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-08-15 00:36:27 +1000 |
commit | 0f5f6484a2e6f330d03ee4786011ccb8062ac325 (patch) | |
tree | 20f213a3462394da8a00e905dd68471c7071ecea /tests/misc/print_exception.py | |
parent | 0cb2c69b3f25816416f7141ca32697a3135d8e53 (diff) |
tests/run-tests.py: Add support for .native.exp expected output files.
There are currently a few tests that are excluded when using the native
emitter because they test printing of exception tracebacks, which includes
line numbers. And the native emitter doesn't store line numbers, so gets
these tests wrong.
But we'd still like to run these tests using the native emitter, because
they test useful things even if the line number info is not in the
traceback (eg that threads which crash print out their exception).
This commit adds support for native-specific .exp files, which are of the
form `<test>.py.native.exp`. If such an .exp file exists then it take
precedence over any normal `<test>.py.exp` file.
(Actually, the implementation here is general enough that it also supports
`<test>.py.bytecode.exp` as well, if bytecode ever needs a specific exp
file.)
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/misc/print_exception.py')
0 files changed, 0 insertions, 0 deletions