diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-23 04:42:53 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-23 04:42:53 -0500 |
| commit | 57c175391db7b70ac2ec8dc7a7bf04afec52cb88 (patch) | |
| tree | 4cbd07a10787a6d340268ec8be2b8e8bad7d7823 /runtime/test/loader_test.cpp | |
| parent | e2ac2238fa5cb7ca23e653cce15fd5c1d004e0a7 (diff) | |
Revert #2490: its console-ABI list proxy breaks run_tiny_frame (please rebase and split)
With it, d3d12_xs reads list slot 48 as the console's IASetVertexBuffers, so the PC-shaped fixture list's
ClearRenderTargetView never runs and Close fails. The branch also changes runtime/src/pe_loader.cpp and carried
committed conflict markers in docs/fssm_crosscheck.md. Its docs rows go with it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/loader_test.cpp')
| -rw-r--r-- | runtime/test/loader_test.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/runtime/test/loader_test.cpp b/runtime/test/loader_test.cpp index 7a4e10cfd..3ed83747a 100644 --- a/runtime/test/loader_test.cpp +++ b/runtime/test/loader_test.cpp | |||
| @@ -470,23 +470,6 @@ void test_imports() { | |||
| 470 | dir.Size = sizeof(IMAGE_IMPORT_DESCRIPTOR); | 470 | dir.Size = sizeof(IMAGE_IMPORT_DESCRIPTOR); |
| 471 | expect_rejects("an import thunk table that runs past the image", img); | 471 | expect_rejects("an import thunk table that runs past the image", img); |
| 472 | } | 472 | } |
| 473 | for (const char* dll : {"TestShim", "testshim.dll."}) { | ||
| 474 | // LoadLibrary's file-name rule keys these the same as testshim.dll; without that normalisation the | ||
| 475 | // shim lookup misses while a real host namesake would still bind. | ||
| 476 | const std::string what = std::string("an import naming ") + dll + " resolves to testshim.dll's shim"; | ||
| 477 | auto importer = write_image_as(make_import_image(dll, "F"), "importer_key.exe"); | ||
| 478 | try { | ||
| 479 | rt::Loader loader(g_dir); | ||
| 480 | rt::Module& m = loader.load(importer); | ||
| 481 | if (m.imports.size() != 1 || m.imports[0].binding != rt::Binding::Shim) | ||
| 482 | return failed(what.c_str(), "the import did not bind as a shim"); | ||
| 483 | if (*reinterpret_cast<void**>(m.base + 0x1180) != reinterpret_cast<void*>(&test_shim_function)) | ||
| 484 | return failed(what.c_str(), "the address table does not hold the shim function"); | ||
| 485 | pass(what.c_str()); | ||
| 486 | } catch (const std::exception& e) { | ||
| 487 | failed(what.c_str(), e.what()); | ||
| 488 | } | ||
| 489 | } | ||
| 490 | } | 473 | } |
| 491 | 474 | ||
| 492 | void test_import_name_rvas() { | 475 | void test_import_name_rvas() { |