diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-21 15:47:56 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-21 15:47:56 -0500 |
| commit | 7ec7511da0e2c1b8a47d2b920106d4dc67cbb3a7 (patch) | |
| tree | 797236f73f0bf04053ce39e71110a0f8c75de07c /runtime/test | |
| parent | 556fc4a1db007067d17eb90d3e014231243f0a00 (diff) | |
| parent | da499ab9113015ba91c2218895abc51f0aa4baf3 (diff) | |
Merge pull request #140 from IAmNotSiob
Diffstat (limited to 'runtime/test')
| -rw-r--r-- | runtime/test/pe_loader_test.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/test/pe_loader_test.cpp b/runtime/test/pe_loader_test.cpp index 8c4b394c8..24c5430f4 100644 --- a/runtime/test/pe_loader_test.cpp +++ b/runtime/test/pe_loader_test.cpp | |||
| @@ -310,6 +310,9 @@ void test_recursive_exe(const fs::path& exe, const fs::path& dll) { | |||
| 310 | } | 310 | } |
| 311 | check(dependency != nullptr, "load(exe) recursively maps the imported tiny_dll.dll"); | 311 | check(dependency != nullptr, "load(exe) recursively maps the imported tiny_dll.dll"); |
| 312 | check(loader.modules().size() == 2, "load(exe) maps exactly the EXE and its tiny DLL"); | 312 | check(loader.modules().size() == 2, "load(exe) maps exactly the EXE and its tiny DLL"); |
| 313 | const auto& init = loader.initialisation_order(); | ||
| 314 | check(init.size() == 2 && init[0] == dependency && init[1] == &module, | ||
| 315 | "initialisation_order() puts tiny_dll.dll before the EXE that imports it"); | ||
| 313 | std::printf(" modules=%zu\n", loader.modules().size()); | 316 | std::printf(" modules=%zu\n", loader.modules().size()); |
| 314 | 317 | ||
| 315 | if (dependency) { | 318 | if (dependency) { |