{{ message }}
Commit c89eb2f
gh-156780: Emscripten: add an embedding smoke test
Nothing covers libpython linked into a program whose main() is not Python's:
every wasm test builds through Platforms/emscripten, which always passes
--enable-wasm-dynamic-linking.
web_embed_test links libpython without -sMAIN_MODULE and without the
interpreter's -sEXPORTED_FUNCTIONS, then imports from the stdlib zip and calls
through the trampoline. It covers the EM_JS_DEPS and _PyRuntime regressions,
not the suspending syscall paths, which it does not reach.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 1b00df2 commit c89eb2f
4 files changed
Lines changed: 85 additions & 2 deletions
File tree
- .github/workflows
- Platforms/emscripten/web_embed_test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
791 | 791 | | |
792 | 792 | | |
793 | 793 | | |
794 | | - | |
| 794 | + | |
795 | 795 | | |
796 | 796 | | |
797 | 797 | | |
| |||
1118 | 1118 | | |
1119 | 1119 | | |
1120 | 1120 | | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
1121 | 1140 | | |
1122 | 1141 | | |
1123 | 1142 | | |
| |||
3305 | 3324 | | |
3306 | 3325 | | |
3307 | 3326 | | |
3308 | | - | |
| 3327 | + | |
3309 | 3328 | | |
3310 | 3329 | | |
3311 | 3330 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |

0 commit comments