fix(runtest.py): A workaround to bypass errors that occur when deleting temporary files (#4093)

- Replace sys.exit with exceptions for better error handling in test assertions
- Update exception handling in compile_wast_to_wasm to catch all exceptions
- Improve error messages and logging
- Use `--ignore-whitespace` option for git apply in spec_test function
- Use raw string notation for regex patterns.  *The "SyntaxWarning: invalid escape sequence" in Python The warning has been upgraded to SyntaxWarning since Python 3.12, and it is expected to become a SyntaxError in future versions.*
- Add early return for non-loadable AOT compilation to prevent unnecessary assertions
- Redirect stderr to stdout in test_case for unified output
- Update `create_tmpfiles()`  to improve clarity and handling of temporary files
This commit is contained in:
liang.he
2025-03-20 14:25:13 +08:00
committed by GitHub
parent 1f14f4ec0a
commit 06ea960e76
5 changed files with 191 additions and 151 deletions

View File

@ -206,7 +206,7 @@ def get_line_info_from_function_addr_sourcemapping(
if not line:
continue
m = re.match("(.*):(\d+):(\d+)", line)
m = re.match(r"(.*):(\d+):(\d+)", line)
if m:
function_file, function_line, function_column = m.groups()
continue